mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Can't connect Bridge with Philips Hue App #284

Closed Marmi86 closed 6 years ago

Marmi86 commented 6 years ago

Hi I've got a big problem reinstalling the Diyhue today(newest Firmware), now the Philiphs Hue app can not connect to my bridge anymore but other apps (Hue Essentials and more) see the bridge immediately and let me control it.

Have already tried the linkbutton before or after to confirm, but they do not find the Philiphs app

Marco

mariusmotea commented 6 years ago

How did you tried to reinstall it? I believe it will work only if you delete /opt/hue-emulator folder

Marmi86 commented 6 years ago

The same problem. I reinstall Raspian Stretch

mariusmotea commented 6 years ago

Stop hue-emulator service and start manually the script.

cd /opt/hue-emulator sudo ./HueEmulator3.py

Check for errors

Marmi86 commented 6 years ago

_I show with sudo systemctl status hue-emulator.service

pi@raspberrypi:~ $ sudo systemctl status hue-emulator.service ● hue-emulator.service - Hue Emulator Service Loaded: loaded (/lib/systemd/system/hue-emulator.service; enabled; vendor pre Active: active (running) since Sat 2018-07-14 14:47:55 CEST; 10min ago Main PID: 2888 (HueEmulator3.py) CGroup: /system.slice/hue-emulator.service └─2888 /usr/bin/python3 /opt/hue-emulator/HueEmulator3.py

Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: self.handle_one_request() Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: File "/usr/lib/python3.5/ht Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: method() Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: File "/opt/hue-emulator/Hue Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: bridge_config[url_pices[3 Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: KeyError: '772cd905d-on-0' Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: 192.168.8.100 - - [14/Jul/201 Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: Traceback (most recent call l Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: File "/usr/lib/python3.5/so Jul 14 14:57:51 raspberrypi HueEmulator3.py[2888]: self.finish_request(reque

And starting Script via command line(searching Light)

192.168.8.100 - - [14/Jul/2018 15:01:22] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 - sync with lights 192.168.8.100 - - [14/Jul/2018 15:01:27] "GET /api/a7161538be80d40b3de98dece6e91f90 HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 15:01:36] "POST /api/a7161538be80d40b3de98dece6e91f90/lights/ HTTP/1.1" 200 - in post method /api/a7161538be80d40b3de98dece6e91f90/lights/

Exception happened during processing of request from ('192.168.8.100', 34812) Traceback (most recent call last): File "/usr/lib/python3.5/socketserver.py", line 625, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.5/socketserver.py", line 354, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.5/socketserver.py", line 681, in init self.handle() File "/usr/lib/python3.5/http/server.py", line 422, in handle self.handle_one_request() File "/usr/lib/python3.5/http/server.py", line 410, in handle_one_request method() File "./HueEmulator3.py", line 1295, in do_POST post_dictionary = json.loads(self.data_string.decode('utf8')) File "/usr/lib/python3.5/json/init.py", line 319, in loads return _default_decoder.decode(s) File "/usr/lib/python3.5/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I can connect with Gen 1 Philpips App and other 3rd Apps to the Bridge ,i can't find Bulbs

mariusmotea commented 6 years ago

What kind of lights do you use? Be aware that i change the modelid for strips, now they use LST002 instead os LST001 becaus e these seams to be better supported for hue entertainment. Is mandatory to flash the firmware with latest one. Also, you use Android or iPhone?

Marmi86 commented 6 years ago

i use an Android Phone and my SD-Card run with Raspian Lite. Yesterday DiyHue and my Ws2812b Strips works fine

mariusmotea commented 6 years ago

Flash again with arduino ota the firmware with the one published here. I made a test, my phone works fine with latest hue application

Marmi86 commented 6 years ago

okay i flash the strips

Marmi86 commented 6 years ago

App founds Bridge but i can't connect with the Philiphs Hue App

Log: Sending M-Search response to 192.168.8.101 192.168.8.104 - - [14/Jul/2018 15:25:10] "GET /hue/linkbutton HTTP/1.1" 200 - 192.168.8.104 - - [14/Jul/2018 15:25:11] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -

Pi and my Test Ws2812b works with the new firmware

mariusmotea commented 6 years ago

This is all? Is 192.168.8.101 your phone ip?

Marmi86 commented 6 years ago

no my Phone Ip ends with 100

mariusmotea commented 6 years ago

Then no ssdp search requests are comming from your phone to hue emulator. Other requests are comming so the issue is on phone side.

Marmi86 commented 6 years ago

But I can connect with 3rd App to the Bridge Linkbutton works Log: 92.168.8.100 - - [14/Jul/2018 15:35:32] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 - Sending M-Search response to 192.168.8.101 sync with lights Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 192.168.8.100 - - [14/Jul/2018 15:35:55] "POST /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - in post method /api/470a0c52e89555f73b11904c84af6192/lights b'{}' Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Yeelight search end 192.168.8.100 - - [14/Jul/2018 15:36:03] "GET /api/470a0c52e89555f73b11904c84af6192/lights/new HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 15:36:03] "GET /api/470a0c52e89555f73b11904c84af6192/sensors/new HTTP/1.1" 200 - ['192.168.8.1', '192.168.8.137', '192.168.8.107', ''] Sending M-Search response to 192.168.8.101 ip 192.168.8.1 is unknow device {'hue': 'strip', 'lights': 1, 'mac': '38:52:1b:7f:cf:5c', 'modelid': 'LST002', 'name': 'WS2812 Hue Strip'} 192.168.8.137 is a hue strip ip 192.168.8.137 is unknow device registration fail, is the link button pressed? Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 Sending M-Search response to 192.168.8.101 192.168.8.100 - - [14/Jul/2018 15:36:17] "GET /api/nouser/config HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 15:36:17] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 -

mariusmotea commented 6 years ago

I still believe there is a problem on your side. I just perform a test, clear my Hue app data (android) move /opt/hue-emulator folder to a temporary location and execute the automatic install script:

pi@raspberrypi:~ $ sudo systemctl stop hue-emulator.service 
pi@raspberrypi:~ $ cd /opt/hue-emulator
pi@raspberrypi:/opt/hue-emulator $ sudo ./HueEmulator3.py 
Config loaded
start ssdp broadcast
starting ssdp...
sync with lights
Starting httpd...
Starting ssl httpd...
192.168.10.20 - - [14/Jul/2018 16:36:45] "GET /api/nouser/config HTTP/1.1" 200 -
Sending M-Search response to 192.168.10.50
192.168.10.50 - - [14/Jul/2018 16:36:46] "GET /description.xml HTTP/1.1" 200 -
192.168.10.50 - - [14/Jul/2018 16:36:46] "GET /description.xml HTTP/1.1" 200 -
Sending M-Search response to 192.168.10.20
Sending M-Search response to 192.168.10.50
Sending M-Search response to 192.168.10.50
Sending M-Search response to 192.168.10.50
192.168.10.20 - - [14/Jul/2018 16:36:53] "GET /api/nouser/config HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:36:53] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:36:54] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:36:55] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:36:56] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:36:57] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:36:58] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:36:59] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:37:00] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:01] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:37:02] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:37:03] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:04] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:37:05] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.10.40
192.168.10.20 - - [14/Jul/2018 16:37:06] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:07] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:08] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:09] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.50 - - [14/Jul/2018 16:37:10] "GET /hue/linkbutton HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:10] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.20 - - [14/Jul/2018 16:37:11] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.10.50 - - [14/Jul/2018 16:37:12] "GET /hue/linkbutton?username=admin&password=comunicare123%21%40%23&action=Activate HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:12] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
[
    {
        "success": {
            "clientkey": "321c0c2ebfa7361e55491095b2f5f9db",
            "username": "a7161538be80d40b3de98dece6e91f90"
        }
    }
]
192.168.10.20 - - [14/Jul/2018 16:37:12] "GET /api/a7161538be80d40b3de98dece6e91f90 HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:13] "GET /api/a7161538be80d40b3de98dece6e91f90/config HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:13] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:13] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:13] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:13] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:14] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:14] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 -
sync with lights
192.168.10.20 - - [14/Jul/2018 16:37:15] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:15] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:15] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:15] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:16] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 -
192.168.10.20 - - [14/Jul/2018 16:37:16] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 -
^Cconfig saved

As you can see once i "press" the linkbutton the application was paired and it ask for light search. Is latest version of Hue application running on Android 8.

Marmi86 commented 6 years ago

But i dont understand yesterday my diyHue with Hue App works i flash the firmware before fix u the last comment (add raspi entertaiment) And today i flash the new firmware i can't connect :)

mariusmotea commented 6 years ago

You can try to replace the HueEmulator3.py file from history. Git store all changes and you can revert to any date.

Marmi86 commented 6 years ago

Which Raspberry do you use? It's the new update only for Raspi 3 ? The Armv71 its for raspi 3 I use a Pi 2

mariusmotea commented 6 years ago

i believe are the same. Check with uname -m. Anyway that is just for hue entertainment. Did you tried to delete mobile application data?

Marmi86 commented 6 years ago

Yes i reinstall the Hue App

Marmi86 commented 6 years ago

I can find the problem: My Steps

-Reinstall new Raspian Lite (last release) -Install git -Install new diyHue firmware on Pi and my Ledstripe -Don't Connect with Hue app (Huawei P10 Pro and Samsung Tab) -Connect with 3rd App Hello Hue (Can controll Lights)(Light Modell:LT002 Software Version 5.90.019950)

mariusmotea commented 6 years ago

I cannot reproduce your problem, but i suggest following things:

  1. delete current installation sudo rm -rf /opt/hue-emulator (stop the service first)
  2. execute again the deploy script from wiki
  3. provide output of the command curl 127.0.0.1/api/nouser/config
  4. provide output of command ip a
  5. stop hue-emulator service and cd /opt/hue-emulator and sudo./hueEmulator3.py
  6. provide the output during the pair process of the hue application.
oleg2204 commented 6 years ago

I got kinda the same problem:

I reinstalled the Hue App and now i cant connect anymore.

I press "Search Bridge" in the App. It finds my bridge. Then it tells me to press the Linkbutton, so i visit ipofpi/hue/linkbutton and press "Actiavate" but nothing happens.

Here the output: pi@raspberrypi:/opt/hue-emulator $ sudo python3 HueEmulator3.py Config loaded Starting deconz websocket starting ssdp... start ssdp broadcast sync with lights Starting httpd... 192.168.0.45 - - [14/Jul/2018 19:50:19] "GET /description.xml HTTP/1.1" 200 - Starting ssl httpd... 192.168.0.241 - - [14/Jul/2018 19:50:28] "GET /api/nouser/config HTTP/1.1" 200 - Sending M-Search response to 192.168.0.241 192.168.0.242 - - [14/Jul/2018 19:50:45] "GET /hue/linkbutton HTTP/1.1" 200 - Sending M-Search response to 192.168.0.242 192.168.0.242 - - [14/Jul/2018 19:50:48] "GET /description.xml HTTP/1.1" 200 - 192.168.0.242 - - [14/Jul/2018 19:50:48] "GET /description.xml HTTP/1.1" 200 - 192.168.0.242 - - [14/Jul/2018 19:50:48] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - Sending M-Search response to 192.168.0.242 Sending M-Search response to 192.168.0.242

Any ideas?

Marmi86 commented 6 years ago

I follow your instruction: provide output of the command curl 127.0.0.1/api/nouser/config:

curl 127.0.0.1/api/nouser/config {"factorynew": false, "datastoreversion": 59, "mac": "b8:27:eb:54:ef:24", "name": "Philips hue", "s wversion": "1802201122", "apiversion": "1.24.0", "modelid": "BSB002", "bridgeid": "B827EBFFFE54EF24

provide output of command ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether b8:27:eb:54:ef:24 brd ff:ff:ff:ff:ff:ff inet 192.168.8.107/24 brd 192.168.8.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fd38:378b:bed:6900:d42b:c651:f748:6fe1/64 scope global mngtmpaddr noprefixroute dynamic valid_lft 7139sec preferred_lft 3539sec inet6 fe80::c76f:98d5:1320:e665/64 scope link valid_lft forever preferred_lft forever

HUE APP:

pi@raspberrypi:/opt/hue-emulator $ sudo ./HueEmulator3.py Config loaded starting ssdp... start ssdp broadcast sync with lights Starting httpd... Starting ssl httpd... 192.168.8.106 - - [14/Jul/2018 18:44:53] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 -

192.168.8.106 - - [14/Jul/2018 18:45:04] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:05] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:05] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:06] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:06] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 18:45:07] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:07] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:08] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:08] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 18:45:09] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:09] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:10] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:10] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 18:45:11] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:11] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 18:45:12] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:12] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:16] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:23] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:23] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:24] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:24] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 18:45:25] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:25] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 18:45:26] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:26] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:27] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:27] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 18:45:28] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:28] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 18:45:29] "GET /api/470a0c52e89555f73b11904c84af6192/groups HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:29] "GET /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 -

192.168.8.106 - - [14/Jul/2018 18:45:37] "GET /Hue/linkbutton HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:44] "GET /Hue/linkbutton HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:45:52] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:45:58] "GET /api/nouser/config HTTP/1.1" 200 - Sending M-Search response to 192.168.8.100 192.168.8.106 - - [14/Jul/2018 18:46:15] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 18:46:17] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -

Hello Hue:

Sending M-Search response to 192.168.8.100 192.168.8.100 - - [14/Jul/2018 18:47:52] "GET /api/nouser/config HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:47:52] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:47:52] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 18:47:53] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 18:47:54] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 18:47:55] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 18:47:56] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.106 - - [14/Jul/2018 18:47:57] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:47:57] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' [ { "success": { "username": "470a0c52e89555f73b11904c84af6192" } } ] 192.168.8.100 - - [14/Jul/2018 18:47:57] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 - ^Cconfig saved Traceback (most recent call last): File "./HueEmulator3.py", line 1597, in sleep(10) KeyboardInterrupt 192.168.8.100 - - [14/Jul/2018 18:48:27] "POST /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - in post method /api/470a0c52e89555f73b11904c84af6192/lights b'{}' Yeelight search end ['192.168.8.1', '192.168.8.136', '192.168.8.107', ''] 192.168.8.100 - - [14/Jul/2018 18:48:35] "GET /api/470a0c52e89555f73b11904c84af6192/lights/new HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:48:35] "GET /api/470a0c52e89555f73b11904c84af6192/sensors/new HTTP/1.1" 200 - ip 192.168.8.1 is unknow device registration fail, is the link button pressed? sync with lights Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 192.168.8.100 - - [14/Jul/2018 18:49:12] "POST /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - in post method /api/470a0c52e89555f73b11904c84af6192/lights b'{}' Sending M-Search response to 192.168.8.106 Yeelight search end 192.168.8.100 - - [14/Jul/2018 18:49:19] "GET /api/470a0c52e89555f73b11904c84af6192/lights/new HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:49:19] "GET /api/470a0c52e89555f73b11904c84af6192/sensors/new HTTP/1.1" 200 - ['192.168.8.1', '192.168.8.115', '192.168.8.136', '192.168.8.107', ''] ip 192.168.8.1 is unknow device {'hue': 'strip', 'lights': 1, 'mac': '66:4b:1b:7f:cf:5c', 'modelid': 'LST002', 'name': 'WS2812 Hue Strip_PC'} 192.168.8.115 is a hue strip Add new light: WS2812 Hue Strip_PC registration fail, is the link button pressed? Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 18:49:31] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:49:32] "POST /api/470a0c52e89555f73b11904c84af6192/lights HTTP/1.1" 200 - in post method /api/470a0c52e89555f73b11904c84af6192/lights b'{}' Yeelight search end ['192.168.8.1', '192.168.8.115', '192.168.8.136', '192.168.8.107', ''] ip 192.168.8.1 is unknow device {'hue': 'strip', 'lights': 1, 'mac': '66:4b:1b:7f:cf:5c', 'modelid': 'LST002', 'name': 'WS2812 Hue Strip_PC'} 192.168.8.115 is a hue strip registration fail, is the link button pressed? 192.168.8.100 - - [14/Jul/2018 18:49:39] "GET /api/470a0c52e89555f73b11904c84af6192/lights/new HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:49:39] "GET /api/470a0c52e89555f73b11904c84af6192/sensors/new HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 18:49:39] "GET /api/470a0c52e89555f73b11904c84af6192/lights/1 HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 ^X^X192.168.8.100 - - [14/Jul/2018 18:50:30] "PUT /api/470a0c52e89555f73b11904c84af6192/groups/0/action HTTP/1.1" 200 - in PUT method /api/470a0c52e89555f73b11904c84af6192/groups/0/action b'{"on":true}' LightRequest: http://192.168.8.115/set?light=1&on=True [ { "success": { "/groups/0/action/on": true } } ] 192.168.8.100 - - [14/Jul/2018 18:50:32] "PUT /api/470a0c52e89555f73b11904c84af6192/groups/0/action HTTP/1.1" 200 - in PUT method /api/470a0c52e89555f73b11904c84af6192/groups/0/action b'{"on":false}' LightRequest: http://192.168.8.115/set?light=1&on=False [ { "success": { "/groups/0/action/on": false } } ]

mariusmotea commented 6 years ago

To be on the same line, pair steps are:

  1. ssdp broadcast for ip detection => pass
  2. get request to /api/nouser/config => fail
  3. multiple post reguest to create the new user until link button is pressed =>n/a

i check on my original hue brige and i add two missing parameters and updated swversion. Please check again by deleting the /opt/hue-emulator directory

Marmi86 commented 6 years ago

new update: pi@raspberrypi:/opt/hue-emulator $ sudo ./HueEmulator3.py Config loaded starting ssdp... start ssdp broadcast sync with lights Starting httpd... Starting ssl httpd... Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 20:03:07] "GET /description.xml HTTP/1.1" 200 - 192.168.8.106 - - [14/Jul/2018 20:03:07] "GET /description.xml HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 192.168.8.100 - - [14/Jul/2018 20:03:15] "GET /api/nouser/config HTTP/1.1" 200 - Sending M-Search response to 192.168.8.100 Sending M-Search response to 192.168.8.104 192.168.8.104 - - [14/Jul/2018 20:03:24] "GET /description.xml HTTP/1.1" 200 - 192.168.8.104 - - [14/Jul/2018 20:03:24] "GET /description.xml HTTP/1.1" 200 - Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 Sending M-Search response to 192.168.8.104 192.168.8.106 - - [14/Jul/2018 20:03:33] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -

mariusmotea commented 6 years ago

Any difference if you click Help and type the ip of the bridge manually?

Marmi86 commented 6 years ago

Search bridge manually the same pi@raspberrypi:/opt/hue-emulator $ sudo ./HueEmulator3.py Config loaded starting ssdp... start ssdp broadcast sync with lights Starting httpd... Starting ssl httpd... Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 192.168.8.100 - - [14/Jul/2018 20:07:01] "GET /api/nouser/config HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106 192.168.8.106 - - [14/Jul/2018 20:07:08] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - Sending M-Search response to 192.168.8.106 Sending M-Search response to 192.168.8.106

Hello Hue App(works fine): 192.168.8.100 - - [14/Jul/2018 20:08:14] "GET /api/470a0c52e89555f73b11904c84af6192/config HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 20:08:15] "GET /api/470a0c52e89555f73b11904c84af6192/config HTTP/1.1" 200 - Sending M-Search response to 192.168.8.100 192.168.8.100 - - [14/Jul/2018 20:08:26] "GET /api/nouser/config HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 20:08:26] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 20:08:26] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 20:08:27] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.100 - - [14/Jul/2018 20:08:28] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' 192.168.8.106 - - [14/Jul/2018 20:08:29] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 - 192.168.8.100 - - [14/Jul/2018 20:08:29] "POST /api/ HTTP/1.1" 200 - in post method /api/ b'{"devicetype":"hueHello#deviceName_xyz"}' [ { "success": { "username": "470a0c52e89555f73b11904c84af6192" } } ] 192.168.8.100 - - [14/Jul/2018 20:08:30] "GET /api/470a0c52e89555f73b11904c84af6192 HTTP/1.1" 200 - sync with lights

mariusmotea commented 6 years ago

I start a fresh virtual machine with ubuntu, detection, everything was fine, so i believe there must be something related with youre hardware or phone. Can you change the mac address on the raspberry to start with 00:17:88, ex 00:17:88:29:86:3a?

mariusmotea commented 6 years ago

Most clear test to see if i insert a new bug is to download the Hue Emulator from one month ago. Execute following commands:

cd /opt/hue-emulator
sudo systemctl stop hue-emulator
sudo rm -rf HueEmulator3.py config.json
sudo wget https://raw.githubusercontent.com/mariusmotea/diyHue/4ac3155f3fe8097a834780a35b92fe5f2adc1905/BridgeEmulator/HueEmulator3.py
sudo chmod +x HueEmulator3.py
sudo wget https://raw.githubusercontent.com/mariusmotea/diyHue/4ac3155f3fe8097a834780a35b92fe5f2adc1905/BridgeEmulator/config.json
sudo ./HueEmulator3.py

to use curent light firmware perform search and replace in HueEmulator3.py for LST001 into LST002

Marmi86 commented 6 years ago

By the way i change the mac adresse same problem curl 127.0.0.1/api/nouser/config {"factorynew":false,"replacesbridgeid":null,"modelid":"BSB002","name":"Philips h ue","swversion":"1806051111","apiversion":"1.24.0","mac":"00:17:88:29:86:3a","st arterkitid":"","bridgeid":"001788FFFE29863A","datastoreversion":70}

I testing the old firmware hue app can't connect 3rd app connect

I change the hardware pi2 to pi Zero (USB ethernet adapter) with old Firmware Same issus but I tested the firmware on the pi zero and works fine last days

new test

Pi Zero and Samsung Tab the same issus :)

Last Update :

I have tested several apps (Hue Essential,Hue Hallo,hue Dynamic..... ) , with all I could connect with the bridge, I just do not understand why it with the original Hue App is not running since toda

mariusmotea commented 6 years ago

In Settings - About i see my hue app version is 3.0.4 (6049). Maybe you received an update?

danieledwardgeorgehitchcock commented 6 years ago

I am also having this same problem. Not sure if this has anything to do with it, but in Chrome I am getting an invalid certificate error. I also have apache (httpd) running other services on my box - could that be interfering?

Marmi86 commented 6 years ago

I have the same version from hue app 3.0.4 Can u connect with other 3rd Apps?

mariusmotea commented 6 years ago

@danieledwardgeorgehitchcock original hue bridge use also self signed certificate, only that it is using the serial number as CN. Can you comment Thread(target=run, args=[True]).start() to not start the https server, this way i believe it will fallback on http. In my case it is still using the http.

jamiedruce commented 6 years ago

I'm getting the same issue unfortunately! Performed a completely fresh install without restoring any settings and i still cannot connect via the Hue App. Oddly i can connect via Hue Sync for Mac no problem

Marmi86 commented 6 years ago

Hello, I also tested it with the hue sync app (windows) I can connect

The only thing that does not work is the connection with the Hue App

mariusmotea commented 6 years ago

I believe that will be good to have more details from you guys, maybe we can isolate the problem just to some devices. Please specify on what device you run the hue emulator (ex: raspberrypi2 with ) because i tried several times to replicate the issue with no luck. I test with raspberrypi3 and one ubuntu virtual machine x64, my android devices are one HTC M8 with Android 6.0 and one HTC U11 with Android 8.0

Marmi86 commented 6 years ago

That's an good idea My Testbuilds(Newest Firmware on Pi and Lights): Raspberry Pi 2 with Raspian Lite and Raspian Desktop --Cant connect with Hue App other Apps works Raspberry Pi Zero (USB Ethernet) with Raspian Lite --Cant connect with Hue App other Apps works

Android Devices: Huawei P10 Pro Android 7 Samsung Galaxy Tab A6 Android 7 Samsung Galaxy Tab 10,1 Android 6

Hue App Android 3.0.4

UPDATE: I downgrade HueApp (Huawei P10) to 3.0.2 and 3.0.3.1 i can connect :) Hue Entertaiment works fine

Workaround: I install 3.0.3.1 connect with Bridge and make a update to 3.0.4 works i can find Lights running good And newest firmware 15.7.18 works fine with this workaround

jamiedruce commented 6 years ago

Good plan.

Im on RaspberryPi 2 with raspbian jessie, all up-to-date in terms of diyhue and OS

Hue App on iOS (app version 3.1.0, seems to be an update from today). iOS is on latest version

danieledwardgeorgehitchcock commented 6 years ago

Just tested and not working for me.

Running Ubuntu Desktop 18.04 LTS

Connecting through official Hue app (3.0.4) on Android 8.0.0

