I’m using OpenHAB 2.4 inside a docker with network_mode: host, and I’ve installed the Hue Emulation addon via PaperUI. I’ve configured it so it announced itself on port 80 via PaperUI - Configuration → System → IO → Hue Emulation → Optional Discovery Web Port = 80.
My OpenHAB itself is running on port 8484, whilst I have Apache running on port 80. So in the main http: //openhabip/ I have set up mod_rewrite to reverse proxy the requests for /description.xml and /api/* to http: //openhabapi:8484/ for the equivalent url.
Then I went to Google Home app on my android phone and tried to add / link “Philips Hue”, and that’s where I got stuck. Google Home brought me to meethue.com web site where I had to create an account. Then when it presented the option to link a bridge, it couldn’t find any bridges.
I tried downloading the “Philip Hue” App onto Android. It managed to find the bridge, but it then got stuck in “Create a room” screen and will not proceed until I created a room. Creating a room failed. This is what’s in the apache access log (with the ip addresses removed):
“GET /api/f070de4e-dcdd-436c-aa07-06e766f5a281/config HTTP/1.1” 200 1021 “-” “-”
“POST /api/f070de4e-dcdd-436c-aa07-06e766f5a281/groups HTTP/1.1” 200 22 “-” “-”
“POST /api/f070de4e-dcdd-436c-aa07-06e766f5a281/scenes HTTP/1.1” 404 122 “-” “-”
“POST /api/f070de4e-dcdd-436c-aa07-06e766f5a281/scenes HTTP/1.1” 404 122 “-” “-”
“POST /api/f070de4e-dcdd-436c-aa07-06e766f5a281/scenes HTTP/1.1” 404 122 “-” “-”
“DELETE /api/f070de4e-dcdd-436c-aa07-06e766f5a281/groups/1 HTTP/1.1” 404 124 “-”
“GET /api/f070de4e-dcdd-436c-aa07-06e766f5a281/config HTTP/1.1” 200 1021 “-” “-”
So how can I proceed with this? What am I doing wrong? I suspect it’s something to do with upnp and docker.