Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
57 stars 49 forks source link

Clients connected to AP #577

Open Kane610 opened 5 months ago

Kane610 commented 5 months ago

https://community.home-assistant.io/t/unifi-see-number-of-clients-connected-to-ap/682354/3

kimdv commented 2 months ago

I was thinking to add this. Not sure how to approach it.

Should we have a property that returns the number of clients connected to the device? Maybe one for wired and one for wireless?

There is already an API for getting all client and all active clients. So we could add a sensor that counts number of clients

We could use the active clients.

Kane610 commented 2 months ago

It would be something similar to https://github.com/home-assistant/core/blob/e4a3cab801ded3065c49963e4c777487c74e126b/homeassistant/components/unifi/sensor.py#L294