Open Insight-Rich opened 2 years ago
Further investigation reveals that zigbee2mqtt also fires off undocumented *_press_release actions:
Facing the same issue. Then I have replaced at line 372-396 minus character with underscore character. All newly created automations are running now as expected.
zigbee2mqtt:
button_on_short:
- on_press
button_on_long:
- on_hold
button_on_release:
- on_hold_release
button_off_short:
- off_press
button_off_long:
- off_hold
button_off_release:
- off_hold_release
button_up_short:
- up_press
button_up_long:
- up_hold
button_up_release:
- up_hold_release
button_down_short:
- down_press
button_down_long:
- down_hold
button_down_release:
- down_hold_release
Thank you... just switching over from a hue to zigbee2mqtt... this has been driving me mad this morning. Made the change as per above to the stored blueprint. All working perfectly now. Thanks!
Facing the same issue. Then I have replaced at line 372-396 minus character with underscore character. All newly created automations are running now as expected.
This fixed issue for me also.
Thx @Bastian007 this issue made me crazy today. Would be cool to create PR for it, do want to do it or should I?
Feel free to raise a PR :-) But I've got the feeling that this project is more or less discontinued
same issue here - man this has been driving me NUTS! Thank you @Bastian007 !
Same issue here - good thing I spotted this issue in the buglist! Thanks @Bastian007 !
@Bastian007 Same issue here, thx for the solution! Will this be merged?
Blueprint name
Controller - Philips 324131092621 Hue Dimmer switch
Home Assistant Core Version
2022.8.7
Home Assistant Installation Type
Home Assistant Supervised
Description
Automation created from blueprint doesn't seem to recognise button presses from switch connected via Zigbee2MQTT.
Automation YAML config
To Reproduce
Short press On button of selected controller.
Expected behavior
Notification appears.
Actual Behaviour
Notification does not appear.
Additional Details
Screenshots
No response
Additional context
From having had a dig around, it looks as though the action_mappings for zigbee2mqtt (lines 323 - 335) are incorrect.
According to the zigbee2mqtt website, it uses the form "on_press", rather than "on-press" as the code here seems to expect.