Adding Alexa Support for Switches

This commit is contained in:
CCOSTAN 2016-10-14 18:08:57 +00:00
parent c644c37882
commit 2f7f058d1e
4 changed files with 32 additions and 3 deletions

View File

@ -22,6 +22,15 @@ light:
host: 192.168.10.75
allow_unreachable: true
emulated_hue:
host_ip: 192.168.10.10
# expose_by_default: false
exposed_domains:
- group
- input_boolean
- media_player
- switch
ifttt:
key: !secret ifttt_key

13
customize/switches.yaml Executable file
View File

@ -0,0 +1,13 @@
###################################
## Switches Section
###################################
switch.outlet_garage:
friendly_name: 'Garage Outlet'
icon: mdi:power-plug
switch.living_room_amp:
friendly_name: 'Living Room AMP'
icon: mdi:music-circle
switch.bathroom_amp:
friendly_name: 'Bathroom AMP'
icon: mdi:music-circle

4
group/amps.yaml Executable file
View File

@ -0,0 +1,4 @@
AMPs:
entities:
- switch.living_room_amp
- switch.bathroom_amp

View File

@ -1,17 +1,20 @@
- platform: rpi_rf
gpio: 17
switches:
Outlet_Living_Room:
# Outlet 1
Living_Room_Amp:
protocol: 1
pulselength: 186
code_on: 5265155
code_off: 5265164
Outlet_2:
# Outlet 2
Bathroom_Amp:
protocol: 1
pulselength: 186
code_on: 5264835
code_off: 5264844
Outlet_Garage:
# Outlet 3
Garage_Outlet:
protocol: 1
pulselength: 186
code_on: 5264691