I developed this integration because the official Home Assistant integration did not provide the information I needed, such as the total number of wireless devices per AP or ESSID. However, the Unifi Network integration now supports this functionality, so I am deprecating my integration in favor of the official one, which is better supported and more efficiently coded.
This sensor shows the number of devices connected to your unifi APs and also shows the devices per AP and per ESSID as attributes of the sensor.
To install via the HACS UI on Home Assistant:
To manually install the integration:
custom_components/unifics
folder and all of its files to your config/custom_components
directory in Home Assistant.The sensor can be configured in the UI or using a yaml file:
sensor:
- platform: unifics
name: <whatever you want> (optional, default: "Unifi Couter Sensor")
host: <your unifi controller ip or dns name>
port: <controller port> (optional, default: 8443)
username: <unifi_controller_username>
password: <unifi_controller_password>
site: <your "site" on controller> (optional, default: 'default')
verify_ssl: <True/False> (optional, default: 'False')
udm: <True/False> (optional, default: 'False'. If you have a device running UniFiOS such as a Unifi Dream Machine then use 'True' as the API is different.)