DouweM / homebridge-unifi-occupancy

Homebridge plugin that adds HomeKit occupancy sensors for selected devices (and people) on your UniFi network to the iOS Home app: quickly see who's where and automate accordingly.
Apache License 2.0
41 stars 1 forks source link

Wired devices (switches/USG) show up as locations #19

Closed bc2297 closed 1 year ago

bc2297 commented 1 year ago

Mentioned in #17

Describe The Bug: Sensors are being created for disabled APs, and also for wired devices

Expected behavior: Would expect devices to not be created

Logs: unifi.txt

from v2/api/site/default/device, too big to post directly

Plugin Config:

Screenshots:

Environment:

DouweM commented 1 year ago

@bc2297 Disabled devices are now excluded in v1.2.6, but we have to include switches as you have the option of enabling accessories for wired clients in settings. I recommend mapping the switches to a room that also has an access point so that they don't show up by themselves. Is that an option?

bc2297 commented 1 year ago

yep this works for me