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

Hue app not linking a HAAS diyhue bridge #1040

Closed
Charmandrigo opened this issue Sep 3, 2024 · 3 comments
Closed

Hue app not linking a HAAS diyhue bridge #1040

Charmandrigo opened this issue Sep 3, 2024 · 3 comments

Comments

@Charmandrigo
Copy link

Charmandrigo commented Sep 3, 2024

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Install Script

Home Assistant related?

Yes

Description

I made a fresh install of the diyhue bridge from home assistant, followed the instructions, placing the mac before starting, even deleting the certificate and starting over again. all I get from the official app is this
IMG_6563

I have tried everything so far and the app only works on 3rd party apps like hue essentials.
Log from the home assistant addon:
2024-09-02 21:42:47,795 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:42:47] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:42:51,496 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:42:51] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:42:52,415 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:52] "GET /api/config HTTP/1.1" 200 - 2024-09-02 21:42:52,484 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:52,487 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:52] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:53,502 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:53,506 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:53] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:53,664 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:42:53] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:42:54,520 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:54,523 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:54] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:55,113 - services.stateFetch - 12 - INFO - start lights sync 2024-09-02 21:42:55,537 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:55,541 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:55] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:56,506 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:42:56] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:42:56,558 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:56,562 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:56] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:57,579 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:57,583 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:57] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:58,603 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:58,606 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:58] "POST /api HTTP/1.1" 200 - 2024-09-02 21:42:58,665 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:42:58] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:42:59,626 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:42:59,630 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:42:59] "POST /api HTTP/1.1" 200 - 2024-09-02 21:43:00,648 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:43:00,652 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:00] "POST /api HTTP/1.1" 200 - 2024-09-02 21:43:01,503 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:01] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:43:01,666 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:43:01,670 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:01] "POST /api HTTP/1.1" 200 - 2024-09-02 21:43:02,687 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:43:02,689 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:02] "POST /api HTTP/1.1" 200 - 2024-09-02 21:43:03,511 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:03] "GET /api/2b596558672411efb826dca632485c5e/config HTTP/1.1" 200 - 2024-09-02 21:43:03,599 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:03] "PUT /api/2b596558672411efb826dca632485c5e/config HTTP/1.1" 200 - 2024-09-02 21:43:03,657 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:03] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:43:03,710 - flaskUI.restful - 78 - INFO - {'devicetype': 'Hue#iPhone', 'generateclientkey': True} 2024-09-02 21:43:03,833 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:03] "POST /api HTTP/1.1" 200 - 2024-09-02 21:43:03,885 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:03] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:03,899 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:03] "GET /eventstream/clip/v2 HTTP/1.1" 200 - 2024-09-02 21:43:03,970 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:03] "PUT /api/3df7456e699e11ef8269dca632485c5e/config HTTP/1.1" 200 - x: 0 2024-09-02 21:43:04,067 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:04] "GET /clip/v2/resource HTTP/1.1" 200 - 2024-09-02 21:43:04,163 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:04] "GET /api/3df7456e699e11ef8269dca632485c5e/capabilities HTTP/1.1" 200 - 2024-09-02 21:43:04,260 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:04] "GET /api/3df7456e699e11ef8269dca632485c5e/config HTTP/1.1" 200 - 2024-09-02 21:43:04,361 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:04] "GET /api/3df7456e699e11ef8269dca632485c5e/config HTTP/1.1" 200 - 2024-09-02 21:43:04,899 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:04] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:05,914 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:05] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:06,133 - services.stateFetch - 12 - INFO - start lights sync 2024-09-02 21:43:06,499 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:06] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:43:06,929 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:06] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:07,944 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:07] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:08,669 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:08] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:43:08,959 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:08] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:09,980 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:09] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:11,000 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:11] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:11,507 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:11] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:43:12,030 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:12] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:13,044 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:13] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:13,672 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:13] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 - 2024-09-02 21:43:14,064 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:14] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:15,087 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:15] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:16,104 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:16] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:16,513 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:16] "GET /api/2b596558672411efb826dca632485c5e/config/swupdate2 HTTP/1.1" 200 - 2024-09-02 21:43:17,119 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:17] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:17,147 - services.stateFetch - 12 - INFO - start lights sync 2024-09-02 21:43:18,144 - werkzeug - 225 - INFO - 192.168.31.100 - - [02/Sep/2024 21:43:18] "GET /clip/v2/resource/bridge HTTP/1.1" 200 - 2024-09-02 21:43:18,679 - werkzeug - 225 - INFO - 192.168.31.170 - - [02/Sep/2024 21:43:18] "GET /api/2b596558672411efb826dca632485c5e/groups/0 HTTP/1.1" 200 -

