-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Fix long press up/down for ikea_e2001_e2002.yaml #411
base: main
Are you sure you want to change the base?
Conversation
EPMatt#399 Made fixes for long pressing the up and down buttons. Does NOT include release action fixes as detailed here: https://community.home-assistant.io/t/zha-deconz-zigbee2mqtt-ikea-e2001-e2002-styrbar-remote-control-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks/354176/19#:~:text=The%20fix%20is%20getting%20the%20substring%20release%20from%20the%20zha_event%3A If someone could work out how to implement that would be appreciated.
Hey @LewisSpring, thank you so much for your contribution! 🚀 🔄 We're currently running a few checks to make sure that everything is great with your contribution. Results are coming soon, stay tuned! |
This patch fixes long pressing the up and down buttons on my e2002 device. |
That's great news. Do you have issues with the "hold actions" not stopping? I'm experiencing that right now, as a result of me personally not being able to implement the "release action" fix. |
Updated pull request with @lsismeiro's changes. FYI: The version number in the description of the blueprint has been changed to reflect the deviation from the released version. |
The changes in this PR are working great for me now. Finally can reset my lights with a double click without losing the ability to dim. |
@LewisSpring Second commit actually updates name of events and should be trivial to review, test and will probably get approved and merged. Anyway, thanks for your work! |
Hi @koorool, That's a good proposal. I'm not sure what the first commit actually changes to be honest. It was quite a while ago(!) Edit: I as far as I can tell, I only changed the button press actions. |
Pulled from main and updated with @lsismeiro 's changes. FYI: version number changed for clarity
Thank for your update. Installed and tested on my E2002 controllers, all works as expected. Seems like there is a bigger PR that fixes that issue for most controllers (apparently it's not E2001/E2002 specific): #314 And there was some activity from repo author, so there is a chance it will get merged. Regardless, thank you for your work! |
You're welcome. Same here - no issues I can find. I wasn't aware of that pull and activity. That's good news too. |
Hi all, just to be sure that the changes I made and that work, as already proved by other people besides me, are not missing. Here is the diff between the latest working code from the repository with the help fix (#378) and my own changes:
Regards, Luis Sismeiro |
Hey Luis, I am now aware of that change. I will update the pull with these changes. Thank you! |
FYI: version number changed for clarity.
Direct copy of changes from https://github.com/lsismeiro/awesome-ha-blueprints. Future changes for this pull request will be mirrored from that fork. Includes fixes for button actions and space evaluation post 2023.5.0. Minimum version is 2023.5.0
With the latest version of this PR, my long press down doesn't actually dim the light. Long up will increase brightness. Up and down work for on/off. With an e2002. |
…with @AHoran fixes for Long Button Down Actions Co-authored-by: Adam Horan <[email protected]>
Bump min_version to 2023.6.0 due to home-assistant/core#93860 Older versions appear to use different actions.
Line 324 is incorrect. Should be changed to this: Some change in ZHA was made in a recent HA update that also broke another Ikea switch (The two button dimmer) |
Hi @rofo69, It appears this fix is already in place I'm still experiencing the aforementioned "down hold action does not release" issue with this fix. |
Hi all, If ZHA IKEA remotes move to this integration, We would need a new automation, but this looks like a really positive move. Current methods should remain to work for the foreseeable future, I assume. |
Fix Down Release command Add note about E2201 support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lsismeiro
I have made these changes to the PR.
Would you like me to create a pull request to your repo or otherwise merge these changes to keep it in sync?
Until then, I have removed the "Copied from with no modification:" tag.
Once these changes are merged, I will probably refer people to your repository's copy instead and make PRs to #411 and your repo simultaneously
Cheers mate
Hi, I didn't find the time yet to check the changes. As soon as I have some time and restore the files of my dev tree I can take a look. Regards, Luis Sismeiro |
I updated the repository with the changes on the main branch, I think it is OK to add it as a blueprint using the HA GUI: |
Cheers Luis, will put a post up |
No changes to code of blueprint. Updated description ONLY to reflect host repository change
Great work! thank you. |
Unfortunately EPMatt has not been active on the project so we as a community are unable to do so. Please check the GitHub repository I linked above, where we are updating the blueprints as a community effort. |
Breaking change
Shouldn't be a breaking change for end users.
Proposed change*
Works towards resolving #399, fixes for long pressing the up and down buttons. Update 2022-12-13 Also fixes left and right hold too.
Strikethrough 2022-12-13
Does NOT include release action fixes as detailed here (See Note 2). If someone could work out how to implement that would be appreciated - I wasn't entirely sure how to do it myself.Checklist*
npm run format
before submitting my Pull Request.