More scripting and reusable codes

This commit is contained in:
CCOSTAN 2016-12-01 05:14:47 +00:00
parent a62ab5096d
commit d6ae71548b
2 changed files with 11 additions and 14 deletions

View File

@ -27,16 +27,7 @@
action:
- service: light.turn_off
entity_id: group.interior_lights
- service: switch.turn_off
entity_id: group.amps
- delay: 00:01:00
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: 00:01:00
- service: switch.turn_off
entity_id: switch.kitchen_accents
- delay: 00:01:00
- service: switch.turn_off
entity_id: switch.garage_outlet
- service: script.switch_turn_off_all

View File

@ -1,8 +1,8 @@
######################################################################################################
###Script to send notifications to IFTTT to notify me on the mobile Phone! Call like this:
###Script to shut switches with a 30 second delay to not trample codes
######################################################################################################
switch_turn_off:
switch_turn_off_all:
sequence:
- service: switch.turn_off
entity_id: switch.halloween_lights_den
@ -18,4 +18,10 @@ switch_turn_off:
- delay: '00:00:30'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:00:30'
- delay: '00:00:30'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: 00:01:00
- service: switch.turn_off
entity_id: group.amps