mariusmotea / diyHue

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

Yeelight color e27 bulb not discovered #423

Closed purplehazezzz closed 6 years ago

purplehazezzz commented 6 years ago

Hi, I installed diyHue on a raspberry py model B. (Dedicated for this) DIYHUE is linked in the hue app. I have a yeelight bulb (latest firmware), with lan control enabled. (on the same network/iprange). When I select the diyHue bridge in the Hue app, and search for lights. It wont find the yeelight. I tried it with the yeelight on and off, rebooted everithing, still nothing is discovered.

I did manage to link a light from the original hue bridge en can control it through the browser's diyhue site. So it looks like diyhue is working properly

Any idea's/help would be nice :) (got some ledstrips from yeelight on the way....)

Ow yeah almost forgot, when i linked the diyhue to the hue bridge. It notified me that my bridge needed a update... So i clicked update bridge. Maybe i shouldn't have done that?

mariusmotea commented 6 years ago

Wired. Start debug mode, maybe we will se something in the output.

purplehazezzz commented 6 years ago

Hi, for the quick response, here's the output from the debug when searching for new light: (ipadress of the yeelight is 192.168.178.171, the adress of the huehub is 192.168.178.99, the ip DIYHUE is 192.168.178.45, my phone192.168.178.248, my domoticz server is 192.168.178.44 The ipadress 192.168.178.193 is my sony tv and the 192.168.178.199 is my nas

