EPMatt / awesome-ha-blueprints

A curated collection of automation blueprints for Home Assistant.
https://epmatt.github.io/awesome-ha-blueprints
GNU General Public License v3.0
811 stars 237 forks source link

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

Open motoridersd opened 1 year ago

motoridersd commented 1 year ago

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

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 https://github.com/EPMatt/awesome-ha-blueprints/issues/547

Mysli0210 commented 1 year ago

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 commented 1 year ago

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

Mysli0210 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Yeah they do. Hopefully this will help others!

Mysli0210 commented 11 months ago

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