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
42 stars 1 forks source link

Let all device types be included, including unknown #11

Closed DouweM closed 1 year ago

DouweM commented 1 year ago

This helps build automations like in https://github.com/DouweM/homebridge-unifi-occupancy/issues/9#issuecomment-1415863290:

I could add any device, even a car, that connects to Wifi and have automations based on anything being within range.

I think it makes sense to allow all devices on the network to get sensors, not just ones in categories I consider "portable". A device that (dis)connects frequently like a car would be useful to build automations around for at least the home-wide sensor (there is a "Smart Car" category in the fingerprint, but it only detects Teslas so far), but even a stationary device like a NAS is automatable: alert me if it disconnects.

This means including devices not connected to WiFi as well, but perhaps only on the all-home device (unless we can identify the device it's connected to over wire):

DouweM commented 1 year ago

Done in v1.2.0!