Some some quick renaming of switches! Thanks Notepad++

This commit is contained in:
CCOSTAN
2016-12-13 02:32:14 +00:00
parent 0de6af05cb
commit f3e1ba125d
5 changed files with 31 additions and 10 deletions

21
script/Reliability.yaml Executable file
View 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") }}

View File

@@ -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