From 692fd52678bb49b7d398d7881f95a850bcf9f157 Mon Sep 17 00:00:00 2001 From: PhyberApex Date: Mon, 30 Apr 2018 22:53:46 +0200 Subject: [PATCH] Fixing recursive call in cookbook (#5279) Recursive calling is not allowed in home assistant. Splitting the script up was necessary. --- source/_cookbook/automation_flashing_lights.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_cookbook/automation_flashing_lights.markdown b/source/_cookbook/automation_flashing_lights.markdown index df141213070..5a55323eac1 100644 --- a/source/_cookbook/automation_flashing_lights.markdown +++ b/source/_cookbook/automation_flashing_lights.markdown @@ -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