Switches, Switches, Siwtiches.. Bitches.

This commit is contained in:
CCOSTAN
2016-12-13 19:03:34 +00:00
parent 4fdd749711
commit 09a711041f
5 changed files with 30 additions and 9 deletions

View File

@@ -57,6 +57,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt
#Todo List #Todo List
* Create IMAGE clone of the SD Card for Backup purposes. [This](https://community.home-assistant.io/t/no-more-reinstalling-your-ha-from-scratch-how-to/7630)
* AutoIt script to control lights via REST and also auto light office when I am working on Laptop. * AutoIt script to control lights via REST and also auto light office when I am working on Laptop.
* Configure the Alexa Component. * Configure the Alexa Component.
* Put Dash Buttons out there. * Put Dash Buttons out there.

View File

@@ -42,6 +42,23 @@ switch.living_room_outlet:
icon: mdi:power-plug icon: mdi:power-plug
assumed_state: true assumed_state: true
switch.Outlet_304_1:
friendly_name: 'Outlet_304_1'
icon: mdi:power-plug
assumed_state: true
switch.Outlet_304_2:
friendly_name: 'Outlet_304_2'
icon: mdi:power-plug
assumed_state: true
switch.Outlet_304_3:
friendly_name: 'Outlet_304_3'
icon: mdi:power-plug
assumed_state: true
switch.Outlet_304_4:
friendly_name: 'Outlet_304_4'
icon: mdi:power-plug
assumed_state: true

View File

@@ -5,13 +5,11 @@
# - service: script.reliability # - service: script.reliability
###################################################################################################### ######################################################################################################
{% macro swTest(onoff='') %} {% macro swTest(onoff='') %} - service: switch.turn_{{ states(onoff) }}
- service: switch.turn_{{ states(onoff) }} entity_id: {{ onoff }}{% endmacro %}
entity_id: {{ onoff }}
{% endmacro %}
switch_check: switch_check:
sequence: sequence:
{{ swTest("switch.foyer_outlet") }} {{ swTest("switch.foyer_outlet") }}
{{ swTest("switch.printer_outlet") }} {{ swTest("switch.printer_outlet") }}
{{ swTest("switch.garage_outlet") }} {{ swTest("switch.garage_outlet") }}

View File

@@ -27,4 +27,9 @@ interior_off:
- delay: '00:01:00' - delay: '00:01:00'
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.living_room_amp entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet

View File

@@ -20,7 +20,7 @@
code_off: 5265164 code_off: 5265164
# Outlet 1412_2 # Outlet 1412_2
Outlet_Den: Den_Outlet:
protocol: 1 protocol: 1
pulselength: 186 pulselength: 186
code_on: 5264835 code_on: 5264835
@@ -55,7 +55,7 @@
code_off: 284428 code_off: 284428
# Outlet 311_4 # Outlet 311_4
Outlet_Living_Room: Living_Room_Outlet:
protocol: 1 protocol: 1
pulselength: 186 pulselength: 186
code_on: 285955 code_on: 285955
@@ -82,8 +82,8 @@
code_on: 5330691 code_on: 5330691
code_off: 5330700 code_off: 5330700
# Outlet_Dining_Room # Outlet_304_4
Outlet_304_4: Dining_Room_Outlet:
protocol: 1 protocol: 1
pulselength: 186 pulselength: 186
code_on: 5332227 code_on: 5332227