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 E2002 Styrbar Left/Right long press are broken #587

Closed tbaumann closed 5 months ago

tbaumann commented 7 months ago

Blueprint name

https://github.com/lsismeiro/awesome-ha-blueprints/blob/20e23499259335b8198f0452db14a7e5a051d4cc/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

Home Assistant Core Version

2023.12.3

Home Assistant Installation Type

Home Assistant Operating System

Description

This is potentially related to https://github.com/EPMatt/awesome-ha-blueprints/issues/399 but I don't think so.

I imported the latest blueprint version (the forum refers to an older version where long press actions seem completely dysfunctional).

Up and Down Long press work fine. I receive button_down_long and button_down_release ahb_controller_event events.

However Left and Right long pressed are completely b0rked.

Pressing Button Left emits the following events in this order.

And Button Right these

I suppose the spurious button_up_short is a bug. The hooks also behave quite confused as a result.

Automation YAML config

- https://github.com/lsismeiro/awesome-ha-blueprints/blob/20e23499259335b8198f0452db14a7e5a051d4cc/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml
- with Device 
- With helper
- Not other options

To Reproduce

Import controller blueprint via https://github.com/lsismeiro/awesome-ha-blueprints/blob/20e23499259335b8198f0452db14a7e5a051d4cc/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

Create automation with a E2002

Listen to ahb_controller_event events

Expected behavior

Receive button_[left|right]long and button[left|right]_release on long press. Without the button_up_short first

Actual Behaviour

After pressing the button long first a button_up_short event is emitted, only once the button is kept held down will the correct events be emitted.

Additional Details

Screenshots

image

image

Additional context

No response

LewisSpring commented 5 months ago

Hiya If you’re reporting a bug about the lsismeiro repository, if you’re still experiencing issues please create a new issue there and we can help 👍

tbaumann commented 5 months ago

Oh I think you may have pointed my nose on the issue. I was doing all that on the phone I may have gotten the repos mixed up.

tbaumann commented 5 months ago

I reproduced it with the issue with the correct blueprint. I switched to a different HA instance and had to set it up again anyway.

I still get the spurious up events. But only when I long press. But what's even more weird now is that I get zero long press events.

github-actions[bot] commented 4 months ago

Hi there,

🔒 This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new ticket for related bugs.

Thanks!