parent
0de6af05cb
commit
f3e1ba125d
@ -1,7 +1,7 @@
|
||||
Switches:
|
||||
entities:
|
||||
- switch.outlet_den
|
||||
- switch.outlet_living_room
|
||||
- switch.den_outlet
|
||||
- switch.living_room_outlet
|
||||
- switch.foyer_outlet
|
||||
- switch.kitchen_Accents
|
||||
- switch.printer_outlet
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
######################################################################################################
|
||||
###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") }}
|
||||
|
||||
Loading…
Reference in new issue