Danalock state incorrect/not updating
Bug Report
What happened
Danalock v3 state is not updating
What did you expect to happen
locked/unlocked state in HA updates with the actual state of the Danalock
How to reproduce it (minimal and precise)
My Danalock seems to be paired correctly to zigbee2mqtt, but the reported state of the lock doesn't seem to change.
On zigbee2mqtt start, I see the following in the log:
Sep 13 22:31:15 zigbee2mqtt npm[1472]: zigbee2mqtt:info 9/13/2019, 10:31:15 PM MQTT publish: topic 'zigbee2mqtt/0x000b57fffe59da21', payload '{"battery":91,"linkquality":5,"battery_low":false,"state":"UNLOCK"}'
So the reported state is unlocked, but actually the lock was locked at that moment.
After a couple of minutes i'll see the following in the logs:
Sep 13 22:35:43 zigbee2mqtt npm[1472]: zigbee2mqtt:error 9/13/2019, 10:35:43 PM Publish 'set' 'state' to '0x000b57fffe59da21' failed: 'Error: Data request failed with error: 'MAC transaction expired' (240)'
Sep 13 22:35:43 zigbee2mqtt npm[1472]: zigbee2mqtt:info 9/13/2019, 10:35:43 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffe59da21' failed: 'Error: Data request failed with error: 'MAC transaction expired' (240)'","meta":{"entity":"0x000b57fffe59da21"}}'
Any idea what is going on?
Debug Info
zigbee2mqtt version: 1.6.0 (commit #f5463db) CC253X firmware version: {"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}
Looks like the issue resolved itself after reflashing the stick and repairing the lock...sorry!