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

Hue dimmer switch not working with the new HA update #41

Open
flyingdutchman7588 opened this issue Dec 23, 2021 · 5 comments
Open

Hue dimmer switch not working with the new HA update #41

flyingdutchman7588 opened this issue Dec 23, 2021 · 5 comments

Comments

@flyingdutchman7588
Copy link

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

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

@azogue
Copy link
Owner

azogue commented Dec 24, 2021

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

@mateuszdrab
Copy link

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)

@ICTSMART
Copy link

ICTSMART commented Jan 4, 2022

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

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

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

4 participants