The official Unifi integration is perfect to get all clients as device trackers, but is missing a lot of useful information which is provided by the Unifi API. For example access point status, score, cpu usage, uptime etc.
So I created a small docker image which acts as a bridge between the Unifi API and MQTT.
You can start this docker container and it will poll the Unifi API each 30 seconds (this is configurable) for the latest statistics and will publish this to MQTT. I have also included a configuration example how to get the sensors in Home Assistant.
Maybe this could also help others so I published it on my github https://github.com/bramstroker/UnifiMqttPublisher
https://community.home-assistant.io/t/unifi-stats-to-mqtt/308458
The official Unifi integration is perfect to get all clients as device trackers, but is missing a lot of useful information which is provided by the Unifi API. For example access point status, score, cpu usage, uptime etc. So I created a small docker image which acts as a bridge between the Unifi API and MQTT. You can start this docker container and it will poll the Unifi API each 30 seconds (this is configurable) for the latest statistics and will publish this to MQTT. I have also included a configuration example how to get the sensors in Home Assistant. Maybe this could also help others so I published it on my github https://github.com/bramstroker/UnifiMqttPublisher