mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
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
@ -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…
x
Reference in New Issue
Block a user