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 - Wrong actions Styrbar for ZHA #596

Open LikonCZ opened 5 months ago

LikonCZ commented 5 months ago

Blueprint name

Controller - IKEA E2001/E2002 STYRBAR Remote control

Home Assistant Core Version

2024.1.6

Home Assistant Installation Type

Home Assistant Operating System

Description

Actions for UP and DOWN buttons long press were wrong for ZHA. Buddle press and release doesnt work either for all buttons. In additional content, there is my repaired code (just for long press of UP or DOWN) with comments what was changed.

Automation YAML config

.

To Reproduce

Using blueprint above for long press and release of UP and DOWN button

Expected behavior

Actions working

Actual Behaviour

Actions not working

Additional Details

Screenshots

No response

Additional context

    zha:
      button_left_short:
        - press_257_13_0
      button_left_long:
        - hold_3329_0
      button_left_release:
        - release_1365
      button_right_short:
        - press_256_13_0
      button_right_long:
        - hold_3328_0
      button_right_release:
        - release_-27903
      button_up_short:
        - "on"
      button_up_long:
        - move_with_on_off_MoveMode.Up_83 #originaly move_with_on_off_0_83
      button_up_release:
        - stop
      button_down_short:
        - "off"
      button_down_long:
        - move_MoveMode.Down_83_0_0 #originaly move_1_83
      button_down_release:
        - stop
jvkranenburg commented 5 months ago

Same issue here. Will try suggested changes tomorrow!

cptTesa commented 5 months ago

Hi there,

there are also changes in the release of the long_press:

zha:

  button_left_short:
    - press_257_13_0
  button_left_long:
    - hold_3329_0
  button_left_release:
    - release_1365
  button_right_short:
    - press_256_13_0
  button_right_long:
    - hold_3328_0
  button_right_release:
    - release_-27903
  button_up_short:
    - "on"
  button_up_long:
    - move_with_on_off_MoveMode.Up_83 #originaly move_with_on_off_0_83
  button_up_release:
    - stop_with_on_off #originaly stop
  button_down_short:
    - "off"
  button_down_long:
    - move_MoveMode.Down_83_0_0 #originaly move_1_83
  button_down_release:
    - stop_0_0 #originaly stop
tbaumann commented 5 months ago

My controllers also don't receive long press events (E2002)

tbaumann commented 5 months ago

Fixed in https://github.com/EPMatt/awesome-ha-blueprints/pull/411 Use this fork until this project is maintained again https://github.com/lsismeiro/awesome-ha-blueprints