Struggling with Emulated Hue/ Alexa setup
Posted: Fri May 26, 2017 11:19 pm
I posted this on Reddit as well but figured it couldn't hurt to try here as well for some good ideas. Essentially I've got a Pi3 that I just got Alexa working on. Works great but now I want to have it talk to my Home-Assistant Pi and it's giving me a pretty good amount of grief.
Pi3 IP = 192.168.0.29
HASS IP (Pi1) = 192.168.0.13
On the HASS pi, I've set up both my IR and RF receivers/transmitters as command line switches. Config is:
Config for my emulated hue is:
Everything seems to output correctly for the JSON object when I go to http://<HA IP Address>:8300/api/pi/lights. Output is:
So everything seems to be working on the HASS side but Alexa still can't find the device. Nothing in the HASS logs about any errors occurring. So far I have tried:
- Restarting the Rpi itself
- Creating a Hue Account and linking the skill to Alexa
- Discovering devices both shortly after HASS configuration had finished
and after waiting 5-10 minutes
- Discovering devices both by voice command and through the Alexa app.
Nothing has worked so far. Hoping someone can take a look and pass along any good ideas. Thanks for the help ☺
Edit - Also ran HASS from the command line and it gave me the error of:
Pi3 IP = 192.168.0.29
HASS IP (Pi1) = 192.168.0.13
On the HASS pi, I've set up both my IR and RF receivers/transmitters as command line switches. Config is:
Code: Select all
switch:
platform: command_line
switches:
southpowerstrip:
command_on: /home/pi/433Utils/RPi_utils/codesend 4199731 1 182
command_off: /home/pi/433Utils/RPi_utils/codesend 4199740 1 183
radio:
command_on: /home/pi/433Utils/RPi_utils/codesend 4199875 1 182
command_off: /home/pi/433Utils/RPi_utils/codesend 4199884 1 180
smallmonitor:
command_on: /home/pi/433Utils/RPi_utils/codesend 4200195 1 180
command_off: /home/pi/433Utils/RPi_utils/codesend 4200204 1 180
bedroomlight:
command_on: /home/pi/433Utils/RPi_utils/codesend 4201731 1 180
command_off: /home/pi/433Utils/RPi_utils/codesend 4201740 1 180
notinuse:
command_on: /home/pi/433Utils/RPi_utils/codesend 4207875 1 180
command_off: /home/pi/433Utils/RPi_utils/codesend 4207884 1 180
airconditioner:
command_on: ssh pi@192.168.0.29 'irsend SEND_ONCE /home/pi/lircd.conf KEY_POWER'
command_off: ssh pi@192.168.0.29 'irsend SEND_ONCE /home/pi/lircd.conf KEY_POWER'
tv:
command_on: ssh pi@192.168.0.47 'irsend SEND_ONCE /home/pi/bedtv.conf KEY_POWER'
command_off: ssh pi@192.168.0.47 'irsend SEND_ONCE /home/pi/bedtv.conf KEY_POWER'
roomair:
command_on: ssh pi@192.168.0.47 'irsend SEND_ONCE /home/pi/bedair.conf KEY_POWER'
command_off: ssh pi@192.168.0.47 'irsend SEND_ONCE /home/pi/bedair.conf KEY_POWER'
Code: Select all
emulated_hue:
type: alexa
listen_port: 8300
off_maps_to_on_domains:
- script
- scene
expose_by_default: true
exposed_domains:
- light
- switch
Code: Select all
{"switch.airconditioner": {"modelid": "HASS123", "name": "airconditioner", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.airconditioner"}, "switch.bedroomlight": {"modelid": "HASS123", "name": "bedroomlight", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.bedroomlight"}, "switch.notinuse": {"modelid": "HASS123", "name": "notinuse", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.notinuse"}, "switch.radio": {"modelid": "HASS123", "name": "radio", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.radio"}, "switch.roomair": {"modelid": "HASS123", "name": "roomair", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.roomair"}, "switch.smallmonitor": {"modelid": "HASS123", "name": "smallmonitor", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.smallmonitor"}, "switch.southpowerstrip": {"modelid": "HASS123", "name": "southpowerstrip", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.southpowerstrip"}, "switch.tv": {"modelid": "HASS123", "name": "tv", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "switch.tv"}}
- Restarting the Rpi itself
- Creating a Hue Account and linking the skill to Alexa
- Discovering devices both shortly after HASS configuration had finished
and after waiting 5-10 minutes
- Discovering devices both by voice command and through the Alexa app.
Nothing has worked so far. Hoping someone can take a look and pass along any good ideas. Thanks for the help ☺
Edit - Also ran HASS from the command line and it gave me the error of:
Code: Select all
17-05-27 02:08:20 INFO (MainThread) [homeassistant.loader] Loaded light.hue from homeassistant.components.light.hue
17-05-27 02:08:21 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
17-05-27 02:08:21 INFO (Thread-3) [homeassistant.components.light.hue] Emulated hue found, will not add