mirror of
https://github.com/oznu/homebridge-unifi-occupancy-sensor.git
synced 2025-01-22 11:18:56 +00:00
fix issue tracking devices on guest networks
This commit is contained in:
parent
3eea8249fb
commit
925a3b525e
4
index.js
4
index.js
@ -33,13 +33,13 @@ class OccupancySensor {
|
||||
})
|
||||
|
||||
this.unifi.on('connected', (data) => {
|
||||
if (this.watch.includes(data.user)) {
|
||||
if (this.watch.includes(data.user || data.guest)) {
|
||||
return this.checkOccupancy()
|
||||
}
|
||||
})
|
||||
|
||||
this.unifi.on('disconnected', (data) => {
|
||||
if (this.watch.includes(data.user)) {
|
||||
if (this.watch.includes(data.user || data.guest)) {
|
||||
return this.checkOccupancy()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user