Clean install of diyHUE however, I have an existing Apache ecosystem (ports shouldn't be clashing). Running Python3 with all required modules up-to-date

mariusmotea commented 6 years ago

I factory reset my phone, install Hue app 3.0.4, deploy from scratch hue-emulator and i can successfully pair to emulated bridge. Is very wired that this is happening only to some users. Anybody here that monitor this thread and is able to pair the Hue app 3.0.4 with the bridge emulator, or i'm the only one?

danieledwardgeorgehitchcock commented 6 years ago

Not sure if this may have something to do with it but I am running a mesh wifi (Netgear Orbi) - Could that cause issues? I can see my normal Hue Hub through the app...

jdrucey commented 6 years ago

Im running a standard Wi-Fi set up, and still seeing this issue.

Just tried deleting the app and re-installing, but that made no difference (just to rule out anything there).

What a tricky one! Something must have changed with the Hue App update right?

Heres my output incase it helps, I see the app searching the network, but i dont see anything suggesting the app is trying to connect, is that something you would expect to see in the log? ( I tap connect in the app just before hitting the linkbutton endpoint )


192.168.0.39 - - [16/Jul/2018 11:03:54] "GET /api/nouser/config HTTP/1.1" 200 -
Sending M-Search response to 192.168.0.39
192.168.0.99 - - [16/Jul/2018 11:03:55] "GET /api/470a0c52e89555f73b11904c84af6192/config HTTP/1.1" 200 -
192.168.0.99 - - [16/Jul/2018 11:04:00] "GET /api/470a0c52e89555f73b11904c84af6192/config HTTP/1.1" 200 -
192.168.0.99 - - [16/Jul/2018 11:04:05] "GET /api/470a0c52e89555f73b11904c84af6192/config HTTP/1.1" 200 -
192.168.0.33 - - [16/Jul/2018 11:04:06] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -```
mariusmotea commented 6 years ago

I ask two colleagues to install the Hue application and to test the pair process. One has Iphone, other one Samsung with Android. For both it worked. This is the working application pair output:

Starting ssl httpd...
Sending M-Search response to 192.168.0.12
Sending M-Search response to 192.168.0.12
Sending M-Search response to 192.168.0.12
192.168.0.12 - - [16/Jul/2018 14:12:19] "GET /description.xml HTTP/1.1" 200 -
192.168.0.12 - - [16/Jul/2018 14:12:19] "GET /description.xml HTTP/1.1" 200 -
Sending M-Search response to 192.168.0.12
192.168.0.21 - - [16/Jul/2018 14:12:26] "GET /api/nouser/config HTTP/1.1" 200 -
Sending M-Search response to 192.168.0.12
Sending M-Search response to 192.168.0.12
Sending M-Search response to 192.168.0.12
Sending M-Search response to 192.168.0.12
192.168.0.21 - - [16/Jul/2018 14:12:35] "GET /api/nouser/config HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:35] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.0.21 - - [16/Jul/2018 14:12:36] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.0.12
192.168.0.21 - - [16/Jul/2018 14:12:40] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.0.21 - - [16/Jul/2018 14:12:41] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.0.12
192.168.0.21 - - [16/Jul/2018 14:12:42] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
Sending M-Search response to 192.168.0.12
192.168.0.21 - - [16/Jul/2018 14:12:43] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
192.168.0.167 - - [16/Jul/2018 14:12:43] "GET /hue/linkbutton?username=&password=&action=Activate HTTP/1.1" 200 -
Sending M-Search response to 192.168.0.22
192.168.0.21 - - [16/Jul/2018 14:12:44] "POST /api/ HTTP/1.1" 200 -
in post method
/api/
b'{"devicetype":"Hue 3#HTC U11","generateclientkey":true}'
[
    {
        "success": {
            "clientkey": "321c0c2ebfa7361e55491095b2f5f9db",
            "username": "a7161538be80d40b3de98dece6e91f90"
        }
    }
]
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90 HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90/config HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 -
192.168.0.21 - - [16/Jul/2018 14:12:44] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 -
mariusmotea commented 6 years ago

@jamiedruce can you provide me the curl output for /api/nouser/config ?

curl 127.0.0.1/api/nouser/config -v

I start to believe it can be related to language (characters) or timezone?

jdrucey commented 6 years ago

OK that output is handy to see ^ I'll drop in some debug lines to try and see where things are going wrong

jdrucey commented 6 years ago

@mariusmotea no problem, here you go:

* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET /api/nouser/config HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 127.0.0.1
> Accept: */*
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: BaseHTTP/0.6 Python/3.4.2
< Date: Mon, 16 Jul 2018 11:27:32 GMT
< Content-type: application/json
< 
* Closing connection 0
{"modelid": "BSB002", "apiversion": "1.24.0", "swversion": "1802201122", "mac": "b8:27:eb:cb:25:9f", "name": "Philips hue", "bridgeid": "B827EBFFFECB259F", "factorynew": false, "datastoreversion": 59}
jdrucey commented 6 years ago

(sorry, just realised i am jumping between github accounts here!)

mariusmotea commented 6 years ago

Output looks good, only minor difference is "datastoreversion" that in last commit is 70 because on my hue bridge i saw this value changed. Anyway i don't believe this is the issue because @Marmi86 already tested this.

jdrucey commented 6 years ago

Hmm, ok. I am not seeing and POST requests listed by diyhue. I will try inspecting the traffic coming out of my phone to see what requests Hue is making