FutureTense / keymaster

Home Assistant integration for managing Z-Wave enabled locks
MIT License
231 stars 43 forks source link

ISSUE: Keymaster events are not being fired anymore #348

Open dougmaitelli opened 9 months ago

dougmaitelli commented 9 months ago

Describe the bug I have a listener that checked for Keymaster events and notifies me about who unlocked the door using code. This event always worked perfectly but on December 19th it stopped working. I am not sure what was updated at that date, probably either home assistant or zwave itself.

Environment (please complete the following information):

Logs N/A

Screenshots N/A

Additional context N/A

firstof9 commented 9 months ago

I just tested it, it's working fine for me:

event_type: keymaster_lock_state_changed
data:
  notification_source: event
  lockname: frontdoor
  entity_id: lock.front_door
  state: locked
  action_text: Manual lock operation
  code_slot: 0
  code_slot_name: ""
origin: LOCAL
time_fired: "2023-12-27T20:07:47.913850+00:00"
context:
  id: 01HJPE7VE9PXQ09GK3XFFRRKEZ
  parent_id: null
  user_id: null
dougmaitelli commented 9 months ago

Thanks for checking @firstof9

I completely removed the integration and re-added it. The behavior I am getting now is a bit more inconsistent. The event fires sometimes, but not every time.

I got 2 listeners for testing. One listening to Keymaster events and the other to the actual lock state change.

The lock one triggers every time. The Keymaster one triggers half of the times.

firstof9 commented 9 months ago

Which is weird as the integration listens for the events and just wraps them up and spits them out.

dougmaitelli commented 9 months ago

Does the door closed / open sensor plays any role in firing the event or not? Cause I did test unlocking using the code with the door open.

firstof9 commented 9 months ago

Does the door closed / open sensor plays any role in firing the event or not?

No, this is for counting open/close events for those using that feature set and to not fire the autolock if the door's open (I think).