mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-20 16:21:58 +00:00
29 lines
973 B
YAML
Executable File
29 lines
973 B
YAML
Executable File
######################################################################################################
|
|
###Script to shut switches with a 30 second delay to not trample codes
|
|
### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
|
|
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
|
|
### 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
|
|
- service: switch.turn_on
|
|
entity_id: switch.front_door_outlet
|
|
|
|
- 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
|
|
|