mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 16:44:46 +00:00
More scripting and reusable codes
This commit is contained in:
parent
a62ab5096d
commit
d6ae71548b
@ -27,16 +27,7 @@
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: group.interior_lights
|
entity_id: group.interior_lights
|
||||||
- service: switch.turn_off
|
- service: script.switch_turn_off_all
|
||||||
entity_id: group.amps
|
|
||||||
- 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.garage_outlet
|
|
||||||
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
######################################################################################################
|
######################################################################################################
|
||||||
###Script to send notifications to IFTTT to notify me on the mobile Phone! Call like this:
|
###Script to shut switches with a 30 second delay to not trample codes
|
||||||
######################################################################################################
|
######################################################################################################
|
||||||
|
|
||||||
switch_turn_off:
|
switch_turn_off_all:
|
||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: switch.halloween_lights_den
|
entity_id: switch.halloween_lights_den
|
||||||
@ -19,3 +19,9 @@ switch_turn_off:
|
|||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: switch.printer_outlet
|
entity_id: switch.printer_outlet
|
||||||
- delay: '00:00:30'
|
- delay: '00:00:30'
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: switch.garage_outlet
|
||||||
|
- delay: 00:01:00
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: group.amps
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user