Alexa can't find any devices with Hue Emulation

I just received one of the new Echo Dots, and have been trying to set it up to talk to my openHAB 2 system (via Hue Emulation) to no avail. I installed the Hue Emulation extension, and activated pairing mode via Paper UI. However, no matter how many times I try, I can’t get Alexa or even the Philips Hue app to discover openHAB as a bridge. I have tried removing and reinstalling the Hue Emulation extension, restarting openHAB, and even restarting my router. I also tried setting up a reverse proxy for /api/ since I have apache running on the same machine. I have also tried using both the IP of the server and localhost for discovery ip.
The following are the only debugging lines from the log:

2016-10-20 15:27:22.382 [DEBUG] [org.openhab.io.hueemulation         ] - BundleEvent STARTING - org.openhab.io.hueemulation
2016-10-20 15:27:22.463 [DEBUG] [ulation.internal.HueEmulationServlet] - Device pairing enabled : true
2016-10-20 15:27:22.477 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent REGISTERED - {javax.servlet.ServletContext}={osgi.web.symbolicname=org.openhab.io.hueemulation, osgi.web.version=2.0.0.201610152054, osgi.web.contextpath=/, service.id=342, service.bundleid=210, service.scope=singleton} - org.openhab.io.hueemulation
2016-10-20 15:27:22.487 [INFO ] [ulation.internal.HueEmulationServlet] - Started Hue Emulation service at /api
2016-10-20 15:27:22.488 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent REGISTERED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.hueemulation, service.config.category=io, service.config.label=Hue Emulation, discoveryIp=192.168.15.254, component.name=org.openhab.hueemulation, component.id=201, pairingEnabled=true, service.config.description.uri=io:hueemulation, service.id=341, service.bundleid=210, service.scope=bundle} - org.openhab.io.hueemulation
2016-10-20 15:27:22.490 [DEBUG] [org.openhab.io.hueemulation         ] - BundleEvent STARTED - org.openhab.io.hueemulation
2016-10-20 15:28:09.769 [DEBUG] [ulation.internal.HueEmulationServlet] - 192.168.15.254: GET /api/discovery.xml
2016-10-20 15:28:14.880 [DEBUG] [ulation.internal.HueEmulationServlet] - 192.168.15.254: GET /api/discovery.xml
2016-10-20 15:28:16.230 [DEBUG] [ulation.internal.HueEmulationServlet] - Device pairing enabled : false
2016-10-20 15:28:16.232 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent MODIFIED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.hueemulation, service.config.category=io, service.config.label=Hue Emulation, component.name=org.openhab.hueemulation, component.id=201, pairingEnabled=false, service.config.description.uri=io:hueemulation, service.id=341, service.bundleid=210, service.scope=bundle} - org.openhab.io.hueemulation
2016-10-20 15:28:32.584 [DEBUG] [ulation.internal.HueEmulationServlet] - Device pairing enabled : true
2016-10-20 15:28:32.621 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent MODIFIED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.hueemulation, service.config.category=io, service.config.label=Hue Emulation, component.name=org.openhab.hueemulation, component.id=201, pairingEnabled=true, service.config.description.uri=io:hueemulation, service.id=341, service.bundleid=210, service.scope=bundle} - org.openhab.io.hueemulation
2016-10-20 15:39:10.185 [DEBUG] [ulation.internal.HueEmulationServlet] - 127.0.0.1: GET /api/nouser/config
2016-10-20 15:39:10.215 [DEBUG] [ulation.internal.HueEmulationServlet] - apiServerError 3 Hue resource not available
2016-10-20 15:41:15.503 [DEBUG] [ulation.internal.HueEmulationServlet] - 127.0.0.1: GET /api/nouser/config
2016-10-20 15:41:15.557 [DEBUG] [ulation.internal.HueEmulationServlet] - apiServerError 3 Hue resource not available
2016-10-20 15:41:54.908 [DEBUG] [ulation.internal.HueEmulationServlet] - Device pairing enabled : true
2016-10-20 15:41:54.961 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent MODIFIED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.hueemulation, service.config.category=io, service.config.label=Hue Emulation, discoveryIp=127.0.0.1, component.name=org.openhab.hueemulation, component.id=201, pairingEnabled=true, service.config.description.uri=io:hueemulation, service.id=341, service.bundleid=210, service.scope=bundle} - org.openhab.io.hueemulation
2016-10-20 15:42:52.900 [DEBUG] [ulation.internal.HueEmulationServlet] - Device pairing enabled : true
2016-10-20 15:42:52.953 [DEBUG] [org.openhab.io.hueemulation         ] - ServiceEvent MODIFIED - {javax.servlet.http.HttpServlet}={service.pid=org.openhab.hueemulation, service.config.category=io, service.config.label=Hue Emulation, discoveryIp=192.168.15.254, component.name=org.openhab.hueemulation, component.id=201, pairingEnabled=true, service.config.description.uri=io:hueemulation, service.id=341, service.bundleid=210, service.scope=bundle} - org.openhab.io.hueemulation
2016-10-20 15:44:52.244 [DEBUG] [ulation.internal.HueEmulationServlet] - 127.0.0.1: GET /api/nouser/config
2016-10-20 15:44:52.310 [DEBUG] [ulation.internal.HueEmulationServlet] - apiServerError 3 Hue resource not available
2016-10-20 15:46:20.033 [DEBUG] [ulation.internal.HueEmulationServlet] - 127.0.0.1: GET /api/nouser/config
2016-10-20 15:46:20.086 [DEBUG] [ulation.internal.HueEmulationServlet] - apiServerError 3 Hue resource not available

I just got my new Echo Dot and having the same issue. I have discovery turned on and can even see the Dot hitting the API for discovery, however no devices are reported as found.

I have added tags to a couple of items and using the rest URL I’m seeing the tag displayed correctly.

I’m trying this with the latest snapshot running on Windows 10.

I found this: OH2 - HueEmulation - Alexa: Not Authorized Error

Once I added “Switchable” to my item definitions they are now being discovered, so this is progress!

Robert,

Let me know if you have questions. I believe I have a generally working configuration at this point. There are only three types allowed, I went digging to through the source and confirmed that Switchable was what I needed.

We also got our new Dots this week, and the family is enjoying talking to OH2.

Tony

Unfortunately that won’t solve the issue I am experiencing. I already have items tagged with Switchable and Lighting for HomeKit. I just don’t think the Alexa is even seeing openHAB. The few hits I got on /api/nouser/config came from the Hue app, not Alexa. But that just gives the vague error apiServerError 3 Hue resource not available.

I figured it out. It turned out that for some unknown reason multicast packets were not making it from the wifi side to the wired side of my router. Once I figured out how to solve that issue, Alexa discovered everything, and it works perfectly.

1 Like

I may be having the same issue, I’m using airport extremes throughout my house, and I can’t discover my hue emulation devices. How did you solve this? What router are you using?

I used wireshark to scan for multicast packets on multiple machines to confirm my suspicions. I then discovered that port 1 on my router was in a different VLAN for some reason. So I solved it by moving my openhab server to port 2. I’m using an ASUS RT-87U.