mgbowman / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
13 stars 2 forks source link

Add wireless network client counts #7

Open mgbowman opened 4 years ago

mgbowman commented 4 years ago

Discussed here:

https://community.openhab.org/t/ubiquiti-unifi-binding-feature-discussion/14520/1016?u=mgbowman

mgbowman commented 4 years ago

This can already be done site-wide!

# unifi.things
Bridge unifi:controller:home "UniFi Controller" [ host="unifi", port=8443, username="$username", password="$password", refresh=10 ] {
    Thing site default "Default Site" [ sid="default" ]
}

# unifi.items
Number GuestClients "Default Site: Guest Clients [%d]" { channel="unifi:site:home:default:guestClients" }

This will report the total number of guest clients (both wired and wireless).

A wirelessNetwork thing is planned for the future.

elite123 commented 4 years ago

Thanks for this :) - is it possible to get number of guest clients on a specific access point?

E.g. For prescence detection I want to know if there are any guest clients on the "Lounge" access point

timbms commented 3 years ago

How would this guestClients be configured in OH3 UI?