steffjenl / com-homey-unifiprotect

Adds support for Ubiquiti UniFi Protect devices in Homey.
GNU General Public License v3.0
0 stars 1 forks source link

Motion alarms is not switched off after trigger #9

Open MarcoFuykschot opened 3 weeks ago

MarcoFuykschot commented 3 weeks ago

Describe the bug When a smart sensors motion is triggered, it is not switched off, removing device and adding solves the problem, but that is is not workable. restarting app doesn't solve it, running version is 1.6.10 all so has this issue. Version of protect is 4.0.33. To Reproduce

Expected behavior Alarm switched off,

Screenshots image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

still happing with latest version: diag code: 2d3b0c5d-ba39-448e-b5b4-72acd44992c1

MarcoFuykschot commented 1 day ago

After some traceing, it seems the motionDetected false is not send by unify protect any more

2024-10-02T10:14:00.471Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 42, signalStrength: -73 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:04.280Z [log] [UniFiProtect] { isMotionDetected: true, motionDetectedAt: 1727864043501, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:04.281Z [log] [debug] set last_motion_at to last datetime: 63c146a00394e403e4018d4b 2024-10-02T10:14:10.466Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 55, signalStrength: -68 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:10.475Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 45, signalStrength: -72 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:12.515Z [log] [UniFiProtect] { isMotionDetected: false, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:20.467Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 100, signalStrength: -49 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:20.478Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 100, signalStrength: -42 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:20.483Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 42, signalStrength: -73 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:30.468Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 100, signalStrength: -50 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:30.474Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 45, signalStrength: -72 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:31.958Z [log] [UniFiProtect] { bridgeCandidates: [], nvrMac: '7483C21AE44F' } 2024-10-02T10:14:31.961Z [log] [UniFiProtect] { bridgeCandidates: [], nvrMac: '7483C21AE44F' } 2024-10-02T10:14:31.965Z [log] [UniFiProtect] { bridgeCandidates: [], nvrMac: '7483C21AE44F' } 2024-10-02T10:14:31.967Z [log] [UniFiProtect] { bridgeCandidates: [], nvrMac: '7483C21AE44F' } 2024-10-02T10:14:31.976Z [log] [UniFiProtect] { bridgeCandidates: [], nvrMac: '7483C21AE44F' } 2024-10-02T10:14:40.464Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 67, signalStrength: -63 }, nvrMac: '7483C21AE44F' } 2024-10-02T10:14:40.489Z [log] [UniFiProtect] { bluetoothConnectionState: { signalQuality: 57, signalStrength: -67 }, nvrMac: '7483C21AE44F' }