Ok, so this topic has been asked many times before, and I’ve been trying all different combinations over and over for last few days without any progress. TL,DR: Alexa is not able to find emulated hue bridge.
My environment details:
- Using Hass.io 0.60 (with HA 0.52.1 upgraded from HA 0.51.2)
- I’ve installed Hass.io on my Raspberry Pi 3 (I have also tried everything with my old Raspberry Pi B+ too, but the results are exactly the same)
- I don’t have any physical hue bulbs or bridges
- I’ve Echo Dot 2 (bought this month)
- I’m trying to control
switch.rpi_gpio
with Alexa (I have connected 4 relays connected to GPIO pins and I’m able to control these using the UI toggles)
My configuration (I’m posting entire configuration, since I think I might be missing something silly):
homeassistant:
name: Home
latitude: 22.5726
longitude: 88.3639
elevation: 91
unit_system: metric
time_zone: Asia/Kolkata
# NOTE: Tried adding here, but same results!
#customize:
# switch.bedroom:
# friendly_name: "Bedroom"
# emulated_hue: true
frontend:
config:
http:
api_password: "p@$$w@rd"
base_url: "mydomain.duckdns.org:8123"
ssl_certificate: "/ssl/fullchain.pem"
ssl_key: "/ssl/privkey.pem"
updater:
discovery:
conversation:
history:
logbook:
# NOTE: Logs for `emulated_hue` doesn't show any errors
logger:
default: error
logs:
homeassistant.components: warning
homeassistant.components.emulated_hue: debug
# NOTE: Tried removing `type: alexa`
# NOTE: Tried removing `advertise_ip: ...`
# NOTE: Tried removing `listen_port: 80` and changing to `listen_port: 8300`
emulated_hue:
type: alexa
advertise_ip: 192.168.0.101
listen_port: 80
expose_by_default: true
switch:
- platform: rpi_gpio
invert_logic: true
ports:
26: "Tubelight"
19: "Fan"
20: "Refrigerator"
16: "TV"
light:
- platform: rpi_gpio_pwm
leds:
- name: "Bedroom"
driver: "gpio"
pins: [17]
type: "simple"
sensor:
- platform: yweather
forecast: 0
name: "Today's Weather"
monitored_conditions:
- weather
group: !include groups.yaml
automation: !include automations.yaml
I’ve tried every combinations as mentioned in the config comments (and of course restarted homeassistant every time after making changes with hassio homeassistant restart
). I have SSL setup which is working great. The problem is when I ask alexa to search for devices, it first says “Starting discovery. This can take up to 20 seconds. If you have Philips Hue, press the button on your bridge.”. After 20 seconds it says “Discovery is complete. I couldn’t find any smart home devices. If your Philips bulbs were not discovered, please press button on your bridge and rerun discovery”. I’m getting I do not see anything in the logs too when discovery is running.
Also I do see an XML response when I open http://192.168.0.101/description.xml
from my browser (or http://192.168.0.101:8300/description.xml
when the port is configured as 8300
– see comment in config). I also see a JSON response at http://192.168.0.101/api/pi/lights
containing all the switches and lights as below:
{
"group.all_automations":{
"modelid":"HASS123",
"name":"all automations",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"group.all_automations"
},
"group.all_devices":{
"modelid":"HASS123",
"name":"all devices",
"state":{
"bri":255,
"on":true,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"group.all_devices"
},
"group.all_lights":{
"modelid":"HASS123",
"name":"all lights",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"group.all_lights"
},
"group.all_switches":{
"modelid":"HASS123",
"name":"all switches",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"group.all_switches"
},
"light.bedroom":{
"modelid":"HASS123",
"name":"Bedroom",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"light.bedroom"
},
"switch.fan":{
"modelid":"HASS123",
"name":"Fan",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"switch.fan"
},
"switch.refrigerator":{
"modelid":"HASS123",
"name":"Refrigerator",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"switch.refrigerator"
},
"switch.tubelight":{
"modelid":"HASS123",
"name":"Tubelight",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"switch.tubelight"
},
"switch.tv":{
"modelid":"HASS123",
"name":"TV",
"state":{
"bri":0,
"on":false,
"reachable":true
},
"swversion":"123",
"type":"Dimmable light",
"uniqueid":"switch.tv"
}
}
If everything is fine, why alexa is not able to find it? What else am I missing here? Please help, as I’ve started getting frustrated listening the same “press the philips hue button” response from alexa (I know from other posts that emulated_hue component fakes the bridge button and that button is always pressed).
Note that I do not have any skills enabled. Are such skills even required? I’ve tried installing the Hue skill but this also tries to search a Philips Hue bridge before I can enable the skill. I hope that such skills are not required to make this work.
Thanks in advance!