Switches, Switches, Siwtiches.. Bitches.

This commit is contained in:
CCOSTAN
2016-12-13 19:03:34 +00:00
parent 4fdd749711
commit 09a711041f
5 changed files with 30 additions and 9 deletions

View File

@@ -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") }}

View File

@@ -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