mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
Some some quick renaming of switches! Thanks Notepad++
This commit is contained in:
21
script/Reliability.yaml
Executable file
21
script/Reliability.yaml
Executable file
@@ -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") }}
|
||||
|
@@ -8,13 +8,13 @@
|
||||
switch_turn_off_all:
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.outlet_living_room
|
||||
entity_id: switch.living_room_outlet
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.kitchen_Accents
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.outlet_den
|
||||
entity_id: switch.den_outlet
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.foyer_outlet
|
||||
@@ -29,13 +29,13 @@ switch_turn_off_all:
|
||||
entity_id: switch.living_room_amp
|
||||
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.outlet_living_room
|
||||
entity_id: switch.living_room_outlet
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.kitchen_Accents
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.outlet_den
|
||||
entity_id: switch.den_outlet
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.foyer_outlet
|
||||
|
Reference in New Issue
Block a user