2018-10-27 12:27:05,406 - requests.packages.urllib3.connectionipool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/2 HTTP/1.1" 200 None 2018-10-27 12:27:05,485 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:05,514 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/1 HTTP/1.1" 200 None 2018-10-27 12:27:05,585 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:05,613 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/20 HTTP/1.1" 200 None 2018-10-27 12:27:05,684 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:05,713 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/12 HTTP/1.1" 200 None 2018-10-27 12:27:05,784 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:05,812 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/4 HTTP/1.1" 200 None 2018-10-27 12:27:05,883 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:05,978 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/3 HTTP/1.1" 200 None 192.168.178.248 - - [27/Oct/2018 12:27:10] "POST /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 2018-10-27 12:27:10,287 - root - DEBUG - in post method 2018-10-27 12:27:10,291 - root - DEBUG - /api/a7161538be80d40b3de98dece6e91f90/lights 2018-10-27 12:27:10,296 - root - DEBUG - b'{}' 2018-10-27 12:27:13,324 - root - DEBUG - Yeelight search end 2018-10-27 12:27:16,491 - root - DEBUG - [ "192.168.178.1", "192.168.178.99", "192.168.178.193", "192.168.178.199", "192.168.178.45", "" ] 2018-10-27 12:27:16,550 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.1 2018-10-27 12:27:16,718 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.1:80 "GET /detect HTTP/1.1" 302 None 2018-10-27 12:27:16,798 - requests.packages.urllib3.connectionpool - DEBUG - Resetting dropped connection: 192.168.178.1 2018-10-27 12:27:16,979 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.1:80 "GET /index.html HTTP/1.1" 302 None 2018-10-27 12:27:17,057 - requests.packages.urllib3.connectionpool - DEBUG - Resetting dropped connection: 192.168.178.1 2018-10-27 12:27:17,331 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.1:80 "GET /common_page/login.html HTTP/1.1" 200 40259 2018-10-27 12:27:17,434 - root - DEBUG - ip 192.168.178.1 is unknow device, Expecting value: line 1 column 1 (char 0) 2018-10-27 12:27:17,537 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:17,589 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /detect HTTP/1.1" 404 162 2018-10-27 12:27:17,717 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.193 2018-10-27 12:27:17,771 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.193:80 "GET /detect HTTP/1.1" 404 162 192.168.178.248 - - [27/Oct/2018 12:27:17] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 2018-10-27 12:27:17,865 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.199 2018-10-27 12:27:17,887 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.199:80 "GET /detect HTTP/1.1" 404 None 2018-10-27 12:27:17,958 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 127.0.0.1 2018-10-27 12:27:17,975 - root - DEBUG - registration fail, is the link button pressed? 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/lights/new HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/sensors/new HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/config HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:18] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 2018-10-27 12:27:19,017 - root - DEBUG - sync with lights 2018-10-27 12:27:19,067 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,096 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/8 HTTP/1.1" 200 None 2018-10-27 12:27:19,167 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,196 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/19 HTTP/1.1" 200 None 2018-10-27 12:27:19,266 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,295 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/15 HTTP/1.1" 200 None 2018-10-27 12:27:19,365 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,394 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/14 HTTP/1.1" 200 None 2018-10-27 12:27:19,465 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,494 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/13 HTTP/1.1" 200 None 2018-10-27 12:27:19,566 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,596 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/22 HTTP/1.1" 200 None 2018-10-27 12:27:19,665 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,695 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/2 HTTP/1.1" 200 None 2018-10-27 12:27:19,766 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,795 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/1 HTTP/1.1" 200 None 2018-10-27 12:27:19,865 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,894 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/20 HTTP/1.1" 200 None 2018-10-27 12:27:19,965 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:19,994 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/12 HTTP/1.1" 200 None 2018-10-27 12:27:20,064 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:20,092 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/4 HTTP/1.1" 200 None 2018-10-27 12:27:20,162 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:20,191 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/3 HTTP/1.1" 200 None 192.168.178.248 - - [27/Oct/2018 12:27:20] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:20] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:22] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:23] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:25] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:25] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:27] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:27] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:28] "GET /api/a7161538be80d40b3de98dece6e91f90/config HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:29] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:29] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:31] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:31] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:33] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:33] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:35] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:35] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:37] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:37] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:39] "GET /api/a7161538be80d40b3de98dece6e91f90/config HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:40] "GET /api/a7161538be80d40b3de98dece6e91f90/lights HTTP/1.1" 200 - 192.168.178.248 - - [27/Oct/2018 12:27:40] "GET /api/a7161538be80d40b3de98dece6e91f90/groups HTTP/1.1" 200 - 2018-10-27 12:27:40,245 - root - DEBUG - sync with lights 2018-10-27 12:27:40,294 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,324 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/8 HTTP/1.1" 200 None 2018-10-27 12:27:40,394 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,423 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/19 HTTP/1.1" 200 None 2018-10-27 12:27:40,493 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,522 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/15 HTTP/1.1" 200 None 2018-10-27 12:27:40,594 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,624 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/14 HTTP/1.1" 200 None 2018-10-27 12:27:40,694 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,723 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/13 HTTP/1.1" 200 None 2018-10-27 12:27:40,794 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,823 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/22 HTTP/1.1" 200 None 2018-10-27 12:27:40,893 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:40,922 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/2 HTTP/1.1" 200 None 2018-10-27 12:27:40,994 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:41,026 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/1 HTTP/1.1" 200 None 2018-10-27 12:27:41,097 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:41,125 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/20 HTTP/1.1" 200 None 2018-10-27 12:27:41,195 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:41,224 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/12 HTTP/1.1" 200 None 2018-10-27 12:27:41,295 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99 2018-10-27 12:27:41,324 - requests.packages.urllib3.connectionpool - DEBUG - http://192.168.178.99:80 "GET /api/e4cLwdYQdNJj7YqpNEtElHnS4p6mVIECUeslDlYe/lights/4 HTTP/1.1" 200 None 2018-10-27 12:27:41,393 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 192.168.178.99

purplehazezzz commented 6 years ago

So it finds my tv, domiticz server, nas and router. But not the yeelight, just double checked lan thingy is enabled. (remote lan acces)

purplehazezzz commented 6 years ago

I just started search one more time, and now it finds it!

I have no clue what made it find it. But it works like a charm! THANKS!

mariusmotea commented 6 years ago

Perfect