Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
inlet opened this issue Apr 3, 2024 · 8 comments
Open

Comments

@inlet
Copy link

inlet commented Apr 3, 2024

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
Copy link
Author

inlet commented Apr 3, 2024

image

@inlet
Copy link
Author

inlet commented Apr 4, 2024

This seems to be related Koenkk/zigbee2mqtt#22073

@hvorragend
Copy link

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

@inlet
Copy link
Author

inlet commented Apr 5, 2024

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
Copy link
Owner

Koenkk commented Apr 6, 2024

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
Copy link
Author

inlet commented Apr 7, 2024

@Koenkk thanks so much 🙏! Yes this does solve the issue

@inlet inlet closed this as completed Apr 7, 2024
@inlet inlet reopened this Apr 7, 2024
@inlet
Copy link
Author

inlet commented Apr 7, 2024

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
Copy link
Author

inlet commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants