Hello,
I have successfully (I think) installed DiyHue on a FreshTomato based router (TomatoUSB derivative).
FreshTomato Firmware 2019.4 K26ARM USB AIO-64K
Linux kernel 2.6.36.4brcmarm and Broadcom Wireless Driver 6.37.14.86 (r456083)
Pre-Requisites are Entware for Tomato, and I have had to modify the initial install and upgrade scripts, and also the service script so it runs on Entware at startup.
I can launch the Hue LinkButton web page, and have installed the Hue Android application.
The issue I am facing is that on the Hue Android application, it momentarily finds the Hub but then immediately it disappears, and if I am able to press it fast enough it moves to the pairing screen, however it will not activate.
sample debug output below:-
*root@FreshTomato:/opt/hue-emulator# python3 HueEmulator3.py --debug*
*2020-02-07 11:47:14,666 - root - INFO - Using Host 192.168.1.1:80*
*2020-02-07 11:47:14,720 - root - INFO - e4f4c6005896*
*2020-02-07 11:47:14,721 - root - INFO - IP range for light discovery: 0-255*
*2020-02-07 11:47:14,722 - root - INFO - 127.0.0.1*
*2020-02-07 11:47:14,723 - root - INFO - Online Discovery/Remote API Enabled!*
*2020-02-07 11:47:14,727 - root - INFO - Config loaded*
*2020-02-07 11:47:14,732 - root - DEBUG - starting ssdp...*
*2020-02-07 11:47:14,733 - root - DEBUG - start ssdp broadcast*
*2020-02-07 11:47:14,737 - root - INFO - sync with lights*
*2020-02-07 11:47:14,742 - root - INFO - Starting httpd...*
*Exception in thread Thread-8:*
*Traceback (most recent call last):*
* File "/threading.py", line 932, in _bootstrap_inner*
* File "/threading.py", line 870, in run*
* File "HueEmulator3.py", line 1912, in run*
* httpd = server_class(server_address, handler_class)*
* File "/socketserver.py", line 452, in __init__*
* File "/server.py", line 137, in server_bind*
* File "/socketserver.py", line 466, in server_bind*
*OSError: [Errno 98] Address already in use*
*2020-02-07 11:47:14,780 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:47:15,035 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*2020-02-07 11:47:45,082 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:47:45,328 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*2020-02-07 11:47:59,897 - root - DEBUG - Sending M-Search response to 192.168.1.9*
*2020-02-07 11:48:01,099 - root - DEBUG - Sending M-Search response to 192.168.1.9*
*2020-02-07 11:48:02,302 - root - DEBUG - Sending M-Search response to 192.168.1.9*
*2020-02-07 11:48:03,405 - root - DEBUG - Sending M-Search response to 192.168.1.9*
*2020-02-07 11:48:15,373 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:48:15,608 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*192.168.1.12 - - [07/Feb/2020 11:48:18] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.12 - - [07/Feb/2020 11:48:34] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:48:38] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:48:43] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -*
*2020-02-07 11:48:45,651 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:48:46,021 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*192.168.1.12 - - [07/Feb/2020 11:48:51] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:49:11] "GET /hue/linkbutton HTTP/1.1" 401 -*
*192.168.1.9 - - [07/Feb/2020 11:49:15] "GET /hue/linkbutton HTTP/1.1" 200 -*
*2020-02-07 11:49:16,071 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:49:16,316 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*192.168.1.12 - - [07/Feb/2020 11:49:33] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.12 - - [07/Feb/2020 11:49:42] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:49:45] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -*
*2020-02-07 11:49:46,360 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:49:46,600 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*192.168.1.9 - - [07/Feb/2020 11:50:00] "GET /description.xml HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:50:00] "GET /description.xml HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:50:01] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:50:05] "GET /hue/linkbutton?username=Hue&password=Hue&action=Activate HTTP/1.1" 200 -*
*2020-02-07 11:50:16,651 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): discovery.diyhue.org:443*
*2020-02-07 11:50:16,896 - urllib3.connectionpool - DEBUG - https://discovery.diyhue.org:443 "POST / HTTP/1.1" 200 6*
*{"ok"}*
*192.168.1.12 - - [07/Feb/2020 11:50:22] "GET /api/nouser/config HTTP/1.1" 200 -*
*192.168.1.9 - - [07/Feb/2020 11:50:23] "GET /hue/linkbutton?username=Hue&password=Hue&action=Activate HTTP/1.1" 200 -*
Thanks,
Chris.