-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device paired; not getting unlock notifications #17
Comments
Hi, The unlock events should be generated, afaik, within max. 10 seconds, see: https://github.com/kind3r/ttlock-sdk-js#monitoring-for-lockunlock-events Or do we need to run "npm run listen" explicitly? @kind3r might know more about, I'm a little bit out of the loop. |
I got the same issue. Some timesI see notifications in Addon logs but most times no update to HA.
|
May be it happening because get OperationLog is empty because G2 gateway already took new log entries. And sometimes I got an error on connect to get a log. |
I found another problem - unlock/lock events in ha.js just emit the same event handler (updateLockState) that update to CURRENT lock state. The problem is that if auto lock occurs before update event is fired then it always miss unlock event. |
Indeed that is the case. How this works:
@cemilbrowne |
I'm not sure this is an issue, this is handled in So, even if one packet is missed, at some point it will replay all the lock/unlock events from the operations log. |
Hi!
Great tool; happy to help debug. I've got a lock. Lock/Unlock work OK from UI and fine on lock, but I don't seem to get UNLOCK messages into my MQTT broker.
Any ideas?
The text was updated successfully, but these errors were encountered: