You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
761 B
21 lines
761 B
######################################################################################################
|
|
###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") }}
|
|
|