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 - Double Press No Action #664

Open
1 task
accordxtc opened this issue Jan 11, 2025 · 6 comments
Open
1 task

Bug - Double Press No Action #664

accordxtc opened this issue Jan 11, 2025 · 6 comments
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@accordxtc
Copy link

Blueprint name

Controller - IKEA E1812 TRÅDFRI Shortcut button

Home Assistant Core Version

2025.1.2

Home Assistant Installation Type

Home Assistant Operating System

Description

Only double press will not work. Have tried for light device with double press to toggle light on / off which wont work. Single and long press work with no issues.

Automation YAML config

alias: Mya's Shortcut Button
description: ""
use_blueprint:
  path: EPMatt/ikea_e1812.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.mya_s_button_action
    helper_last_controller_event: input_text.tradfri_shortcut_button
    action_button_short:
      - type: toggle
        device_id: e68e55f4acb30bcbbb6149402b6c2d72
        entity_id: abe63b77a2523d39af157d88c02c5804
        domain: light
    action_button_double:
      - type: toggle
        device_id: f8efceaa398bb371d88ce60abfee646d
        entity_id: a8a4f8c4eb36b912af220541bb3a94c9
        domain: light
    action_button_long:
      - action: script.kids_bedtime
        metadata: {}
        data: {}
    button_long_loop: false
    button_double_press: true
    helper_double_press_delay: 500

To Reproduce

Double Tap Will Not Work

Expected behavior

Double Tap should toggle light on / off

Actual Behaviour

Nothing happens

Additional Details

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

Screenshots

No response

Additional context

No response

@accordxtc accordxtc added blueprint An issue related to a blueprint bug Something isn't working labels Jan 11, 2025
@jdads1
Copy link

jdads1 commented Jan 29, 2025

I am experiencing the same issue with ikea 5 button controls

@vvac
Copy link

vvac commented Feb 11, 2025

Experiencing similar issue with E2001/2002 on ZHA. Same HA Version.

Single press gives correct reusult.
Double press gives single press result.
Triple press gives double press result.

Weird stuff happens.

@yarafie
Copy link
Contributor

yarafie commented Feb 12, 2025

Try increasing the number for the double press helper until your double press is recognized

@vvac
Copy link

vvac commented Feb 12, 2025

If you meant increasing the below parameter:

(Optional) Helper - Double Press delay
Max delay between the first and the second button press for the double press event. Provide a value only if you are using a double press action. Increase this value if you notice that the double press action is not triggered properly.

then it doesn't help, all double/triple presses I wrote about were made within the threshold.

After further testing the state is as follows:

What works as expected

  • on left/right buttons: double press works as expected
  • on the up/down buttons hold works as expected

What doesnt work as expected

  • up/down buttons: double press gives single press result, but it doesn't look like a blueprint problem - when snooping zha_events I can see that double up/down press fires a single event unless they are VERY slow. Double left/right press produces two consecutive events normally.

  • left/right buttons long press and hold produce events as follows:

  1. Release of left/right
  2. Short Press of up/down
  3. Press of left/right
  4. Hold of left/right
    and finally
  5. Relese of left/right

All the above makes me think that the E2001/2002 firmware changed its behavior or the way of handling it by ZHA integration changed as the events aren't fired as expected. Blueprint misbehaviors are the direct effect of the unexpected zha_events being fired/not fired by the integration.

Best,
Tomasz

@yarafie
Copy link
Contributor

yarafie commented Feb 12, 2025

I'll have to look at over the weekend. Virtual Simulated Double press has been problematic as far as I know and heard from others.

@tivoo
Copy link

tivoo commented Feb 17, 2025

Same issue here with the IKEA E2001/E2002 STYRBAR Remote control. It did work with the earlier controller blueprint from you @yarafie in combination with an older light hook blueprint from 2022 I believe. And also still using the legacy Z2M action entity.

To add to this. This version for the E200/E2002: https://github.com/yarafie/awesome-ha-blueprints/blob/c2f0ea6f93a443302b5302788d4d0b84f5b2915e/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml works with the 2022.07.03 Hook blueprint for the double press event.

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

5 participants