Hi everyone.
I need to create a scene (to trigger it from apple watch) like this:
switch.sonoff1
wait 3 seconds
switch.sonoff2
how can I do?
Thanks
Hi everyone.
I need to create a scene (to trigger it from apple watch) like this:
switch.sonoff1
wait 3 seconds
switch.sonoff2
how can I do?
Thanks
script is one option.
Another option is to create an input button helper, and use that to trigger an automation which handles your waiting.
automation:
alias: "triggering scene"
trigger:
- platform: state
entity_id: input_button.scene1
action:
- service: switch.turn_on
entity_id: switch.sonoff1
- delay:
seconds: 3
- service: switch.turn_on
entity_id: switch.sonoff2
(you can create the input button on the helpers page under devices and services, in settings. I the automation above suggests it’s called scene1. )
thanks,(excuse for my english)
but script not run automatically from apple watch, because watch standard screen show only scenes.
i’ve created a Action from watch and i can run a automation.
thank you
I guess one possible option is:
Create an input boolean helpter (toggle).
Have a scene where that input boolean is turned on.
use that to trigger the automation (and reset the boolean at the end of it.)