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