-
-
Notifications
You must be signed in to change notification settings - Fork 254
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 - Ikea Shortcut Button Double Click does not work #593
Comments
same here. Also a note is that the (Optional) Helper - Double Press delay is working-isch, it takes the delay, after that it just fires the single press action |
I also have this problem and did a little digging in the traces. It seems like the time since the last command doesn't get set correctly. I'm currently working on finding out where the problem exactly lies and will try to fix it. |
I found the problem. It has to do with RegEx. I am in no way a home assistant or scripting expert but to me it seems like some way down the line the way home assistant handles whitespaces in RegEx changed. This is the current way the automation checks for the correctness:
If you change this to:
It gets matched correctly. All I did was remove all whitespaces in the RegEx. |
Hi glad it worked for you.
|
|
Thanks Mate. |
Ok, so here's how you can change it locally: In the blueprint navigate to line 482 and 486 (Might vary for you) and change all the regex strings to not contain ANY whitespaces aka Spaces and newlines. Then save the .yaml file and restart Home Assistant(Honestly don't know if thats necessary). If you still need help doing it, feel free to ask. |
Thanks for this fix in the regex @ZtormTheCat. Worked like a charm. |
Blueprint name
Controller - IKEA E1812 TRÅDFRI Shortcut button
Home Assistant Core Version
2023.11.3
Home Assistant Installation Type
Home Assistant Operating System
Description
I imported the Ikea shortcut button blueprint and set it up everything works as expected, except double click.
Attached screenshots of setup with error.
I having configured the device using zigbee 2 mqtt setup.
Automation YAML config
To Reproduce
Import blueprint.
Setup as image below.
Run.
Expected behavior
Double click should toggle switch.
Actual Behaviour
Nothing.
Additional Details
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: