Home-AssistantConfig/script/Reliability.yaml
2016-12-13 02:43:57 +00:00

21 lines
761 B
YAML
Executable File

######################################################################################################
###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be.
### Sample Call
# action:
# - service: script.reliability
######################################################################################################
{% macro swTest(onoff='') %}
- service: switch.turn_{{ states(onoff) }}
entity_id: {{ onoff }}
{% endmacro %}
switch_check:
sequence:
{{ swTest("switch.foyer_outlet") }}
{{ swTest("switch.printer_outlet") }}
{{ swTest("switch.garage_outlet") }}
{{ swTest("switch.den_outlet") }}
{{ swTest("switch.living_room_outlet") }}
{{ swTest("switch.living_room_amp") }}