mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 18:08:04 +00:00
More contol over the interior and exterior lights
This commit is contained in:
30
script/interior_off.yaml
Executable file
30
script/interior_off.yaml
Executable file
@@ -0,0 +1,30 @@
|
||||
######################################################################################################
|
||||
###Script to shut switches with a 30 second delay to not trample codes
|
||||
### Sample Call
|
||||
# action:
|
||||
# - service: script.interior_off
|
||||
######################################################################################################
|
||||
|
||||
interior_off:
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- group.interior_lights
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.kitchen_accents
|
||||
- delay: '00:00:30'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.foyer_outlet
|
||||
- delay: '00:00:30'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.living_room_outlet
|
||||
- delay: '00:00:30'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.printer
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user