Move some holiday stuff to a reusable script..

pull/76/head
CCOSTAN 9 years ago
parent 260eed5b87
commit 5b5413432b

@ -10,14 +10,8 @@
event_type: holiday_lights_on event_type: holiday_lights_on
action: action:
- service: switch.turn_on - service: script.holiday_switches_on
entity_id: switch.den_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.living_room_outlet
- service: switch.turn_on
entity_id: switch.dining_room_outlet
- delay: 00:00:30
- alias: 'Holiday Stuff off' - alias: 'Holiday Stuff off'
trigger: trigger:

@ -13,6 +13,7 @@ http:
ssl_key: !secret ssl_key ssl_key: !secret ssl_key
trusted_networks: trusted_networks:
- 192.168.10.0/24 - 192.168.10.0/24
- 127.0.0.1
ip_ban_enabled: True ip_ban_enabled: True
login_attempts_threshold: 3 login_attempts_threshold: 3

@ -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

@ -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: # action:
# - service: script.monthly_front_house_scene # - service: script.monthly_front_house_scene
# #

Loading…
Cancel
Save

Powered by TurnKey Linux.