Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
885 stars 2.95k forks source link

Double events are fired for Philips Wall Modules & Philips Hue Dimmer Switch #7323

Open inlet opened 6 months ago

inlet commented 6 months ago

After updating the Zigbee2Mqtt add-on in home assistant yesterday suddenly events for my Philips Hue Wall modules and Hue dimmer Switch are fired twice.

After watching the logs I noticed that it indeed gets fired twice in a row at the same time.

Any help is highly appreciated! Thanks πŸ™

When I flip the Philip Hue Wall module, this will be fired by Zigbee2Mqtt (logs):

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"left_press","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

+ Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar/action', payload 'left_press'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"left_press","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":36}'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":36}'

+ Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar/action', payload 'left_press'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"left_press_release","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

+ Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar/action', payload 'left_press_release'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"left_press_release","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar', payload '{"action":"","battery":100,"device_mode":"single_rocker","last_seen":"2024-04-03T13:59:52+02:00","linkquality":32}'

+ Zigbee2MQTT:info  2024-04-03 13:59:52: MQTT publish: topic 'zigbee2mqtt/Kantoor Patrick Schakelaar/action', payload 'left_press_release'

These double events only happen to these devices, other devices are triggered just fine

inlet commented 6 months ago

image

inlet commented 6 months ago

This seems to be related https://github.com/Koenkk/zigbee2mqtt/issues/22073

hvorragend commented 5 months ago

I have the same problem and have already mentioned it here #22073.

inlet commented 5 months ago

As a temporary workaround I've added a debounce: 0.1 for the particular devices. However this give issues if you trigger the device without the interval rate

Koenkk commented 5 months ago

Try to remove all bindings under the frontend -> device -> bind page and reconfigure the device by pressing the yellow refresh icon on the about tab.

inlet commented 5 months ago

@Koenkk thanks so much πŸ™! Yes this does solve the issue

inlet commented 5 months ago

Oops I was too quick with closing this issue.. removing all bindings and reconfigure the device doesn’t seem to help. Neither re-adding the device. Any help is appreciated, thanks in advance πŸ™

inlet commented 5 months ago

Update:

The bind page (frontend -> device -> bind), contains 2 bindings. If I remove the last one everything works correctly. However, when I reconfigure it (yellow refresh icon), there are 2 bindings again and the events are triggered double again.

For now I just removed the last binding so there's only 1 binding with the coordinator. Hopefully this gives you a bit of contexts. Not sure what causes it, but it occurred after the latest z2m update. I tried to restore to a previous backup, but somehow the changes have been propagated to the zigbee network.