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 - ZHA E2002 Long Press don't stop on release #621

Open
1 task
FraBomba6 opened this issue Nov 21, 2024 · 10 comments
Open
1 task

Bug - ZHA E2002 Long Press don't stop on release #621

FraBomba6 opened this issue Nov 21, 2024 · 10 comments
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@FraBomba6
Copy link

Blueprint name

Controller - IKEA E2001/E2002 STYRBAR Remote control

Home Assistant Core Version

2024.11.2

Home Assistant Installation Type

Home Assistant Operating System

Description

When releasing one of the buttons after a long press the brightness/color/temperature continues changing until another button is pressed or 0 brightness is reached

Automation YAML config

alias: Controller - Soggiorno
description: ""
use_blueprint:
  path: EPMatt/ikea_e2001_e2002.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.controller_soggiorno_action
    helper_last_controller_event: input_text.helper_controller_soggiorno

To Reproduce

  1. Use the ZHA integration option
  2. Add E2002 device
  3. Long press any of the 4 buttons

Expected behavior

When releasing the button the change in brightness/color/temperature stops

Actual Behaviour

When releasing the button the target parameter continues changing until another button is pressed or 0 brightness is reached

Additional Details

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

Screenshots

No response

Additional context

No response

@FraBomba6 FraBomba6 added blueprint An issue related to a blueprint bug Something isn't working labels Nov 21, 2024
@kineticscreen
Copy link

I can't get a normal long press to just trigger an event - i wonder if these are related?

@EPMatt
Copy link
Owner

EPMatt commented Feb 16, 2025

Hi @FraBomba6 @kineticscreen @radugrecu97,
thank you for reporting here. We currently have a PR open for a new controller #689 which includes a rework for the double press feature.

I'll take a look in the next days, with the goal of then applying the proposed changes to all controller blueprints and finally restore the double presses.

Thanks all for your patience!

@radugrecu97
Copy link

Hi @EPMatt

This bug is about long press release, not double press

@FraBomba6
Copy link
Author

Hi @EPMatt, thanks for reaching out! I quote @radugrecu97 previous comment and also add that I resolved the bug by either updating HA Core or the blueprint but I cannot point out the reason since I made both changes at the same time

@EPMatt
Copy link
Owner

EPMatt commented Feb 17, 2025

@radugrecu97 my bad, too much focus on double press these days and I misread the issue title. :) Thanks for pointing it out!

@FraBomba6 thanks for your feedback. Can you please confirm that you are using the blueprint from this repo - not Isismeiro fork?

The correct download link would be:

https://github.com/EPMatt/awesome-ha-blueprints/blob/main/blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml

If this is the case, then we can confirm the fix from the fork was included here as we merged the fork back into the main repo last month.

Thanks!

@kineticscreen
Copy link

Sorry I think some threads have gotten crossed - I'm using this blueprint with Z2M, an can confirm that the latest veresion the long presses on the left and right buttons still do not work. But single and doubles all work fine.

@berotrip
Copy link

I've been quietly following this issue and updated the blueprint as suggested.

Indeed - the brightness_stop does work now (did not before):
'info 2025-02-17 10:39:59z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Remote-Control', payload '{"action":"brightness_stop","battery":40,"linkquality":188,"update":{"installed_version":33816598,"latest_version":33816598,"state":"idle"}}'

But not the color_change (left/right button) which keep on looping:
info 2025-02-17 10:39:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Remote-Control', payload '{"action":"arrow_left_click","battery":40,"linkquality":192,"update":{"installed_version":33816598,"latest_version":33816598,"state":"idle"}}' info 2025-02-17 10:39:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Remote-Control', payload '{"action":"","battery":40,"linkquality":192,"update":{"installed_version":33816598,"latest_version":33816598,"state":"idle"}}' info 2025-02-17 10:39:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Remote-Control/action', payload 'arrow_left_click'

@FraBomba6
Copy link
Author

@EPMatt I'll check later this evening but I am pretty sure I am at the main branch's last version BEFORE Z2M 2.0 adaptation.

Also, @kineticscreen @berotrip never used long press for color because I mainly use presets but I'll try it later

@FraBomba6 FraBomba6 reopened this Feb 17, 2025
@kineticscreen
Copy link

I actually use it for presets as well - I can't get the left or right to trigger on either the long press, or long press release

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