The 192.168.x.x ip is the address of the Docker host system that HA runs on.
HA itself has some 172.17.0.x address and I’m mapping the relevant ports to the host:
# docker port hass
8123/tcp -> 0.0.0.0:8123
8300/tcp -> 0.0.0.0:8300
I can access the description.xml and /api/pi/lights URLs using the host IP without any issue, but I can’t find the emulated_hue bridge (or the exposed devices) with Alexa or the Philips Hue app (as I understand it, it should at least be listed in there after a device search).
So is anyone having a working emulated_hue setup inside a Docker container?
I believe you will need the container running on the host network, rather than the bridge. Hue is using broadcast behavior, which won’t get into your container.
Hm, that would certainly explain things.
Though, I’m not quite convinced yet, since in the emulated_hue docs it says:
advertise_ip (Optional): If you need to override the IP address used for UPNP discovery. (For example, using network isolation in Docker)
So, to me that sounds like that option was created with a separate container network in mind.
I have no idea though, how UPNP discovery works. It sounds like it was similar to mDNS/Bonjour/Avahi, but I might be wrong.
No, I didn’t get it to work. I stopped trying because I ran out of ideas and things to try.
A few days later I sold my Echo again, because I found I had only limited use for it.
Here in Germany, about 95% of the skills for the Echo are crap (IMO) and I found the way to interact with them pretty annoying (e.g. “Alexa, ask $SKILL for $INFO” instead of “Alexa, how is $INFO”).
I have reserved a specific IP address for HA in my local network (192.168.10.8) and bound it to the host and I have set up emulated hue using this IP address.