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 Rotary Remote Controller Automation only works with single tap #553

Closed
1 task
motoridersd opened this issue Jun 16, 2023 · 8 comments · Fixed by #605
Closed
1 task

Bug - IKEA Rotary Remote Controller Automation only works with single tap #553

motoridersd opened this issue Jun 16, 2023 · 8 comments · Fixed by #605
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@motoridersd
Copy link

Blueprint name

Hook - Media Player

Home Assistant Core Version

2023.6.2

Home Assistant Installation Type

Home Assistant Operating System

Description

Tapping the IKEA Rotary controller once will trigger the Controller Automation, which then plays/pauses the media via the Media Player hook. Turning the knob or double tapping will generate a Controller Automation event, but the Hook doesn't perform the associated task.

Automation YAML config

alias: New IKEA Symfonisk Knob Automation
description: ""
use_blueprint:
  path: EPMatt/ikea_e1744.yaml
  input:
    integration: ZHA
    controller_device: 244dc58991bf3d0bc5879ea49d68fd2f
    helper_last_controller_event: input_text.helper_last_controller_event_rotary_ikea
    action_rotate_left: []
    action_rotate_right: []
    rotate_left_loop: false
    rotate_right_loop: false
    action_click_short: []
    action_click_double: []

alias: New IKEA Symfonisk Knob Automation
description: ""
use_blueprint:
  path: EPMatt/ikea_e1744.yaml
  input:
    integration: ZHA
    controller_device: 244dc58991bf3d0bc5879ea49d68fd2f
    helper_last_controller_event: input_text.helper_last_controller_event_rotary_ikea
    action_rotate_left: []
    action_rotate_right: []
    rotate_left_loop: false
    rotate_right_loop: false
    action_click_short: []
    action_click_double: []

To Reproduce

  1. Start music playback on media player tied to Media Player Hook
  2. Rotate IKEA Controller
  3. Volume does not change
  4. See logbook entries in screenshot section

Expected behavior

The volume will change with rotation

Actual Behaviour

Nothing happens

Additional Details

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

Screenshots

image

Additional context

I manually updated the blueprint to remove extra spaces/characters that were causing volume rotations to not stop. This worked great for a while, but maybe the latest update broke something else #547

@Mysli0210
Copy link

Mysli0210 commented Jun 22, 2023

I have the same issue with my E1744 symfonisk remote
I just got it working for a while, then a HA update came to ruin the fun, the regex fix for the E1744 yaml did help me either.

Setting the controller blueprint to use left/right turn does not work either.

@motoridersd
Copy link
Author

I don't know when mine stopped working, but definitely broken with 2023.6.2

@Mysli0210
Copy link

I just checked the helper

double click returns
{"a":"step_StepMode.Up_1_0_0_0","t":1687477258.83587}

Triple returns
{"a":"step_StepMode.Down_1_0_0_0","t":1687477254.372601}

rotational stop returns
{"a":"stop_0_0","t":1687477247.482911}

rotate left returns
{"a":"move_MoveMode.Down_195_0_0","t":1687477247.312083}

rotate right returns
{"a":"move_MoveMode.Up_195_0_0","t":1687477240.513969}

Now, i dont recall it being these exact strings before, so maybe they changed something in zha?

@Mysli0210
Copy link

Mysli0210 commented Jun 23, 2023

I got it working again :D

in /config/blueprints/automation/EPMatt/ikea_e1744.yaml
under the variables section you need to change zha to

zha:
  rotate_left:
  - move_MoveMode.Down_195_0_0
  rotate_stop:
  - stop_0_0
  rotate_right:
  - move_MoveMode.Up_195_0_0
  click_short:
  - toggle
  click_double:
  - step_StepMode.Up_1_0_0_0
  click_triple:
  - step_StepMode.Down_1_0_0_0

@motoridersd
Copy link
Author

Thank you! This fixed it for me. I don't think the HA updates touch these files. I don't know why it didn't break for others in the other issue.

@Mysli0210
Copy link

You're welcome, it probably annoyed me as much as you ^^"
No i dont think they do either, but ZHA changes from time to time, this is actually the 2nd time i have seen it happen this way, hence the string in the blueprint needs to follow suit.

@motoridersd
Copy link
Author

Yeah they do. Hopefully this will help others!

@Mysli0210
Copy link

Mysli0210 commented Jul 28, 2023

Aparrently this issue also applies to ikea_e1743.yaml

However i actually think i've stumbled upon a bug with ZHA as there's no coherence between up and down

zha:
  button_up_short:
  - 'on'
  button_up_long:
  - move_with_on_off_MoveMode.Up_83
  button_up_release:
  - stop_with_on_off
  button_down_short:
  - 'off'
  button_down_long:
  - move_MoveMode.Down_83_0_0
  button_down_release:
  - stop_with_on_off

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

Successfully merging a pull request may close this issue.

2 participants