dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

New attached TRADFRI on/off button switch 1002 switches all lights at once #7623

Closed binford6000 closed 7 months ago

binford6000 commented 7 months ago

Does the issue really belong here?

Is there already an existing issue for this?

Describe the bug

After loosing connection due to low battery i had to reconnect the switch again. Everything works as intended but when pressing the ON button (event 1002) all lights are switched on.

Steps to reproduce the behavior

  1. Delete switch
  2. Reconnect switch
  3. Press ON-Button to create 1002 event
  4. All lights (group 0x0000) will go on

Expected behavior

After reconnecting the switch only connected lights/groups will switch on like before.

Screenshots

No response

Environment

deCONZ Logs

13:49:23:658 [INFO] - Button 1002 - TRADFRI on/off switch, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: On, payload: None, zclSeq: 18 13:49:23:668 rule event /sensors/208/state/lastupdated: 0 -> 0 13:49:23:670 trigger rule 24 - Rule PUSHDIM_ON 13:49:23:774 ZCL attribute report 0x14B457FFFE2BEB2E for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 13:49:23:850 ZCL attribute report 0xCCCCCCFFFE8E5827 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 13:49:25:090 ZCL attribute report 0x00158D00032AE944 for cluster: 0x0B04, ep: 0x01, frame control: 0x18, mfcode: 0x0000 13:49:25:146 delay sending request 72 dt 0 ms to 0xCCCCCCFFFE8E5827, ep: 0x01 cluster: 0x0008 onAir: 1 13:49:25:147 delay sending request 73 dt 0 ms to 0xCCCCCCFFFE8E5827, ep: 0x01 cluster: 0x0300 onAir: 1 13:49:25:170 0xCCCCCCFFFE8E5827 force poll (2) 13:49:25:187 delay sending request 73 dt 0 ms to 0xCCCCCCFFFE8E5827, ep: 0x01 cluster: 0x0300 onAir: 1 13:49:25:231 0xCCCCCCFFFE8E5827 force poll (2) 13:49:25:280 0xCCCCCCFFFE8E5827 force poll (2) 13:49:25:699 ZCL attribute report 0xCCCCCCFFFE8E5827 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 13:49:25:777 send move to color temperature 167 to 0x00158D0005826D92 13:49:25:837 0x00158D0005826D92 force poll (2) 13:49:25:900 0x00158D0005826D92 force poll (2) 13:49:25:983 send move to color temperature 167 to 0x60A423FFFEC8B1C4 13:49:26:043 0x60A423FFFEC8B1C4 force poll (2) 13:49:26:102 send move to color temperature 167 to 0x00158D000582709D 13:49:26:108 0x60A423FFFEC8B1C4 force poll (2) 13:49:26:109 delay sending request 91 dt 0 ms to 0x00158D000582709D, ep: 0x01 cluster: 0x0300 onAir: 1 13:49:26:129 0x00158D000582709D force poll (2) 13:49:26:189 0x00158D000582709D force poll (2) 13:49:26:245 delay sending request 94 dt 0 ms to 0xCCCCCCFFFE8E5827, ep: 0x01 cluster: 0x0300 onAir: 1 13:49:26:268 0xCCCCCCFFFE8E5827 force poll (2) 13:49:26:343 0xCCCCCCFFFE8E5827 force poll (2) 13:49:29:402 ZCL attribute report 0x00158D000361DB34 for cluster: 0x0006, ep: 0x01, frame control: 0x18, mfcode: 0x0000 13:49:30:121 ZCL attribute report 0x00158D000361DB34 for cluster: 0x0B04, ep: 0x01, frame control: 0x18, mfcode: 0x0000 13:49:30:746 ZCL attribute report 0xCCCCCCFFFE8E5827 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 13:49:31:112 ZCL attribute report 0x00158D000361DB34 for cluster: 0x0702, ep: 0x01, frame control: 0x18, mfcode: 0x0000

Additional context

No response

ChrisHae commented 7 months ago

I can confirm that behaviour. The lights only change their status via Rest API not the physical lights itself. on button switches all lights on and off button switches all lights off. Also on deCONZ v. 2.25.1

This switch: image

And deCONZ INFO dbg message:

14:52:18:205 [INFO] - Button 1002 - TRADFRI on/off switch, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: On, payload: None, zclSeq: 20
14:52:22:299 [INFO] - Button 2002 - TRADFRI on/off switch, broadcast to: 0x0000, endpoint: 0x01, cluster: ONOFF (0x0006), action: Off, payload: None, zclSeq: 22
Mimiix commented 7 months ago

Afaik, not a bug.

https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/What-you-can-do-when-a-switch-turns-(almost)-all-devices-on-off

@SwoopX can you collaborate?

@ChrisHae this has been reported on the forums and other places and is not the same as TS as his lights do switch on.

binford6000 commented 7 months ago

Thx @Mimiix Solved my issue with that 👍🏻

ChrisHae commented 7 months ago

I see this is another issue. And FYI: it is fixed in new deCONZ beta 2.26.1