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

View File

@@ -11,10 +11,10 @@
action:
- service: switch.turn_on
entity_id: switch.outlet_den
entity_id: switch.den_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.outlet_living_room
entity_id: switch.living_room_outlet
- alias: 'Holiday Stuff off'
trigger:

View File

@@ -12,7 +12,7 @@ switch.living_room_amp:
assumed_state: true
emulated_hue_name: "Living Room AMP"
switch.Outlet_Den:
switch.den_outlet:
friendly_name: 'Den Outlet'
icon: mdi:power-plug
assumed_state: true
@@ -37,7 +37,7 @@ switch.Printer_Outlet:
icon: mdi:printer
assumed_state: true
switch.Outlet_Living_Room:
switch.living_room_outlet:
friendly_name: 'Living Room Outlet'
icon: mdi:power-plug
assumed_state: true

View File

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

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