#create an automation to turn on a switch and wait 5sec and run the switch again

1 messages · Page 1 of 1 (latest)

quasi carbon
#

I have an siwtch that I need to run "turn on" to turn on and then I need to turn on again to make it go back. Is there a way to make an automation kind of double trigger but wait 5sec between the the "turn on's"?

tribal mist
#

Shouldn't it be a button if this is the behaviour you want?

quasi carbon
#

it could be a button at HA dashboard or when I press a physical zigbee button, but not sure how to do it

tribal mist
#

I guess the bigger question is: what is it actually doing, what's the switch?

#

Obviously you can't "turn on" a switch that is already "on" - but you can easily make an automation that does turn on, wait 2s, turn off, wait 3s, turn on again

quasi carbon
#

it's like a fingerbot switch, that first push, push downs the arm, and at second push, lift up the arm.

tribal mist
#

ahhh gotcha

quasi carbon
#

the switch in HA tuns on and off, but I need to push it twice to make it turn on and go back

tribal mist
#

you can just put a wait block in your automation to give it some time to run

quasi carbon
#

OK, will test that

#

aaaah, now I saw, there is a delay block. Cool, that should work