Skip to content
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

LinkButton does not work #947

Closed
vladimir-aubrecht opened this issue Nov 4, 2023 · 21 comments
Closed

LinkButton does not work #947

vladimir-aubrecht opened this issue Nov 4, 2023 · 21 comments

Comments

@vladimir-aubrecht
Copy link

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Docker

Home Assistant related?

No

Description

Hi,

I tried to search for the issue, but did not find anything up to date with same symptoms.

Problem
After installing DiyHue through Docker I can open Philips Hue app on iOS and I get screen: "Hue Bridge is found". After that I try to press Link Button through web interface to proceed, but nothing happens in that Philips Hue app.

I am sure my IP & MAC are filled properly, everything is running in Host network, running latest version. Anybody any clue what could be wrong?

Thanks in advance for any help! 😊

Docker-compose file

version: '3'
services:
  diyHue:
    image: diyhue/core:latest
    container_name: diyHue
    restart: unless-stopped
    privileged: true
    environment:
      - DEBUG=true
      - MAC=dc:a6:32:e0:71:79 # This is correct MAC for IP below (192.168.2.6)
      - IP=192.168.2.6 # This is IP on which bridge is found by Philips Hue app
      - TZ=Europe/Berlin
    volumes:
      - ./data/diyHue/hue-emulator/export:/opt/hue-emulator/export
      - ./data/diyHue/hue-emulator/config:/opt/hue-emulator/config
    network_mode: host

Errorlog:

2023-11-04 03:36:45,252 - services.ssdp - DEBUG - Sending M-Search response to 192.168.2.50
2023-11-04 04:37:04,112 - configManager.argumentHandler - INFO - Using Host 192.168.2.6:80
2023-11-04 04:37:04,112 - configManager.argumentHandler - INFO - Host MAC given as dca632e07179
2023-11-04 04:37:04,112 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2023-11-04 04:37:04,112 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2023-11-04 04:37:04,112 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2023-11-04 04:37:04,116 - configManager.argumentHandler - INFO - Using Host 192.168.2.6:80
2023-11-04 04:37:04,116 - configManager.argumentHandler - INFO - Host MAC given as dca632e07179
2023-11-04 04:37:04,116 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2023-11-04 04:37:04,117 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2023-11-04 04:37:04,117 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2023-11-04 04:37:04,117 - configManager.argumentHandler - INFO - Debug logging enabled!
2023-11-04 03:37:04,137 - configManager.configHandler - INFO - Config loaded
2023-11-04 03:37:04,286 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2023-11-04 03:37:04,287 - services.remoteDiscover - INFO - Starting discovery service
2023-11-04 03:37:04,289 - services.stateFetch - INFO - start lights sync
2023-11-04 03:37:04,290 - services.ssdp - INFO - starting ssdp...
2023-11-04 03:37:04,293 - services.ssdp - INFO - start ssdp broadcast
2023-11-04 03:37:04,295 - services.mdns - INFO - <MDNS> listener started
2023-11-04 03:37:04,306 - services.eventStreamer - DEBUG - {'creationtime': '2023-11-04T03:37:04Z', 'data': [{'children': [], 'grouped_services': [{'rid': 'cb6ddad3-f330-47de-bc57-5fbc65bd9cc8', 'rtype': 'grouped_light'}], 'services': [{'rid': 'cb6ddad3-f330-47de-bc57-5fbc65bd9cc8', 'rtype': 'grouped_light'}], 'id': 'e6b34f7e-506d-5c49-a1b3-2559d55e5565', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': 'ca9134a9-4978-4773-99b7-0327128636a9', 'type': 'add'}
 * Serving Flask app 'HueEmulator3' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
2023-11-04 03:37:04,315 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2023-11-04 03:37:04,316 - werkzeug - INFO -  * Running on http://192.168.2.6:80/ (Press CTRL+C to quit)
 * Serving Flask app 'HueEmulator3' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
2023-11-04 03:37:04,323 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2023-11-04 03:37:04,324 - werkzeug - INFO -  * Running on https://192.168.2.6:443/ (Press CTRL+C to quit)
2023-11-04 03:37:23,290 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:23] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:24,298 - services.stateFetch - INFO - start lights sync
2023-11-04 03:37:31,541 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET / HTTP/1.1" 200 -
2023-11-04 03:37:31,559 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /manifest.json HTTP/1.1" 200 -
2023-11-04 03:37:31,618 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /static/js/main.488007ee.js HTTP/1.1" 200 -
2023-11-04 03:37:31,620 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /static/css/main.fb383ca3.css HTTP/1.1" 200 -
2023-11-04 03:37:31,637 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /static/media/background.db8a83c2c9e7ce4d1cc5.jpg HTTP/1.1" 200 -
2023-11-04 03:37:31,692 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /static/media/logo.bd3b4e90d91f778081476ad0d68050fe.svg HTTP/1.1" 200 -
2023-11-04 03:37:31,696 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /static/js/352.863805ec.chunk.js HTTP/1.1" 200 -
2023-11-04 03:37:31,727 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /get-key HTTP/1.1" 200 -
2023-11-04 03:37:31,740 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:31] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:33,171 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069053}}}]
2023-11-04 03:37:33,180 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:37:33,182 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:33] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:37:35,299 - services.stateFetch - INFO - start lights sync
2023-11-04 03:37:36,749 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:36] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:41,030 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /static/js/922.5833cf60.chunk.js HTTP/1.1" 200 -
2023-11-04 03:37:41,031 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /static/css/625.d91a49a8.chunk.css HTTP/1.1" 200 -
2023-11-04 03:37:41,032 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /static/js/625.dd3f4387.chunk.js HTTP/1.1" 200 -
2023-11-04 03:37:41,045 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:37:41,047 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /api/717678cc7abd11ee979d0242ac150003/info/timezones HTTP/1.1" 200 -
2023-11-04 03:37:41,743 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:41] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:42,568 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:42] "GET /api/717678cc7abd11ee979d0242ac150003/info/timezones HTTP/1.1" 200 -
2023-11-04 03:37:42,571 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:42] "GET /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:37:46,749 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:46] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:48,300 - services.stateFetch - INFO - start lights sync
2023-11-04 03:37:51,751 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:51] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:56,753 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:37:56] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:37:58,132 - werkzeug - INFO - 192.168.2.54 - - [04/Nov/2023 03:37:58] "GET /api/config HTTP/1.1" 200 -
2023-11-04 03:38:01,748 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:01] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:02,701 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:02] "GET /api/717678cc7abd11ee979d0242ac150003/info/timezones HTTP/1.1" 200 -
2023-11-04 03:38:02,702 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:02] "GET /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:03,302 - services.stateFetch - INFO - start lights sync
2023-11-04 03:38:06,749 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:06] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:08,527 - services.ssdp - DEBUG - Sending M-Search response to 192.168.2.50
2023-11-04 03:38:09,626 - services.ssdp - DEBUG - Sending M-Search response to 192.168.2.50
2023-11-04 03:38:10,731 - services.ssdp - DEBUG - Sending M-Search response to 192.168.2.50
2023-11-04 03:38:11,753 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:11] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:11,838 - services.ssdp - DEBUG - Sending M-Search response to 192.168.2.50
2023-11-04 03:38:16,751 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:16] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:18,304 - services.stateFetch - INFO - start lights sync
2023-11-04 03:38:21,756 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:21] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:24,988 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069104}}}]
2023-11-04 03:38:25,010 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:25,013 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:25] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:26,757 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:26] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 03:38:29,659 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069109}}}]
2023-11-04 03:38:29,666 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:29,668 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:29] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:29,859 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069109}}}]
2023-11-04 03:38:29,867 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:29,868 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:29] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:30,049 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069110}}}]
2023-11-04 03:38:30,057 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:30,059 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:30] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:30,248 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069110}}}]
2023-11-04 03:38:30,256 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:30,257 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:30] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:30,439 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699069110}}}]
2023-11-04 03:38:30,447 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 03:38:30,449 - werkzeug - INFO - 192.168.2.50 - - [04/Nov/2023 03:38:30] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 03:38:31,305 - services.stateFetch - INFO - start lights sync

Steps to reproduce

  1. Install latest version of DiyHue through docker-compose with correct IP, MAC and debug enabled
  2. In web interface under "Bridge" set latest "Software version" and enable discovery and remote api
  3. Open Philips Hue app and search for bridge
  4. When bridge is found, press button web interface->link button->Link App
  5. Wait till Philips Hue app is paired <- this never happens

Please enter your operating system details here

Linux 5.15.61-v8+ aarch64

What DiyHue version(branch) are you using?

master (latest)

@mariusmotea
Copy link
Member

Hi,

Please note that all requests are coming from your computer (192.168.2.50). The pair requests are POST and not GET so for some reasons the Hue app don't even try to pair. Maybe you replaced the certificate and need to wipe hue app data or reinstall (iPhone) because it detect a certificate change (man in middle attack).

@vladimir-aubrecht
Copy link
Author

Hi, I see! I thought it does not matter from which device I am pressing the link button ... 😊 I tried to press it from the same device as Hue app is running on (192.168.2.54 which is my phone), but unfortunately it did not help ... 😕 You also mentioned that it's POST, not GET - could you please share how the correct request should look like?

