Move some holiday stuff to a reusable script..

This commit is contained in:
CCOSTAN
2016-12-19 21:10:30 +00:00
parent 260eed5b87
commit 5b5413432b
4 changed files with 27 additions and 9 deletions

23
script/holiday_switches_on.yaml Executable file
View File

@@ -0,0 +1,23 @@
######################################################################################################
###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

View File

@@ -1,5 +1,5 @@
######################################################################################################
###Script to turn on scene for the appropriate month for the front of the house.
###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down. (Minus 3 Hours)
# action:
# - service: script.monthly_front_house_scene
#