Unable to link hue bridge

Hi all,

I’m running Diyhue on HA with a rpi3 and a sonoff 3.0 E dongle.
I’ve installed diyhue and edited the config with the MAC address of my pi, set debug to true, and true for no-serve-https (not sure if this is corrrect).
My HA address is my pi address with 8123 port. My diyhue address is the pi address.

When I open the hue app or essentials app, it discovers the bridge. When I click the link button, it comes up with an error in the hue app that blinks so fast I can’t read it.

This is the debug log:

2024-07-25 21:53:24,183 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:24] “GET /api/83dd461e499611ef8207b827ebe87bc9/config/swupdate2 HTTP/1.1” 200 -
2024-07-25 21:53:24,206 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:24] “GET /api/83dd461e499611ef8207b827ebe87bc9/groups/0 HTTP/1.1” 200 -
2024-07-25 21:53:25,408 - services.stateFetch - INFO - start lights sync
2024-07-25 21:53:27,410 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#iPad’, ‘generateclientkey’: True}
2024-07-25 21:53:27,419 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:27] “POST /api/ HTTP/1.1” 200 -
2024-07-25 21:53:28,458 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#iPad’, ‘generateclientkey’: True}
2024-07-25 21:53:28,467 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:28] “POST /api/ HTTP/1.1” 200 -
2024-07-25 21:53:29,123 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:29] “GET /api/83dd461e499611ef8207b827ebe87bc9/config/swupdate2 HTTP/1.1” 200 -
2024-07-25 21:53:29,128 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:29] “GET /api/83dd461e499611ef8207b827ebe87bc9/groups/0 HTTP/1.1” 200 -
2024-07-25 21:53:29,507 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#iPad’, ‘generateclientkey’: True}
2024-07-25 21:53:29,516 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:29] “POST /api/ HTTP/1.1” 200 -
2024-07-25 21:53:30,560 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#iPad’, ‘generateclientkey’: True}
2024-07-25 21:53:30,568 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:30] “POST /api/ HTTP/1.1” 200 -
2024-07-25 21:53:30,951 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:30] “GET /api/83dd461e499611ef8207b827ebe87bc9/config HTTP/1.1” 200 -
2024-07-25 21:53:30,992 - flaskUI.restful - DEBUG - [{‘success’: {‘/config/linkbutton’: {‘lastlinkbuttonpushed’: 1721908410}}}]
2024-07-25 21:53:31,142 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/config.yaml
2024-07-25 21:53:31,150 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:31] “PUT /api/83dd461e499611ef8207b827ebe87bc9/config HTTP/1.1” 200 -
2024-07-25 21:53:31,611 - flaskUI.restful - INFO - {‘devicetype’: ‘Hue Essentials#iPad’, ‘generateclientkey’: True}
2024-07-25 21:53:31,614 - flaskUI.restful - DEBUG - [{‘success’: {‘username’: ‘hueessc24a7c11efb524b827ebe87bc9’, ‘clientkey’: ‘4ED4C5F2FA644CAA8BEC40F49D78FFC9’}}]
2024-07-25 21:53:31,755 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/config.yaml
2024-07-25 21:53:31,760 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/lights.yaml
2024-07-25 21:53:31,765 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/groups.yaml
2024-07-25 21:53:31,770 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/scenes.yaml
2024-07-25 21:53:31,775 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/rules.yaml
2024-07-25 21:53:31,780 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/resourcelinks.yaml
2024-07-25 21:53:31,784 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/schedules.yaml
2024-07-25 21:53:31,811 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/sensors.yaml
2024-07-25 21:53:31,816 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/behavior_instance.yaml
2024-07-25 21:53:31,824 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:31] “POST /api/ HTTP/1.1” 200 -
2024-07-25 21:53:34,123 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:34] “GET /api/83dd461e499611ef8207b827ebe87bc9/config/swupdate2 HTTP/1.1” 200 -
2024-07-25 21:53:34,129 - werkzeug - INFO - 192.168.1.115 - - [25/Jul/2024 21:53:34] “GET /api/83dd461e499611ef8207b827ebe87bc9/groups/0 HTTP/1.1” 200 -
2024-07-25 21:53:36,414 - services.stateFetch - INFO - start lights sync

Hi, please check your timezone setting in the webui, also after your post there have been updates so update first.
“no-serve-https” is if port 443 is not available for diyhue, it is better to leave it disabled(false).
If the error still blink on the screen maybe you can de a screen recording.

Hi,

Thank you for your reply. I got the bridge up and running! I now have a secondary issue - I cannot find the .json file to edit the emulator and add my lights.
I have an LED strip connected to a zigbee controller. MQTT/Z2M i successfully setup in home assistant. My light is currently connected and running.
How to i add my light? The light is not autodiscovered from the web UI.
I tried to login via SSH and the diyhue directory contains config.yaml and config.tar, but not config.json.