I tried:

  • Pressing the button in web UI
  • GET http://192.168.2.6/hue/linkbutton executed from 192.168.2.54 (my phone running hue app) as I saw this link somewhere, but it seems it's not working anymore ... (I just get blank page with error: "Oops, there appears to be no lighting here" and 2 broken images).
  • I tried completely uninstalling and installing Hue app again - no effect.

Thank you very much for your help! 😊

2023-11-04 12:58:31,414 - werkzeug - INFO - 192.168.2.54 - - [04/Nov/2023 12:58:31] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 12:58:31,923 - services.stateFetch - INFO - start lights sync
2023-11-04 12:59:52,295 - werkzeug - INFO - 192.168.2.54 - - [04/Nov/2023 12:59:52] "GET /api/config HTTP/1.1" 200 -
2023-11-04 12:59:54,717 - werkzeug - INFO - 192.168.2.54 - - [04/Nov/2023 12:59:54] "GET /api/717678cc7abd11ee979d0242ac150003/groups/0 HTTP/1.1" 200 -
2023-11-04 12:59:55,851 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1699102795}}}]
2023-11-04 12:59:55,859 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2023-11-04 12:59:55,860 - werkzeug - INFO - 192.168.2.54 - - [04/Nov/2023 12:59:55] "PUT /api/717678cc7abd11ee979d0242ac150003/config HTTP/1.1" 200 -
2023-11-04 12:59:55,953 - services.stateFetch - INFO - start lights sync

@mariusmotea
Copy link
Member

You are using iPhone or Android? Can you test also Hue Essentials to see there are no network issues? In the pair process the apps send a POST request every second and they are rejected every time until the link button is pressed. After the link button is pressed an username hash is returned and the app will start sending new requests using that username.

@vladimir-aubrecht
Copy link
Author

I am using iPhone and I can confirm that Hue Essentials are getting connected with no issues.

If I understood correctly, logs are not showing any POST requests which are expected from the Hue app, so it seems either Hue app is not making requests or they are failing already on connection establishment. I tried to verify server certificate which is served and that one looks good to me assuming app did not start validating whole certificate chain...

Screenshot 2023-11-06 at 0 54 46

@mariusmotea
Copy link
Member

mariusmotea commented Nov 16, 2023

A new commit to generate the certificare with faketime (as the original hue bridge) was made 2-3 months ago. If you use recent version and rename the cert.pem file a new certificate will be generated. After every certificate replacement the Hue app need to be reinstalled on iPhone because the certificate is cached to detect man in the middle attacks.

Update: this is the PR
#932

@joldenburgSOLITA
Copy link

I have the exact same issue, did you ever resolve this @vladimir-aubrecht ? :)

@vladimir-aubrecht
Copy link
Author

Thanks @mariusmotea! It worked 😊

@joldenburgSOLITA Just now 😊 Solution from @mariusmotea worked. It turned out docker image I had was version just before the fix, so I enforced downloading of new docker image (docker-compose rm && docker-compose pull), deleted cert.pem, deleted and re-downloaded hue app and everything started to work 😊

@Maarten-s92
Copy link

Hi,

I'm runnig DIY Hue in home assistant. I reinstalled the app more then 5 times, and remade the config files a lot of times (deleted and restarted firts). But for the life of me I can't get the Hue app running or other apps. Can't see what is going wrong.

I'm a bit lost now. Anybody that can help?

@mariusmotea
Copy link
Member

Can you see the logs of diyhue container? Are there any log lines added when you try to pair the Hue app? diyhue require ports 80 and 443 to be router to itself.

@Maarten-s92
Copy link

Thanks for offering help!

I tried to connect and made logs of that moment.

Is this something you can work with?

024-01-18 07:11:41,746 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:11:41] "GET /description.xml HTTP/1.1" 200 -
2024-01-18 07:12:09,655 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:09] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:10,856 - services.stateFetch - INFO - start lights sync
2024-01-18 07:12:15,816 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:15] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:18,830 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:18] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:21,806 - werkzeug - INFO - 192.168.1.66 - - [18/Jan/2024 07:12:21] "GET /api/config HTTP/1.1" 200 -
2024-01-18 07:12:23,873 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:23] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:24,876 - services.stateFetch - INFO - start lights sync
2024-01-18 07:12:26,734 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:26] "PUT /api/d672f69888b311eea242b827eb3b61fb/config HTTP/1.1" 200 -
2024-01-18 07:12:28,831 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:28] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:33,882 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:33] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:35,890 - services.stateFetch - INFO - start lights sync
2024-01-18 07:12:38,882 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:38] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:43,055 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:43] "PUT /api/d672f69888b311eea242b827eb3b61fb/config HTTP/1.1" 200 -
2024-01-18 07:12:43,829 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:43] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:48,823 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:48] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -
2024-01-18 07:12:49,908 - services.stateFetch - INFO - start lights sync
2024-01-18 07:12:53,830 - werkzeug - INFO - 192.168.1.75 - - [18/Jan/2024 07:12:53] "GET /api/d672f69888b311eea242b827eb3b61fb/groups/0 HTTP/1.1" 200 -

