Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
59 stars 51 forks source link

Unifi stats to mqtt #494

Open Kane610 opened 11 months ago

Kane610 commented 11 months ago

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