Https certificate verification:
`~ curl https://127.0.0.1/api/nouser/config -v -k

  • Trying 127.0.0.1:443...
  • Connected to 127.0.0.1 (127.0.0.1) port 443
  • ALPN: curl offers h2,http/1.1
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  • TLSv1.3 (IN), TLS handshake, Certificate (11):
  • TLSv1.3 (IN), TLS handshake, CERT verify (15):
  • TLSv1.3 (IN), TLS handshake, Finished (20):
  • TLSv1.3 (OUT), TLS handshake, Finished (20):
  • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / secp256r1 / id-ecPublicKey
  • ALPN: server did not agree on a protocol. Uses default.
  • Server certificate:
  • subject: C=NL; O=Philips Hue; CN=dca632fffe485c5e
  • start date: Aug 31 01:48:14 2024 GMT
  • expire date: Aug 31 01:48:14 2045 GMT
  • issuer: C=NL; O=Philips Hue; CN=dca632fffe485c5e
  • SSL certificate verify result: self-signed certificate (18), continuing anyway.
  • Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
  • using HTTP/1.x

GET /api/nouser/config HTTP/1.1
Host: 127.0.0.1
User-Agent: curl/8.7.1
Accept: /

  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  • old SSL session ID is stale, removing
  • Request completely sent off
    < HTTP/1.1 200 OK
    < Content-Type: application/json
    < Content-Length: 4906
    < Access-Control-Allow-Origin: *
    < Server: Werkzeug/2.0.3 Python/3.8.6
    < Date: Tue, 03 Sep 2024 02:49:46 GMT
    <
    {"backup": {"errorcode": 0, "status": "idle"}, "datastoreversion": "126", "dhcp": true, "factorynew": false, "internetservices": {"internet": "disconnected", "remoteaccess": "disconnected", "swupdate": "disconnected", "time": "disconnected"}, "linkbutton": false, "modelid": "BSB002", "portalconnection": "disconnected", "portalservices": false, "portalstate": {"communication": "disconnected", "incoming": false, "outgoing": false, "signedon": false}, "proxyaddress": "none", "proxyport": 0, "replacesbridgeid": null, "swupdate": {"checkforupdate": false, "devicetypes": {"bridge": false, "lights": [], "sensors": []}, "notify": true, "text": "", "updatestate": 0, "url": ""}, "swupdate2": {"autoinstall": {"on": true, "updatetime": "T14:00:00"}, "bridge": {"lastinstall": "2024-08-31T01:31:27", "state": "noupdates"}, "checkforupdate": false, "lastchange": "2024-08-31T01:31:27", "state": "allreadytoinstall", "install": false}, "zigbeechannel": 25, "Hue Essentials key": "1b55ea8c672411efb826dca632485c5e", "Remote API enabled": false, "apiversion": "1.66.0", "bridgeid": "DCA632FFFE485C5E", "ipaddress": "192.168.31.3", "netmask": "255.255.255.0", "gateway": "192.168.31.1", "mac": "dc:a6:32:48:5c:5e", "name": "DiyHue Bridge", "swversion": "1966060010", "timezone": "America/Mexico_City", "discovery": true, "UTC": "2024-09-03T02:49:46", "localtime": "2024-09-02T21:49:46", "whitelist": {"2b596558672411efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-09-03T02:49:44", "name": "WebUi"}, "d3494b6a672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:02", "name": "Echo"}, "d356fb48672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:02", "name": "Echo"}, "d6520482672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:07", "name": "Echo"}, "d95bdc5c672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:13", "name": "Echo"}, "dc64b612672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:18", "name": "Echo"}, "df6cb2e2672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:23", "name": "Echo"}, "e27495a4672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:28", "name": "Echo"}, "e57c104c672511efb826dca632485c5e": {"create date": "2024-08-30T23:03:44", "last use date": "2024-08-30T23:16:33", "name": "Echo"}, "417219ea673611ef9334dca632485c5e": {"create date": "2024-08-30T23:51:13", "last use date": "2024-08-31T01:13:39", "name": "Echo"}, "41803fb6673611ef9334dca632485c5e": {"create date": "2024-08-30T23:51:13", "last use date": "2024-08-31T01:13:39", "name": "Echo"}, "3cf04780673f11ef91d5dca632485c5e": {"create date": "2024-08-31T02:06:40", "last use date": "2024-08-31T22:19:12", "name": "LightsAndMusicIOSApp"}, "8c10a31a674311efab66dca632485c5e": {"create date": "2024-08-31T02:40:36", "last use date": "2024-08-31T04:10:56", "name": "Hue#iPhone"}, "b3ce9cde674511efba5cdca632485c5e": {"create date": "2024-08-31T02:49:18", "last use date": "2024-08-31T03:04:14", "name": "Echo"}, "b3e579ae674511efba5cdca632485c5e": {"create date": "2024-08-31T02:49:18", "last use date": "2024-08-31T03:04:14", "name": "Echo"}, "c664c896674511efba5cdca632485c5e": {"create date": "2024-08-31T02:49:18", "last use date": "2024-08-31T03:04:45", "name": "Echo"}, "c675bf3e674511efba5cdca632485c5e": {"create date": "2024-08-31T02:49:18", "last use date": "2024-08-31T03:04:45", "name": "Echo"}, "33ba3cdc67e611ef97e2dca632485c5e": {"create date": "2024-08-31T19:00:12", "last use date": "2024-08-31T22:13:08", "name": "Hue#iPhone"}, "c900ac4a67e611efae27dca632485c5e": {"create date": "2024-08-31T22:14:26", "last use date": "2024-08-31T22:18:20", "name": "Hue#iPhone"}, "9aa87950698911efb9abdca632485c5e": {"create date": "2024-09-03T00:13:50", "last use date": "2024-09-03T00:15:19", "name": "Echo"}, "9ac53c2a698911efb9abdca632485c5e": {"create date": "2024-09-03T00:13:50", "last use date": "2024-09-03T00:15:20", "name": "Echo"}, "23b21e54698a11ef9168dca632485c5e": {"create date": "2024-09-03T00:18:33", "last use date": "2024-09-03T00:19:09", "name": "Hue#iPhone"}, "hueess20698b11efb281dca632485c5e": {"create date": "2024-09-03T00:26:12", "last use date": "2024-09-03T00:29:09", "name": "Hue Essentials#Mac OS X 14.6.1 x86_64"}, "d6af701a698f11ef8269dca632485c5e": {"create date": "2024-09-03T00:39:08", "last use date": "2024-09-03T00:59:57", "name": "Echo"}, "d6c7569e698f11ef8269dca632485c5e": {"create date": "2024-09-03T00:39:08", "last use date": "2024-09-03T00:59:57", "name": "Echo"}, "3df7456e699e11ef8269dca632485c5e": {"create date": "2024-09-03T00:39:08", "last use date": "2024-09-03T02:46:44", "name": "Hue#iPhone"}}}
  • Connection #0 to host 127.0.0.1 left intact`

