Updated with new outlet switch.

This commit is contained in:
CCOSTAN
2016-12-23 21:34:51 +00:00
parent 589cd7897a
commit a70baec23a
5 changed files with 95 additions and 84 deletions

View File

@@ -1,23 +1,27 @@
######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes
### Sample Call
# action:
# - service: script.holiday_switches_on
######################################################################################################
holiday_switches_on:
sequence:
- service: switch.turn_on
entity_id: switch.living_room_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.foyer_outlet
- delay: 00:00:30
- condition: sun
after: sunset
- service: switch.turn_on
entity_id: switch.den_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.dining_room_outlet
######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes
### Sample Call
# action:
# - service: script.holiday_switches_on
######################################################################################################
holiday_switches_on:
sequence:
- service: switch.turn_on
entity_id: switch.living_room_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.foyer_outlet
- delay: 00:00:30
- condition: sun
after: sunset
- service: switch.turn_on
entity_id: switch.den_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.dining_room_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.village_outlet

View File

@@ -1,56 +1,62 @@
######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes
### Sample Call
# action:
# - service: script.switch_turn_off_all
######################################################################################################
switch_turn_off_all:
sequence:
- service: switch.turn_off
entity_id: switch.living_room_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.den_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
- service: switch.turn_off
entity_id: switch.living_room_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.den_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes
### Sample Call
# action:
# - service: script.switch_turn_off_all
######################################################################################################
switch_turn_off_all:
sequence:
- service: switch.turn_off
entity_id: switch.living_room_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.den_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_on
entity_id: switch.village_outlet
- service: switch.turn_off
entity_id: switch.living_room_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.den_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_on
entity_id: switch.village_outlet