From 68854255dc4d2c731c9aa614f26e7e2661271c35 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Fri, 28 Oct 2016 00:27:15 +0000 Subject: [PATCH] Spooky Lights Testing! --- automation/halloween_flash.yaml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 automation/halloween_flash.yaml diff --git a/automation/halloween_flash.yaml b/automation/halloween_flash.yaml new file mode 100755 index 00000000..55134f75 --- /dev/null +++ b/automation/halloween_flash.yaml @@ -0,0 +1,35 @@ +################################### +## Flash the lights on Halloween for the Tricker Treaters! +################################### +- alias: 'halloween flasher' + trigger: + - platform: sun + event: sunset + - platform: event + event_type: trick_or_treat + + condition: + condition: and + conditions: + - condition: state + entity_id: sun.sun + state: 'below_horizon' + - condition: time + before: '23:45' + + action: + - service: light.turn_on +# entity_id: group.all_lights + entity_id: light.office_lamp + data: + flash: long + - delay: 00:00:5 + - service: light.turn_on + entity_id: light.office_lamp + data: + flash: long + - delay: 00:00:5 + - service: light.turn_on + entity_id: light.office_lamp + data: + flash: long \ No newline at end of file