mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-22 09:01:22 +00:00
21 lines
761 B
YAML
Executable File
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") }}
|
|
|