@mariusmotea
Copy link
Member

In the pasted logs there are no request from the app you want to pair, there are just from the browser where you pressed the linkbutton. Maybe https service has not started because the certificate was not properly generated.

@Maarten-s92
Copy link

I did a full rebuild again, this time I removed everything from the PI and it worked. Thankyou so much!

The only problem is now I can't get the lights to appear in DIY hue, but that the next thing to figure out!

@nonamejuju
Copy link

So you did a full new installation of home assistant to fix it ?

@Maarten-s92
Copy link

In the past, I did a deinstall --> install --> remove the certificate, make new certificate.

Now I removed everything that resembled diy hue. Full clean install and it worked.

The only weird thing is that somehow I can't get the HA lights to propagate. Something that was not a problem in previous installs

@joldenburgSOLITA
Copy link

joldenburgSOLITA commented Mar 22, 2024 via email

@RykardosJ
Copy link

RykardosJ commented Aug 3, 2024

Hi, I have the same problem. And I already tried everything .. I reinstalled diyhue about 100 times philips hue mobile app 30 times .. I checked certificates .. and still I can't pair diyhue with philips hue mobile app and not even essential.... please help me .. already I am desperate

part of the log if it helps:

2024-08-03 19:06:07,042 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:07,044 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:07] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:07,649 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:07] "GET /api/635fb13851ca11efa7997ca7b08530ef/config/swupdate2 HTTP/1.1" 200 -
2024-08-03 19:06:07,656 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:07] "GET /api/635fb13851ca11efa7997ca7b08530ef/groups/0 HTTP/1.1" 200 -
2024-08-03 19:06:08,069 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:08,072 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:08] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:09,094 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:09,096 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:09] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:10,116 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:10,119 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:10] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:11,138 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:11,140 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:11] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:12,159 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:12,162 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:12] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:12,647 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:12] "GET /api/635fb13851ca11efa7997ca7b08530ef/config/swupdate2 HTTP/1.1" 200 -
2024-08-03 19:06:12,650 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:12] "GET /api/635fb13851ca11efa7997ca7b08530ef/groups/0 HTTP/1.1" 200 -
2024-08-03 19:06:13,187 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True}
2024-08-03 19:06:13,190 - werkzeug - 225 - INFO - 192.168.0.184 - - [03/Aug/2024 19:06:13] "POST /api HTTP/1.1" 200 -
2024-08-03 19:06:14,388 - services.stateFetch - 12 - INFO - start lights sync
2024-08-03 19:06:17,659 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:17] "GET /api/635fb13851ca11efa7997ca7b08530ef/groups/0 HTTP/1.1" 200 -
2024-08-03 19:06:17,662 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:17] "GET /api/635fb13851ca11efa7997ca7b08530ef/config/swupdate2 HTTP/1.1" 200 -
2024-08-03 19:06:22,647 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:22] "GET /api/635fb13851ca11efa7997ca7b08530ef/config/swupdate2 HTTP/1.1" 200 -
2024-08-03 19:06:22,654 - werkzeug - 225 - INFO - 192.168.0.135 - - [03/Aug/2024 19:06:22] "GET /api/635fb13851ca11efa7997ca7b08530ef/groups/0 HTTP/1.1" 200 -

diyhue is on docker on a device with an ARM processor
I have an iPhone 15pro mobile phone

@hendriksen-mark
Copy link
Member

Hi, please check youre timezone in the webui, the local time represents your local time and what is used in the python code, if this is more then 1 hour off then it will not work. If this does not work please share your config_debug.tar

@RykardosJ
Copy link

it worked great, thank you 🙂 but a new problem appeared. 😪 I had no problem connecting to essential

image

image

I have the same wifi network... I don't have VPN on

@RykardosJ
Copy link

ok, so when I log in to the philips hue account, it throws me the error that I mentioned in the comment before this one.. when I pair the bridge without logging in, it works.. as soon as I log in, the bridge throws me

@hendriksen-mark
Copy link
Member

Diyhue does not work with philips cloud services, we can not connect to that service. With the hue essentials app you can use remote services but that is different then philips remote service.

@RykardosJ
Copy link

oh great.. thanks for your answers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants