From a62ab5096dd2db0d38851605c1fa91170fbdad35 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 1 Dec 2016 05:06:38 +0000 Subject: [PATCH] adding more reusable scripting code. --- automation/late_night_helper.yaml | 1 + script/switch_turn_off.yaml | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/automation/late_night_helper.yaml b/automation/late_night_helper.yaml index 42a2f7bf..e8ebda0e 100755 --- a/automation/late_night_helper.yaml +++ b/automation/late_night_helper.yaml @@ -15,6 +15,7 @@ - platform: state entity_id: group.garage_doors state: 'open' + for: '00:01:30' condition: condition: and diff --git a/script/switch_turn_off.yaml b/script/switch_turn_off.yaml index 19f5e594..1b81f064 100755 --- a/script/switch_turn_off.yaml +++ b/script/switch_turn_off.yaml @@ -5,11 +5,17 @@ switch_turn_off: sequence: - service: switch.turn_off - entity_id: switch.kitchen_accents + entity_id: switch.halloween_lights_den - delay: '00:00:30' - service: switch.turn_off - entity_id: switch.kitchen_accents + entity_id: switch.halloween_lights_dining_room - delay: '00:00:30' - service: switch.turn_off - entity_id: switch.kitchen_accents - - delay: '00:00:30' \ No newline at end of file + entity_id: switch.foyer_outlet + - delay: '00:00:30' + - service: switch.turn_off + entity_id: switch.kitchen_Accents + - delay: '00:00:30' + - service: switch.turn_off + entity_id: switch.printer_outlet + - delay: '00:00:30' \ No newline at end of file