mariusmotea / diyHue

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

Can't connect Bridge with Philips Hue App #501

Closed filippocobelli closed 4 years ago

filippocobelli commented 4 years ago

*Describe the bug I can’t connect to official Hue App (3.37.0) on iOS. App find the bridge but I can’t connect. Link button doesn’t work. Other app like hue essential work. To Reproduce Steps to reproduce the behavior: Try to connect the bridge to the app.

Expected behavior

Connect to Hue app Logs If applicable, provide output logs. These can be obtained via running docker logs diyHue

Docker Info (please complete the following information):

Additional context I uninstall the iOS app. Already try to stop the docker and the remove with sudo docker rm diyHue && sudo docker rmi diyhue/core I also remove the opt/hue-emulator/ folder And the reinstall the docket with: docker run -d --name "diyHue" --network="host" -v '/mnt/hue-emulator/export/':'/opt/hue-emulator/export/':'rw' diyhue/core:latest

But nothing change. Hue app can’t connect to the bridge. Since last ups date of the iOS app everything work fine. After the update the app constantly ask me to update the diyhue bridge and I can’t do nothing. I remove the bridge and from that time I can’t use it anymore with the official app. I need official hue app since I need to use entrainment mode. Thanks

mariusmotea commented 4 years ago

Hi,

The issue is that Hue app validate the https certificate. The certificate must contain the mac address of the host interface. Probably you did not pass as argument the MAC address to the container or you pass the wron mac. Please check the documentation of the repo (this one is the old one). You will need to wipe Hue app data cache as the old one remain cached by the app.

filippocobelli commented 4 years ago

Hi I delete the hue app from the phone after delete the diyhue but the issue remain

Il giorno mer 29 apr 2020 alle 21:54 Motea Marius notifications@github.com ha scritto:

Hi,

The issue is that Hue app validate the https certificate. The certificate must contain the mac address of the host interface. Probably you did not pass as argument the MAC address to the container or you pass the wron mac. Please check the documentation of the repo (this one is the old one). You will need to wipe Hue app data cache as the old one remain cached by the app.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mariusmotea/diyHue/issues/501#issuecomment-621428014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7AOG6LMYUYZVZNBGJ7JLDRPCAV7ANCNFSM4MTCNVMQ .

-- FC

mobile: +393939299303email: filippocobelli@gmail.com filippocobelli@gmail.comskype: filippocobelli

mariusmotea commented 4 years ago

Reinstall of the application is also good. Follow the debug steps from here: https://diyhue.readthedocs.io/en/latest/AddFuncts/debug.html#https-certificate-check . I'm sure you will find a problem with the certificate because hue app perform the same check.

filippocobelli commented 4 years ago

Hi I done and seems ok. Here is the output:

pi@raspberrypi:~ $ curl https://127.0.0.1/api/nouser/config -v -k

Il giorno gio 30 apr 2020 alle 09:13 Motea Marius notifications@github.com ha scritto:

Reinstall of the application is also good. Follow the debug steps from here: https://diyhue.readthedocs.io/en/latest/AddFuncts/debug.html#https-certificate-check . I'm sure you will find a problem with the certificate because hue app perform the same check.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mariusmotea/diyHue/issues/501#issuecomment-621656560, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7AOG46C7YCKO5VMVSJZSTRPEQIXANCNFSM4MTCNVMQ .

-- FC

mobile: +393939299303email: filippocobelli@gmail.com filippocobelli@gmail.comskype: filippocobelli

filippocobelli commented 4 years ago

But it still don’t connect to hue app. The app see the bridge but the link button doesn’t work..

Il giorno gio 30 apr 2020 alle 15:58 Filippo Cobelli < filippocobelli@gmail.com> ha scritto:

Hi I done and seems ok. Here is the output:

pi@raspberrypi:~ $ curl https://127.0.0.1/api/nouser/config -v -k

  • Expire in 0 ms for 6 (transfer 0x13d2880)
  • Trying 127.0.0.1...
  • TCP_NODELAY set
  • Expire in 200 ms for 4 (transfer 0x13d2880)
  • Connected to 127.0.0.1 (127.0.0.1) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: none CApath: /etc/ssl/certs
  • 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
  • ALPN, server did not agree to a protocol
  • Server certificate:
  • subject: C=NL; O=Philips Hue; CN=dca632fffe247acd
  • start date: Apr 28 13:18:14 2020 GMT
  • expire date: Apr 26 13:18:14 2030 GMT
  • issuer: C=NL; O=Philips Hue; CN=dca632fffe247acd
  • SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.

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

  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  • old SSL session ID is stale, removing < HTTP/1.1 200 OK < Server: nginx < Date: Thu, 30 Apr 2020 13:51:57 GMT < Content-type: application/json < Content-Length: 222 < Access-Control-Allow-Origin: * < Access-Control-Allow-Methods: GET, OPTIONS, POST, PUT, DELETE < Access-Control-Allow-Headers: X-Requested-With < Access-Control-Allow-Headers: Content-Type <
  • Connection #0 to host 127.0.0.1 left intact

{"name":"DiyHue","datastoreversion":70,"swversion":"1937113020","apiversion":"1.35.0","mac":"dc:a6:32:24:7a:cd","bridgeid":"DCA632FFFE247ACD","factorynew":false,"replacesbridgeid":null,"modelid":"BSB002","starterkitid":""}pi@raspberrypi:~ $

Il giorno gio 30 apr 2020 alle 09:13 Motea Marius < notifications@github.com> ha scritto:

Reinstall of the application is also good. Follow the debug steps from here: https://diyhue.readthedocs.io/en/latest/AddFuncts/debug.html#https-certificate-check . I'm sure you will find a problem with the certificate because hue app perform the same check.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mariusmotea/diyHue/issues/501#issuecomment-621656560, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7AOG46C7YCKO5VMVSJZSTRPEQIXANCNFSM4MTCNVMQ .

-- FC

mobile: +393939299303email: filippocobelli@gmail.com filippocobelli@gmail.comskype: filippocobelli

-- FC

mobile: +393939299303email: filippocobelli@gmail.com filippocobelli@gmail.comskype: filippocobelli

mariusmotea commented 4 years ago

Is the mac address of the host interface dc:a6:32:24:7a:cd ? The hue app will see the mac address of the host, not the one from container.

filippocobelli commented 4 years ago

Fixed. I install the hue app on iPad for the first time and it count the bridge and linked successfully.

Il giorno ven 1 mag 2020 alle 18:51 Motea Marius notifications@github.com ha scritto:

Is the mac address of the host interface dc:a6:32:24:7a:cd ? The hue app will see the mac address of the host, not the one from container.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mariusmotea/diyHue/issues/501#issuecomment-622467712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7AOG7VPSXE7FD7MH5FPELRPL42BANCNFSM4MTCNVMQ .

-- FC

mobile: +393939299303email: filippocobelli@gmail.com filippocobelli@gmail.comskype: filippocobelli

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed as it has not had any recent activity. Thank you for your contributions.