Closed aatifk closed 8 months ago
For anyone having the same issue, I found the solution in another thread. The regex for matching to helper controller events is out of date in the blueprint. Open the blueprint YAML file (EPMatt/ikea_e1766.yaml), find the two entities that start with regex_match and replace the existing first regex_match with this:
regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else as_timestamp("1970-01-01 00:00:00"))) * 1000 }}'
for the second one, use this
regex_match("^\{((\"a\":\".*\"|\"t\":\d+\.\d+)(,)?){2}\}$")) else "" }}'
basically this eliminated the spaces from the regex match which is what's causing the blueprint to not recognize double-press events. for good measure, don't forget to reload automations or restart home assistant after this.
Hi there,
🔒 This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new ticket for related bugs.
Thanks!
Blueprint name
Controller - IKEA E1766 TRÅDFRI Open/Close Remote
Home Assistant Core Version
2024.1.3
Home Assistant Installation Type
Home Assistant Operating System
Description
I have followed the instructions fully and created a helper as the documentation suggests, and everything seems to be in order. However, the double press events are not firing at all. Not sure what's wrong here. Running via Z2M. I've also tried playing around with Double Press Delay values from 100ms all the way to 800ms, but nothing has worked so far. Any help? What am I doing wrong?
Automation YAML config
To Reproduce
Create the automation using my YAML and the same helper name, and only the short press events work.
Expected behavior
The double-press events should work, but the short press events are fired immediately.
Actual Behaviour
Double-press events not run at all
Additional Details
Screenshots
No response
Additional context
No response