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: action:
- service: light.turn_off - service: light.turn_off
entity_id: group.interior_lights entity_id: group.interior_lights
- service: switch.turn_off - service: script.switch_turn_off_all
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

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: sequence:
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.halloween_lights_den entity_id: switch.halloween_lights_den
@ -19,3 +19,9 @@ switch_turn_off:
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.printer_outlet 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