eventsensor icon indicating copy to clipboard operation
eventsensor copied to clipboard

Hue dimmer switch not working with the new HA update

Open flyingdutchman7588 opened this issue 4 years ago • 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:

  1. 1001 > initial_release-1. - I did these for all of them. - I restarted HA and that didnt work.
  2. I changed the event field from "Event" to "type,subtype" - That didnt work either

Here is a screenshot

flyingdutchman7588 avatar Dec 23 '21 17:12 flyingdutchman7588

Just to add, I still have the old dimmer switch.

flyingdutchman7588 avatar Dec 23 '21 17:12 flyingdutchman7588

Hi @flyingdutchman7588,

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

azogue avatar Dec 24 '21 12:12 azogue

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 avatar Dec 24 '21 14:12 mateuszdrab

@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.

ICTSMART avatar Jan 04 '22 19:01 ICTSMART

@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.

mateuszdrab avatar Jan 05 '22 11:01 mateuszdrab