mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 02:54:41 +00:00
Switches, Switches, Siwtiches.. Bitches.
This commit is contained in:
@@ -5,13 +5,11 @@
|
||||
# - service: script.reliability
|
||||
######################################################################################################
|
||||
|
||||
{% macro swTest(onoff='') %}
|
||||
- service: switch.turn_{{ states(onoff) }}
|
||||
entity_id: {{ onoff }}
|
||||
{% endmacro %}
|
||||
{% macro swTest(onoff='') %} - service: switch.turn_{{ states(onoff) }}
|
||||
entity_id: {{ onoff }}{% endmacro %}
|
||||
|
||||
switch_check:
|
||||
sequence:
|
||||
sequence:
|
||||
{{ swTest("switch.foyer_outlet") }}
|
||||
{{ swTest("switch.printer_outlet") }}
|
||||
{{ swTest("switch.garage_outlet") }}
|
@@ -27,4 +27,9 @@ interior_off:
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.living_room_amp
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.dining_room_outlet
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user