Aruba Instant smart home integration, free and open source

Aruba Instant access points (HPE): APs online, Wi-Fi clients, presence by MAC address. Read only.
Gladys reads your Aruba Instant (HPE) Wi-Fi cluster through the REST API of its master access point: the access points online, the number of Wi-Fi clients, and the presence of the phones or devices whose MAC address you list.
Unofficial integration, not affiliated with HPE nor Aruba. Never tested with a real device: written from the "Aruba Instant 8.x REST API Guide" of HPE and tested against a simulated AP. Feedback welcome.
Read only
The integration only sends two show commands to the master AP: show aps and show clients. It never
sends a configuration command, an action nor a reboot: the client refuses any other command before a byte
leaves, and no feature of Gladys can write to the APs (a value sent by a scene is refused).
Before you start
- On the master Instant AP (or the virtual controller), enable the REST API, in the CLI:
configure terminal,allow-rest-api,exit,commit apply. - An administrator account of the AP (the REST API takes no other). A dedicated one is best.
- The IPv4 address of the master AP or of the virtual controller (the API needs an IP address in each show command, not a name). The API answers on HTTPS port 4343.
Configuration
- IP address of the master AP: e.g.
192.168.1.2(add:portif it is not 4343). - Certificate fingerprint (optional): an Instant AP shows a self-signed certificate. Leave empty, save,
then click Trust the certificate twice: the first click shows the SHA-256 fingerprint seen (nothing
else is sent), compare it with the one your browser shows on
https://<ip>:4343, then click again within 2 minutes. Or type the fingerprint yourself. Nothing, the password neither, is ever sent to another certificate; if the AP shows another one later, everything stops and the status shows the new fingerprint. - User name and password of the AP: the password is kept by Gladys in its database, never shown again, sent only to the master AP in the login, once its certificate is checked.
- MAC addresses to track: separated by commas, 32 at most, e.g.
aa:bb:cc:dd:ee:ff. A phone often uses a private (random) address per Wi-Fi network: copy the one its Wi-Fi settings show for this network. - Away after (minutes, 5 by default): a tracked address missing from the client list is said away only after this delay (a sleeping phone leaves the Wi-Fi for a while).
- Refresh (seconds, 60 by default, 30 to 3600).
Devices (Discovery)
| Device | Id | Features |
|---|---|---|
| Aruba Instant cluster | aruba-cluster:main | access points online, Wi-Fi clients |
| Access point | aruba-ap:<serial number> | online (1/0), its Wi-Fi clients |
| Wi-Fi client | aruba-client:<MAC, 12 hex digits> | present on the Wi-Fi (presence sensor, 1/0) |
The ids are fixed: the serial number of the AP (Serial # of show aps, in small letters) and the MAC
address. An AP whose serial number cannot be read is counted, without a device. Only the tracked addresses
become devices; the other clients are only counted, and nothing about them is kept.
How it reads
Each read is one session: a login (POST /rest/login), show aps, show clients, then a logout
(POST /rest/logout with the session id in the body, then, only if the AP does not take it, one
GET /rest/logout?sid=…), sent after every login the AP answered, even when a show failed or the integration
stops meanwhile (a login cut before its answer leaves a session the AP closes at its own idle timeout).
- An AP missing from a complete
show apslist is offline (0); its client count is then unknown. - A tracked address in the client list is present (1). Missing from complete lists for longer than the away delay: away (0). After a start, an address never seen stays unknown until a full delay has passed since the first complete list.
- A client list not read, or incomplete (a row that cannot be read, more than 4096 clients, a count that
differs from the rows or is missing): the presence stays unknown, nothing is published; the count of
online APs from an incomplete
show apsis not published either. - A value is never published as 0 when it is unknown.
Errors
- User name or password refused (the AP says so at the login): the integration stops trying, so as not
to lock the account, until you save other credentials or click Test the connection. A refused
account is kept in
/dataonly as an 8-bit salted mark (it can never tell the password), erased at the next success. A 401/403 on a show, a session expired or a login refused for too many sessions is not a refusal. - 429 or 5xx: the reads pause (1 min to 6 h, the
Retry-Afterof the AP when given), also across a restart. - Other failures: tried again, spaced (from 30 s, doubling up to 30 min, never sooner than the refresh).
- REST API not found: check
allow-rest-apion the master AP.
Limits
- One cluster per integration; the master AP is read (it answers for the whole cluster).
- The client list of
show clientsis the CLI text inside the JSON answer: the integration reads its columns by their names (MAC Address,Name,Access Point), from the line of dashes under them. - Never tested with a real Instant AP: the shapes of the answers follow the guide as cited by other clients and the CLI reference. The form of the logout is not confirmed: the POST form comes from the guide as cited, the GET form from the PowerArubaIAP module; both are tried, the GET only when the POST is not taken. If neither closes the session, the AP closes it at its own idle timeout, and a login may be refused for too many sessions until then.
Configuration settings
These are the settings Aruba Instant asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| How it works | section | No | Gladys reads your Aruba Instant cluster through the REST API of its master AP, over HTTPS (port 4343) on your network: the access points online, the number of Wi-Fi clients, and whether the MAC addresses you list below are connected (presence). Read only: the integration only sends the show commands "show aps" and "show clients", never a configuration command nor a reboot. The REST API must be enabled on the master AP (CLI command allow-rest-api). Never tested with a real device. Unofficial integration, not affiliated with HPE nor Aruba. |
| IP address of the master AP | string | Yes | The IPv4 address of the master Instant AP, or of the virtual controller (the API needs an IP address, not a name). HTTPS only; add :port if it is not 4343. |
| Certificate fingerprint (SHA-256, optional) | string | No | An Instant AP shows a self-signed certificate. Empty: click Trust the certificate twice after saving (the first click shows the fingerprint seen, nothing else is sent). Filled: only this certificate is accepted (the SHA-256 fingerprint shown by your browser). Nothing, the password neither, is sent to another certificate. |
| User name of the AP | string | Yes | An administrator account of the Instant AP (the REST API takes no other). Prefer a dedicated account you can change on its own. |
| Password of the AP | secret | Yes | Kept by Gladys in its database, never shown again, sent only to the master AP, in the login only, and only once its certificate is checked. If the AP refuses it, Gladys stops trying until you save other credentials or click Test. |
| MAC addresses to track (presence) | string | No | The Wi-Fi addresses of the phones or devices whose presence you want in Gladys, separated by commas (32 at most), e.g. aa:bb:cc:dd:ee:ff. Each one becomes a device to add from the Discovery. Only these are kept; the other clients are only counted. A phone often uses a private address per Wi-Fi network: copy the one shown in its Wi-Fi settings for this network. |
| Away after (minutes) | number | No | A tracked address missing from the client list is said away only after this delay (a phone asleep leaves the Wi-Fi for a while). 0 to 60 minutes. |
| Refresh (seconds) | number | No | How often Gladys reads the master AP (a login, two show commands, a logout). 30 to 3600 seconds. |
| Language of names and messages | select | No | The names of the devices and features at their creation, and the messages. |
How to install Aruba Instant in Gladys
- In Gladys, open Integrations: Aruba Instant appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/lm1lc3n7/gladys-aruba-instant:0.1.1), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/LM1LC3N7/gladys-aruba-instant.
Aruba Instant requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Aruba Instant is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by LM1LC3N7, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation