Hi all
I have a light switch with a momentary button.
I want to set a trigger event so if the button is pushed twice in under 0.5 seconds then it runs actions
Can someone pls help with how to set the trigger?.
Thanks
Hi all
I have a light switch with a momentary button.
I want to set a trigger event so if the button is pushed twice in under 0.5 seconds then it runs actions
Can someone pls help with how to set the trigger?.
Thanks
What kind of device is it? Manufacturer/model?
Assuming your switch doesn't have double-tap natively, I know it can be done thru the use of a Boolean or a virtual temporary switch that turns auto-off after 0.5 seconds. I just can't get the logic straight. It's been done in at least one other thread. I just need to find it. Stay tuned.
See if the logic helps:
The light switch is controlled by a Shelly 1. So unfortunately it doesnât have a âdouble tapâ option which is why I need to manually check for it
Thanks. Iâll give this a go after work
If using HE to handle the double-tap doesnât end up working out for you, and if youâre willing to flash the Shelly, you could install tasmota on the Shelly 1 and use that to enable double (and even up to five-tap) that way. It will take a little effort to set up, but it does work very reliably.
Theoretically this is not a problem.
Practically you can do this in custom app (but you have to write it yourself).
Unfortunately in RM timing is not guaranteed, specifically in sub-second range.
Thatâs my concern as well - especially with a wireless device. IMHO, best to handle this sort of timing on the device itself.
100% agree. This was a reason why I created ESP32-based custom Door Actuator Controller.