Well, i tested the installation with your new script. The installation now runs fine.In the actual openWRT Versions there is no more lighttpd and in the uhttpd there has to be the ssl port too.
For me i change http into port 82 and https into port 8443
After the reboot the service still won’t start
When i manually start the HueEmulator3.py in the folder /opt/hueemulator/ , it is possible to got to the webpage of diyhue on port 80 (http) and even port 443 (https). Light can be discovered, but the link button is not working.
The original Hue-App and Hue-Essentials on my iPhone can discover the new Bridge, but when you are asked to press the button on the bridge (Link Button) there is no reaction after clicking on “Link App” in the web interface.
here the output when the HueEmulator3.py is started
root@OpenWrt:/opt/hue-emulator# ./HueEmulator3.py
2024-09-03 19:17:49,625 - configManager.argumentHandler - 122 - INFO - Using Host 192.168.17.122:80
2024-09-03 19:17:49,626 - configManager.argumentHandler - 142 - INFO - Host MAC given as bc2411649ef1
2024-09-03 19:17:49,627 - configManager.argumentHandler - 167 - INFO - IP range for light discovery: 0-255
2024-09-03 19:17:49,627 - configManager.argumentHandler - 176 - INFO - Deconz IP given as 127.0.0.1
2024-09-03 19:17:49,627 - configManager.argumentHandler - 183 - INFO - Online Discovery/Remote API Enabled!
2024-09-03 19:17:49,629 - configManager.argumentHandler - 122 - INFO - Using Host 192.168.17.122:80
2024-09-03 19:17:49,630 - configManager.argumentHandler - 142 - INFO - Host MAC given as bc2411649ef1
2024-09-03 19:17:49,630 - configManager.argumentHandler - 167 - INFO - IP range for light discovery: 0-255
2024-09-03 19:17:49,631 - configManager.argumentHandler - 176 - INFO - Deconz IP given as 127.0.0.1
2024-09-03 19:17:49,631 - configManager.argumentHandler - 183 - INFO - Online Discovery/Remote API Enabled!
2024-09-03 19:17:49,632 - configManager.argumentHandler - 29 - INFO - Debug logging disabled!
2024-09-03 19:17:49,645 - configManager.configHandler - 244 - INFO - Config loaded
2024-09-03 19:17:49,798 - services.updateManager - 22 - INFO - swversion number update from Philips, old: 1965111030 new:1966060010
2024-09-03 19:17:50,007 - services.updateManager - 56 - INFO - creation_time diyHue : 2024-09-03 18
2024-09-03 19:17:50,008 - services.updateManager - 57 - INFO - publish_time diyHue : 2024-09-02 19
2024-09-03 19:17:50,199 - services.updateManager - 94 - INFO - creation_time UI : 2024-09-02 18
2024-09-03 19:17:50,199 - services.updateManager - 95 - INFO - publish_time UI : 2024-09-02 18
2024-09-03 19:17:50,199 - services.updateManager - 66 - INFO - no update for diyHue or UI on github
2024-09-03 19:17:50,200 - services.remoteDiscover - 10 - INFO - Starting discovery service
2024-09-03 19:17:50,201 - services.stateFetch - 12 - INFO - start lights sync
2024-09-03 19:17:50,203 - services.ssdp - 25 - INFO - starting ssdp...
2024-09-03 19:17:50,203 - services.ssdp - 39 - INFO - start ssdp broadcast
2024-09-03 19:17:50,204 - services.mdns - 8 - INFO - <MDNS> listener started
* Serving Flask app 'HueEmulator3' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
2024-09-03 19:17:50,208 - werkzeug - 225 - WARNING - * Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
2024-09-03 19:17:50,209 - werkzeug - 225 - INFO - * Running on http://192.168.17.122:80/ (Press CTRL+C to quit)
Exception in thread Thread-7 (mdnsListener):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
File "/usr/lib/python3.11/threading.py", line 982, in run
File "/opt/hue-emulator/services/mdns.py", line 25, in mdnsListener
zeroconf.register_service(info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/zeroconf/_core.py", line 574, in register_service
run_coro_with_timeout(
File "/usr/lib/python3.11/site-packages/zeroconf/_utils/asyncio.py", line 97, in run_coro_with_timeout
* Serving Flask app 'HueEmulator3' (lazy loading)
return asyncio.run_coroutine_threadsafe(aw, loop).result(
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
Use a production WSGI server instead.
* Debug mode: off
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2024-09-03 19:17:50,211 - werkzeug - 225 - WARNING - * Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
File "/usr/lib/python3.11/site-packages/zeroconf/_utils/asyncio.py", line 81, in await_awaitable
2024-09-03 19:17:50,212 - werkzeug - 225 - INFO - * Running on https://192.168.17.122:443/ (Press CTRL+C to quit)
task = await aw
^^^^^^^^
File "/usr/lib/python3.11/site-packages/zeroconf/_core.py", line 602, in async_register_service
await self.async_check_service(info, allow_name_change, cooperating_responders)
File "/usr/lib/python3.11/site-packages/zeroconf/_core.py", line 762, in async_check_service
raise NonUniqueNameException
zeroconf._exceptions.NonUniqueNameException
after i start the pairing in the HueEssentials App
2024-09-03 19:18:54,385 - werkzeug - 225 - INFO - 192.168.17.106 - - [03/Sep/2024 19:18:54] "GET /api/02a1bb6a6a2611ef9347bc2411649ef1/config/swupdate2 HTTP/1.1" 200 -
2024-09-03 19:18:54,387 - werkzeug - 225 - INFO - 192.168.17.106 - - [03/Sep/2024 19:18:54] "GET /api/02a1bb6a6a2611ef9347bc2411649ef1/groups/0 HTTP/1.1" 200 -
2024-09-03 19:18:54,432 - flaskUI.restful - 75 - INFO - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
I have tested on openwrt 22.03.0 and even on openwrt 23.05.4. Both versions works the same.
The tests were done in a VM on Proxmox
I will try the new script on the router hardware too.