-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIYHUE won't pair after first restart #1028
Comments
Hi, you say your environment is docker but in the steps to reproduce you say install script? |
I don’t know how it happened, I must fail to choose. my install is host, and I did search for other issues. I will eneble log and post it here. |
I follwed manual, i used debug enable command and tried to connect. But in log i see "debug mode off" - why? log below navoye@diyhue:/opt/hue-emulator $ sudo ./HueEmulator3.py --debug
|
can you upload the log you can download from the webui? |
log from webui wit debug on bellow. Im using host install becouse im not familliar with docker. I couldnt find detailed info for dummy like me how to use docker enviroment(i dont know even if im named it right... I read on diyhue that docker is recomended but i coulnt follow instruction. I use rpi only for diyhue so host install that works from begining and i dont have to had expierience was easier to me... |
I see some more problems in the config file, |
I see, good local time there - "Mon Jul 22 2024 01:28:02 GMT+0200 (czas środkowoeuropejski letni)" I don't insist on host install and I'm open to another method if I could handle it :) I will mention that I used mosquito+zigbee2mqtt and WLED as LED drivers. I don't know if it makes any difference to docker. I managed to connect everything in host install except for the pairing problem. Of course pairing testing was done without additional stuff on clean system install( tried both 32 and 64bit). |
you can try to force save the config and try again. |
i did what you said, then tried again conect on both app(without succes), than download debug wich i past below |
can you share the output if you go to http://192.168.1.180/api/73ba1e2647b411efabdce45f015c31db/config also share the result of this check where you need to replace |
have to upload again - didnt notice that i cert there is also key and whitelist.... |
This is realy strange, everything looks good. |
Thank you, I'm glad that everything looks normal because I was trying to figure it out for a long time before I started looking for help here... I tried DiyHue with Deconz earlier(the same problem) and I was told somewhere that DiyHue with Deconz can cause problems and maybe that's the culprit. That's why I changed to mosquito+zigbee2mqtt. It took a few clean installs and writing down all the steps to discover the pattern, but I still couldn't find the "why". Looking forward for instructions :) |
Hi sorry for the late response, i decided to make the explanations for docker compose in readthedocs.
Using If you have problems with docker feel free to ask. |
I have tested docker, install script and HA and all of them work like it should. |
I'm sorry I didn't reply, I went on an urgent business trip without access to communication. Thank you for the entire description, I will test it tonight and let you know. |
Sorry, I never thought I'd say this, I've done a lot of DIY projects but this onei cant do - too little knowledge to follow these instructions and make it work...
cp: cannot stat 'githubUIInstall.sh': No such file or directory
The part of the description concerning the docker-compose.yml file is incomprehensible to me - I tried to follow the instructions but here I had no success, I did not realize it. I see 2 options - either I will give you remote ssh access to my raspberry with a clean host installation in state that will not connect to applications (or with just a clean system with nothing installed), or I will connect all my devices during the first start and then I will not add new ones till manual will be updated to state that i can follow. And till then to add new app I will reinstall and set everything up again.. Unfortunately I do not see any other way out. |
Sorry |
That was it - I don't know where from but the time zone was entered incorrectly in the DiyHue config. After correcting it manually, the problems disappeared. Thank you. The last question from another topic - is there an option to use WLED as a Hue gradient strip in DiyHue? I have WLED with WS2814, it appears as a plus strip. Or does DIYHUE support WS2814 so I can convert the WLED driver to DIYHUE? |
Good that it finally works. For the lights we use neopixalbus by makuna, in there docs it says that ws2814 is supported. |
I definitely need help creating the bin file. Looking at Makuna/NeoPixelBus, they recently added WS2814, so it probably needs to be implemented, etc. Hardware is not a problem for me, software - unfortunately. Since I have already purchased it, I will use ready-made controllers that I bought for WLED when I thought it would work. These are Atom WLED music etc. but it does not matter. I will use the fact that it is a ready-made board in a housing with a voltage converter, fuses, etc., ready for 5-24V power supply. I will modify it by removing the relay on the power line for led stip so that it is permanent because from what I see, DiyHue does not support this function. The rest of the things that are physically connected to other than the used GPIO will not interfere so it will be like clean board. |
I have take a look at it and if you want to use WS2814 you have to change 2 things. I have made a .bin file with these changes please try this and give feedback if this works. |
I tried this file, it took a bit of effort because I didn't know if it was a "ready" file to be uploaded from address 0x0 or otherwise, so I tried many times in a few ways. Each time, despite the correct upload, it failed to run - I saw different errors in the ESP console depending on how I uploaded it. Only after some time I noticed, looking at the file name and links, that you had prepared a file for ESP32-C3 and I have, as I wrote - ESP32-WROOM-32E, which is the "basic" ESP32. This is probably why I couldn't run this file. Could you please prepare the files for my model of ESP32?. Generic and gradient versions if possible. I tried to use the Arduino IDE with the help of your instructions, but it is beyond me. The instructions do not apply to ESP32 files, only to ESP32-C3. Also, if possible, could you attach the ino files to the zip file? |
The name of the sketch is not important. |
this one is with |
I'll try tomorrow - I've read a bit about arduino and this chip - the ESP32 Dev Module board should work fine. If not, people suggest choosing the FireBeetle 2 ESP-32-E but I don't think it will be necessary. I'll let you know, I can't do the test right now because I didn't take the board. |
I tried this file - unfortunately no. I installed an Arduino IDE with libraries etc. to be able to compile and try different boards versions - compilation and uploading ok, but none of them want to run. The problem is for sure my unusual ESP - so as not to bother further, I will order a new, popular type. Do you recommend any in particular? |
I bought a new esp-wroom-32e, I compiled the changed according to the ino instructions and again the esp only reset. I read and looked at the ino and it turned out that the "wroom" version has some GPIOs reserved. I changed power_mosfet_pin to 18, ledgpio to 19 and data_pin to 21 and the program started. the colors did not correspond but that's a minor issue, I had to change Neo Features to NeoWrgbFeature. as generic it works ok. however I would like to use it as a gradient. I chose the ino for sk6812 because it is also rgbw, I changed Neo Method, Neo Features and gpio as before, ino compiles ok but after uploading the esp it does not start but resets all the time. can you help with this? I do not see the reason. |
Issue does not already exist?
No, I did not search
Select Environment
Docker
Home Assistant related?
No
Description
After install i can easy pair with Hue Essentials or IConnectHue. But after first restart no application wants to connect. It's not about deleting/cleaning app data - that doesn't solve the problem. Only uninstallation with script and reinstallation - then I can pair the application again. The bridge is detected, there is a request for a link button, after turning on the link button nothing happens - no message. No error in the log. Certificates checked, I looked everywhere...
Errorlog:
2024-07-21 18:38:41,281 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:41,280 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:41] "GET /static/css/762.7323ce60.chunk.css HTTP/1.1" 200 -
2024-07-21 18:38:41,285 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:41] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:42,220 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:42,223 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:42] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:42,326 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:42] "GET /api/newUser/ HTTP/1.1" 200 -
2024-07-21 18:38:42,333 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:42] "GET /api/adc9006646f911ef91ade45f015c31db/config HTTP/1.1" 200 -
2024-07-21 18:38:42,375 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:42] "PUT /api/adc9006646f911ef91ade45f015c31db/config HTTP/1.1" 200 -
2024-07-21 18:38:43,216 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:43,219 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:43] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:44,218 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:44,222 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:44] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:45,264 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:45,267 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:45] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:45,499 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:45] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:38:45,506 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:45] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:38:46,265 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:46,269 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:46] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:47,261 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:47,264 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:47] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:48,246 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:48,250 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:48] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:49,264 - flaskUI.restful - INFO - {'generateclientkey': True, 'devicetype': 'iConnectHue#iPhone'}
2024-07-21 18:38:49,268 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:49] "POST /api HTTP/1.1" 200 -
2024-07-21 18:38:49,465 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:49] "GET /api/newUser/ HTTP/1.1" 200 -
2024-07-21 18:38:50,496 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:50] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:38:50,506 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:50] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:38:51,565 - services.stateFetch - INFO - start lights sync
2024-07-21 18:38:52,842 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /static/js/377.38b15439.chunk.js HTTP/1.1" 200 -
2024-07-21 18:38:52,843 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /static/js/780.3ebb17d4.chunk.js HTTP/1.1" 200 -
2024-07-21 18:38:52,844 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /static/css/780.d81fd311.chunk.css HTTP/1.1" 200 -
2024-07-21 18:38:52,924 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /api/adc9006646f911ef91ade45f015c31db/info/timezones HTTP/1.1" 200 -
2024-07-21 18:38:52,930 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /api/adc9006646f911ef91ade45f015c31db/config HTTP/1.1" 200 -
2024-07-21 18:38:52,948 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:52] "GET /info HTTP/1.1" 200 -
2024-07-21 18:38:56,108 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:56] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:38:56,111 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:38:56] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:38:56,552 - werkzeug - INFO - 192.168.1.66 - - [21/Jul/2024 18:38:56] "GET /api/newUser/ HTTP/1.1" 200 -
2024-07-21 18:39:01,115 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:01] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:02,140 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:02] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:02,566 - services.stateFetch - INFO - start lights sync
2024-07-21 18:39:06,217 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:06] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:07,225 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:07] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:11,221 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:11] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:12,230 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:12] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:13,567 - services.stateFetch - INFO - start lights sync
2024-07-21 18:39:16,224 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:16] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:17,249 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:17] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:21,263 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:21] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:22,267 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:22] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:24,568 - services.stateFetch - INFO - start lights sync
2024-07-21 18:39:26,314 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:26] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:27,303 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:27] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:31,289 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:31] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
2024-07-21 18:39:32,304 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:32] "GET /api/adc9006646f911ef91ade45f015c31db/groups/0 HTTP/1.1" 200 -
2024-07-21 18:39:36,316 - werkzeug - INFO - 192.168.1.70 - - [21/Jul/2024 18:39:36] "GET /api/adc9006646f911ef91ade45f015c31db/config/swupdate2 HTTP/1.1" 200 -
Steps to reproduce
rpi---->host install from script---->reboot rpi---->try to pair app
Please enter your operating system details here
Hue-Emulator Version: 2024-07-21 01:37:00.743935096 +0100
WebUI Version: 2024-07-13 01:17:53.000000000 +0100
Architecture: aarch64
OS: Linux
Linux version: #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29)
Linux release: 6.6.31+rpt-rpi-v8
Hardware: %Hardware%
Upload debug tar
config_debug(7).zip
What DiyHue version(branch) are you using?
master (latest)
The text was updated successfully, but these errors were encountered: