Hue dimmer switch not working with the new HA update
flyingdutchman7588 opened this issue · 5 comments
I updated to the latest HA and OS and also updated eventsensor. However, I cannot figure out how to get my hue dimmer switches to work. When I go to Developor Tools and click the button on my hue dimmer switch, the state does not change.
Under the event sensor configuration, I first changed the following:
- 1001 > initial_release-1.
- I did these for all of them.
- I restarted HA and that didnt work. - I changed the event field from "Event" to "type,subtype"
- That didnt work either
Here is a screenshot
Just to add, I still have the old dimmer switch.
The id
also changed, at least for my remotes. Now all devices have a _button
suffix (example: before was id: interruptor_dormitorio
and now it's id: interruptor_dormitorio_button
)
Anycase, the best way to check the new events is with the Developers-tools->Events page. Listen to hue_event
and then press the buttons, to see how the new events look
Not only that, it seems that events no longer have number states under the event field and instead have:
"type": "short_release", (action)
"subtype": 4 (button number)
@mateuszdrab I was able to reproduce your findings. The code in common.py has a reference to the old values:
PRESET_FOH_MAPPING = {
16: "left_upper_press",
20: "left_upper_release",
17: "left_lower_press",
21: "left_lower_release",
18: "right_lower_press",
22: "right_lower_release",
19: "right_upper_press",
23: "right_upper_release",
100: "double_upper_press",
101: "double_upper_release",
98: "double_lower_press",
99: "double_lower_release",}
As a consequence FOH Switches like the Niko stopped functioning.
@mateuszdrab I was able to reproduce your findings. The code in common.py has a reference to the old values:
PRESET_FOH_MAPPING = {
16: "left_upper_press",
20: "left_upper_release",
17: "left_lower_press",
21: "left_lower_release",
18: "right_lower_press",
22: "right_lower_release",
19: "right_upper_press",
23: "right_upper_release",
100: "double_upper_press",
101: "double_upper_release",
98: "double_lower_press",
99: "double_lower_release",}As a consequence FOH Switches like the Niko stopped functioning.
I've resolved my issues by essentially moving away from using this component. I just trigger my automations from the hue events directly, I think this is neater than triggering based on a sensor.
I have also bought the hue tap switch a few days ago and was also able to incorporate additional logic to it thanks to the events.