ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

TRADFRI SHORTCUT Button Button: No Dubbel press in Homekit #163

Closed frogger11 closed 11 months ago

frogger11 commented 11 months ago

Hi, I've switched over to the new Deconz plugin, but I've noticed that double-clicking doesn't seem to work with Homekit. I've updated to the latest firmware version on my Conbee2 and the latest Docker version of Deconz. Please see the logs below.


Homebridge log: [deCONZ] TRADFRI SHORTCUT Button Button: Programmable Switch Event: Single Press [deCONZ] TRADFRI SHORTCUT Button Button: Programmable Switch Event: Long Press

Docker: DeConz community:Latest: Button 1001 - TRADFRI SHORTCUT Button, unicast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: Move up (with o n/off), payload: 0053, zclSeq: 22
13:32:53:906 [INFO] - Button 1003 - TRADFRI SHORTCUT Button, unicast to: 0x0000, endpoint: 0x01, cluster: LEVEL_CONTROL (0x0008), action: Stop (with on/o ff), payload: None, zclSeq: 23
13:33:01:922 [INFO] - Button 1002 - TRADFRI SHORTCUT Button, unicast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: On, payload: None, zclS eq: 24
13:33:08:152 [INFO] - Button 2004

These plugins have done an excellent job, without them, my smart home would have been very different, and not for the better :). Thank you!

ebaauw commented 11 months ago

This is a bug in deCONZ: it sends a 2004 instead of a 1004 on double press.

ebaauw commented 11 months ago

As far as I can tell this bug has been there, since support for double press was added. Apparently, Homebridge Hue was a bit more forgiving, unintentionally.

Fix should be in next deCONZ beta. As workaround, you can manually edit button_maps.json.

[9/8/2023, 4:34:11 PM] [deCONZ] TRADFRI SHORTCUT Button: /sensors/115: changed: {"state":{"buttonevent":1002,"lastupdated":"2023-09-08T14:34:11.904"}}
[9/8/2023, 4:34:11 PM] [deCONZ] TRADFRI SHORTCUT Button Button: Programmable Switch Event: Single Press
[9/8/2023, 4:34:13 PM] [deCONZ] TRADFRI SHORTCUT Button: /sensors/115: changed: {"state":{"buttonevent":1004,"lastupdated":"2023-09-08T14:34:13.194"}}
[9/8/2023, 4:34:13 PM] [deCONZ] TRADFRI SHORTCUT Button Button: Programmable Switch Event: Double Press
[9/8/2023, 4:34:14 PM] [deCONZ] TRADFRI SHORTCUT Button: /sensors/115: changed: {"state":{"buttonevent":1001,"lastupdated":"2023-09-08T14:34:14.615"}}
[9/8/2023, 4:34:14 PM] [deCONZ] TRADFRI SHORTCUT Button Button: Programmable Switch Event: Long Press
[9/8/2023, 4:34:15 PM] [deCONZ] TRADFRI SHORTCUT Button: /sensors/115: changed: {"state":{"buttonevent":1003,"lastupdated":"2023-09-08T14:34:15.375"}}