You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Home-AssistantConfig/script/switch_turn_off.yaml

30 lines
1.0 KiB

######################################################################################################
###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.outlet_den
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.outlet_living_room
- 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.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.living_room_amp

Powered by TurnKey Linux.