Fixing recursive call in cookbook (#5279)
Recursive calling is not allowed in home assistant. Splitting the script up was necessary.
This commit is contained in:
parent
8ec44c00dd
commit
692fd52678
1 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,14 @@ script:
|
||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: switch.REL1
|
entity_id: switch.REL1
|
||||||
|
- alias: loop_room1
|
||||||
|
service: script.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: script.flash_loop
|
||||||
|
|
||||||
|
flash_loop:
|
||||||
|
alias: Flash loop
|
||||||
|
sequence:
|
||||||
- delay:
|
- delay:
|
||||||
# time for flash light off
|
# time for flash light off
|
||||||
seconds: 1
|
seconds: 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue