SphtKr / homebridge-zway

Homebridge plugin for (better) HomeKit support of RaZBerry and Z-Way Server
ISC License
85 stars 37 forks source link

Catch very fast open/close on contact sensors #83

Closed SphtKr closed 7 years ago

SphtKr commented 7 years ago

If a contact sensor changes state and then changes back within the polling window (2sec default), the change will not be registered at all in HomeKit... that is, if you poll and it's closed, and then two seconds later you poll and it's closed again, no update is sent. Makes sense, but I discovered that this is annoying when I put a door sensor on my mailbox and was missing notifications (cool application though!).

To do this (again, without #25) we'll have to watch the updateTime for changes, and assume one toggle occurred if the state is unchanged but the updateTime is. Same problem as #82, for better or worse.