Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.54k stars 1.63k forks source link

Philips Dimmer V2 (929002398602) OnOff sync #20676

Open markchalloner opened 6 months ago

markchalloner commented 6 months ago

What happened?

When using the single power button on a Philips Hue Dimmer V2 bound either to a group (with Hue bulb) or single Hue bulb, the on/off button gets out of sync requiring a second press to turn the light on or off.

Debug logs show that the Dimmer variously sends a commandOn and commandOffWithEffect, whereas it probably should send a commandToggle?

debug 2024-01-08 15:37:52Received Zigbee message from 'Office Light Dimmer', type 'commandOffWithEffect', cluster 'genOnOff', data '{"effectid":0,"effectvariant":0}' from endpoint 1 with groupID 51433
debug 2024-01-08 15:37:52Received Zigbee message from 'Office Light Dimmer', type 'commandOffWithEffect', cluster 'genOnOff', data '{"effectid":0,"effectvariant":0}' from endpoint 1 with groupID 38372
debug 2024-01-08 15:37:52Received Zigbee message from 'Office Light Bulb', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 11 with groupID 0
debug 2024-01-08 15:37:52Received Zigbee message from 'Office Light Dimmer', type 'commandOffWithEffect', cluster 'genOnOff', data '{"effectid":0,"effectvariant":0}' from endpoint 1 with groupID 0
debug 2024-01-08 15:37:53Received Zigbee message from 'Office Light Bulb', type 'readResponse', cluster 'genOnOff', data '{"onOff":0}' from endpoint 11 with groupID 0
debug 2024-01-08 15:37:54Received Zigbee message from 'Office Light Dimmer', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 51433
debug 2024-01-08 15:37:54Received Zigbee message from 'Office Light Dimmer', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
debug 2024-01-08 15:37:54Received Zigbee message from 'Office Light Dimmer', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 38372
debug 2024-01-08 15:37:54Received Zigbee message from 'Office Light Bulb', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 11 with groupID 0
debug 2024-01-08 15:37:55Received Zigbee message from 'Office Light Bulb', type 'readResponse', cluster 'genOnOff', data '{"onOff":1}' from endpoint 11 with groupID 0

What did you expect to happen?

The On/Off button will always toggle the light bulb to the other state.

How to reproduce it (minimal and precise)

Zigbee2MQTT version

1.35.1 commit: unknown

Adapter firmware version

6.10.3.0 build 297

Adapter

SONOFF ZBDONGLE-E

Debug log

No response

lasharor commented 5 months ago

Is this a problem with Z2M or these Dimmers? it is really annoying. Happens not only with Hue bulbs but with other zigbee bulbs as well.

splump commented 2 months ago

Agreed this is really annoying, if it would be possible to change this behaviour to toggle instead of alternating on/off than that would be ideal, but unsure if this would have to be adressed in firmware?