Skip to content

Comments

ikea_e2001_e2002.yaml fix long press#966

Open
maniu wants to merge 1 commit intoEPMatt:mainfrom
maniu:main
Open

ikea_e2001_e2002.yaml fix long press#966
maniu wants to merge 1 commit intoEPMatt:mainfrom
maniu:main

Conversation

@maniu
Copy link

@maniu maniu commented Dec 2, 2025

Proposed change

Fixes unwanted up button short press ("Turn On") action triggering during long presses on left/right button in ZHA integration.

Problem
When long-pressing any button with ZHA, the up button short press action executes unintentionally due to the event sequence ending with a release event with param1: 0.

Solution
Added a condition to skip the up button short press action if the last controller event was release_0, preventing false triggers during long press sequences.

Impact
ZHA users only - deCONZ and Zigbee2MQTT should be unaffected as they probably don't trigger up button short press action.

Checklist*

  • I followed sections of the Contribution Guidelines relevant to changes I'm proposing.
  • I properly tested proposed changes on my system and confirm that they are working as expected.
  • I formatted files with Prettier using the command npm run format before submitting my Pull Request.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Hey @maniu, thank you so much for your contribution! 🚀

🔄 We're currently running a few checks to make sure that everything is great with your contribution.
If further actions need to be performed before your contribution can be reviewed, additional guidance will be provided to you in the next comment.

Results are coming soon, stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant