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

Bug - Ikea E1810 up/down left/right buttons do not work on ZHA #311

Open
1 task done
PhotosBySimonH opened this issue Apr 13, 2022 · 3 comments
Open
1 task done
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@PhotosBySimonH
Copy link

PhotosBySimonH commented Apr 13, 2022

Blueprint name

Controller - IKEA E1524/E1810 TRÅDFRI Wireless 5-Button Remote

Home Assistant Core Version

2022.4.2

Home Assistant Installation Type

Home Assistant Operating System

Description

When I press anything other than the centre button the required action set in the blueprint does not trigger, I've attached the trace from the automation for a failed short button down push.

I'm not a programmer but looking through the code and the trace I think the pattern expected by the automation from ZHA for the button press event is not matching what is recorded by the blueprint in the trigger_action variable so it errors out

e.g. in this case trigger_action appears to be recorded as step_StepMode.Down_43_5_bitmap8.0_bitmap8.0 but my reading of the blueprint code make it look like it is expecting button_down_short = step_1_43_5.

I've tried this with 2 different E1810 remotes and neither work with both remotes having the same result and the same data recorded.

trace automation.controller_ikea_e1524_e1810_tradfri_wireless_5_button_remote 2022-04-13T17_31_16.895672+00_00.txt

Automation YAML config

alias: Bedroom Light
description: ''
use_blueprint:
  path: EPMatt/ikea_e1524_e1810.yaml
  input:
    helper_last_controller_event: input_text.ikea1810
    controller_device: 752b1e18ad5b8ef9b62b4b0b9eb96ef4
    integration: ZHA
    action_button_up_short:
      - service: scene.turn_on
        target:
          entity_id: scene.bedroom_daylight
        metadata: {}
    action_button_down_short:
      - service: scene.turn_on
        target:
          entity_id: scene.bedroom_evening
        metadata: {}
    action_button_center_short:
      - service: light.toggle
        data: {}
        target:
          entity_id: light.bedroom_level_light_color_on_off
    helper_debounce_delay: 100

To Reproduce

  1. push button on the remote
  2. automation fires
  3. nothing happens

Expected behavior

the desired action to tigger e.g. when up is pushed a scene activates

Actual Behaviour

nothing happens when button is pushed e.g. when up is pushed the scene does not activate

Additional Details

  • I'd like to help developing a fix for this issue.

Screenshots

No response

Additional context

No response

@PhotosBySimonH PhotosBySimonH added blueprint An issue related to a blueprint bug Something isn't working labels Apr 13, 2022
@PhotosBySimonH
Copy link
Author

PhotosBySimonH commented Apr 14, 2022

Reading the solutions to bugs 312 & 313 this is clearly related, I've edited the blueprint with the codes that ZHA is now sending and expanded the helper to 255 chars and it now works fine, at least for what I've tried (up/down, left/right, centre single push and centre long push, I've not tried any double clicks).

If it helps anyone else or for the main release to get fixed faster here is the edited code.

ikea_e1524_e1810.yaml

@guusangeren
Copy link

guusangeren commented Apr 15, 2022

While up&down are working again for me (I should really learn to check github for issues before trying to re-add all of the related blueprints & automations!), center long press still doesn't work for me!

Edit: after adding a short-press function, long press worked!

Edit2: short-press is always triggered first though, so I'm using double-press instead of long for now!

@Hedda
Copy link

Hedda commented Apr 19, 2022

FYI, for reference also see this related ZHA issue discussion for Home Assistant core -> home-assistant/core#69375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blueprint An issue related to a blueprint bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants