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:
PhyberApex 2018-04-30 22:53:46 +02:00 committed by Fabian Affolter
parent 8ec44c00dd
commit 692fd52678

View File

@ -97,6 +97,14 @@ script:
service: homeassistant.turn_off
data:
entity_id: switch.REL1
- alias: loop_room1
service: script.turn_on
data:
entity_id: script.flash_loop
flash_loop:
alias: Flash loop
sequence:
- delay:
# time for flash light off
seconds: 1