Even tried the connection on a second iphone that had no hue app installed prior, still got the same issue.
It's possible to temporally bypass that error message by stopping the diyhue addon and returning to homepage, a button that is visible when I have another official Hue Bridge connected on my app. That bypass only works for a day before the app logs off and ask to log in again, get the same "hue bridge not detected" error

Errorlog:

''

Steps to reproduce

  1. Install home assistant addon.
  2. follow Mac address instructions and start the addon
  3. attempt to connect the emulated bridge to the official hue app

Please enter your operating system details here

Hue-Emulator Version: 2024-08-30 17:05:48.000000000
WebUI Version: 2024-08-30 17:06:00.000000000
Architecture: aarch64
OS: Linux
Linux version: #1 SMP PREEMPT Tue Aug 13 16:06:22 UTC 2024
Linux release: 6.6.31-haos-raspi
Hardware: %Hardware%

Upload debug tar

config_debug.zip

What DiyHue version(branch) are you using?

master (latest)

@hendriksen-mark
Copy link
Member

Hi, did you login to a philips account and then search for a bridge? If so that does not work, diyhue can not work with philips cloud services, you must setup diyhue without a acount.

@Charmandrigo
Copy link
Author

Hi, did you login to a philips account and then search for a bridge? If so that does not work, diyhue can not work with philips cloud services, you must setup diyhue without a acount.

Alright, that seems to have worked.
but using a hue like this without an account would still allow me to use lights connected to the emulated bridge with a sync box?

@hendriksen-mark
Copy link
Member

Some people say a syncbox works and others say it does not work. I dont have a sync box so I can not test this. Searsh in the issues for sync box and you find some issues discussing the sync box.

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

2 participants