diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.52k stars 274 forks source link

Hue app not finding #1008

Closed m0dbot closed 3 months ago

m0dbot commented 3 months ago

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Install Script

Home Assistant related?

No

Description

I try to link my hue app on android. The app searches forever, when I put the emulator's IP manually it instantly says "no bridge found". Hue essentials was able to connect via manual IP.

This is a fresh install on a Pi 4.

I checked the cert as described on the help page and the numbers match. however the last line (with the json) has much more data than the one in the example.

I Tried klicking the link button before and after connection attempts with no success. Also I had the same issues with a docker install I tried before.

192.168.10.42 is my phone, 10.66 is the windows machine where I access the web UI from. I am in a unifi network, mdns is enabled if that matters.

Oh and I have another question: I tried installing on a Pi 1 and a Zero W before, it fails because some apt packets arent available. Docker didnt work work at all for me. Is there a method to install this on armv6?

Thank you very much and have a great day.

Errorlog:

leon@diyhue:/opt/hue-emulator $ sudo ./HueEmulator3.py --debug
2024-03-13 18:47:44,375 - configManager.argumentHandler - INFO - Using Host 192.168.10.178:80
2024-03-13 18:47:44,383 - configManager.argumentHandler - INFO - Host MAC given as dca632bea41a
2024-03-13 18:47:44,383 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2024-03-13 18:47:44,383 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2024-03-13 18:47:44,383 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2024-03-13 18:47:44,387 - configManager.argumentHandler - INFO - Using Host 192.168.10.178:80
2024-03-13 18:47:44,394 - configManager.argumentHandler - INFO - Host MAC given as dca632bea41a
2024-03-13 18:47:44,394 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2024-03-13 18:47:44,394 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2024-03-13 18:47:44,394 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2024-03-13 18:47:44,394 - configManager.argumentHandler - INFO - Debug logging enabled!
2024-03-13 17:47:44,458 - configManager.configHandler - INFO - Config loaded
2024-03-13 17:47:44,853 - services.updateManager - INFO - creation_time diyHue : 2024-03-13 16
2024-03-13 17:47:44,853 - services.updateManager - INFO - publish_time  diyHue : 2024-03-11 23
2024-03-13 17:47:45,169 - services.updateManager - INFO - creation_time UI : 2024-03-11 06
2024-03-13 17:47:45,169 - services.updateManager - INFO - publish_time  UI : 2024-03-11 06
2024-03-13 17:47:45,169 - services.updateManager - INFO - no update for diyHue or UI on github
2024-03-13 17:47:45,170 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2024-03-13 17:47:45,171 - services.remoteDiscover - INFO - Starting discovery service
2024-03-13 17:47:45,173 - services.stateFetch - INFO - start lights sync
2024-03-13 17:47:45,174 - services.ssdp - INFO - start ssdp broadcast
2024-03-13 17:47:45,175 - services.ssdp - INFO - starting ssdp...
2024-03-13 17:47:45,176 - services.mdns - INFO - <MDNS> listener started
2024-03-13 17:47:45,177 - services.eventStreamer - DEBUG - {'creationtime': '2024-03-13T17:47:44Z', 'data': [{'children': [], 'grouped_services': [{'rid': '02f3ee6d-6292-42a4-95fa-16b2833acde5', 'rtype': 'grouped_light'}], 'services': [{'rid': '02f3ee6d-6292-42a4-95fa-16b2833acde5', 'rtype': 'grouped_light'}], 'id': 'd499c7c6-433d-5697-8c71-f7f0e429cd2b', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': '0aef1bd4-8000-4df5-a688-e97907a299d2', '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
2024-03-13 17:47:45,187 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2024-03-13 17:47:45,188 - werkzeug - INFO -  * Running on http://192.168.10.178: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
2024-03-13 17:47:45,191 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2024-03-13 17:47:45,191 - werkzeug - INFO -  * Running on https://192.168.10.178:443/ (Press CTRL+C to quit)
2024-03-13 17:47:46,166 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:47:46] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:47:46,877 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.164
2024-03-13 17:47:47,181 - werkzeug - INFO - 192.168.10.164 - - [13/Mar/2024 17:47:47] "GET /description.xml HTTP/1.1" 200 -
2024-03-13 17:47:47,185 - werkzeug - INFO - 192.168.10.164 - - [13/Mar/2024 17:47:47] "GET /description.xml HTTP/1.1" 200 -
2024-03-13 17:47:47,964 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.164
2024-03-13 17:47:48,665 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.164
2024-03-13 17:47:50,274 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:47:50] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:47:51,280 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.66
2024-03-13 17:47:52,082 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.66
2024-03-13 17:47:53,882 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.66
2024-03-13 17:47:54,283 - services.ssdp - DEBUG - Sending M-Search response to 192.168.10.66
2024-03-13 17:47:54,361 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:47:54] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:47:58,471 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:47:58] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:47:59,177 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET / HTTP/1.1" 200 -
2024-03-13 17:47:59,317 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/css/main.6a208b10.css HTTP/1.1" 304 -
2024-03-13 17:47:59,319 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/js/main.d53d5932.js HTTP/1.1" 304 -
2024-03-13 17:47:59,374 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/media/background.db8a83c2c9e7ce4d1cc5.jpg HTTP/1.1" 304 -
2024-03-13 17:47:59,416 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/media/logo.bd3b4e90d91f778081476ad0d68050fe.svg HTTP/1.1" 304 -
2024-03-13 17:47:59,459 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/js/974.d3ccc457.chunk.js HTTP/1.1" 304 -
2024-03-13 17:47:59,470 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/media/logo.bd3b4e90d91f778081476ad0d68050fe.svg HTTP/1.1" 304 -
2024-03-13 17:47:59,472 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/js/936.505bc679.chunk.js HTTP/1.1" 304 -
2024-03-13 17:47:59,483 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/js/408.090e6b40.chunk.js HTTP/1.1" 304 -
2024-03-13 17:47:59,487 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /static/js/519.c1471ce3.chunk.js HTTP/1.1" 304 -
2024-03-13 17:47:59,491 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /get-key HTTP/1.1" 200 -
2024-03-13 17:47:59,557 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /favicon.ico HTTP/1.1" 200 -
2024-03-13 17:47:59,561 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:47:59] "GET /logo192.png HTTP/1.1" 200 -
2024-03-13 17:48:00,097 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:00] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/groups/0 HTTP/1.1" 200 -
2024-03-13 17:48:00,099 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:00] "GET /api/ba2e1b1ce15911eea8aedca632bea41a HTTP/1.1" 200 -
2024-03-13 17:48:00,102 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:00] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/config/swupdate2 HTTP/1.1" 200 -
2024-03-13 17:48:01,188 - services.stateFetch - INFO - start lights sync
2024-03-13 17:48:02,076 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:02] "GET /api/ba2e1b1ce15911eea8aedca632bea41a HTTP/1.1" 200 -
2024-03-13 17:48:03,769 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:03] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:04,077 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:04] "GET /api/ba2e1b1ce15911eea8aedca632bea41a HTTP/1.1" 200 -
2024-03-13 17:48:04,752 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:04] "GET /static/js/352.363151a1.chunk.js HTTP/1.1" 200 -
2024-03-13 17:48:05,079 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:05] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/groups/0 HTTP/1.1" 200 -
2024-03-13 17:48:05,083 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:05] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/config/swupdate2 HTTP/1.1" 200 -
2024-03-13 17:48:06,168 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1710352086}}}]
2024-03-13 17:48:06,196 - configManager.configHandler - DEBUG - Dump config file /opt/hue-emulator/config/config.yaml
2024-03-13 17:48:06,198 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:06] "PUT /api/ba2e1b1ce15911eea8aedca632bea41a/config HTTP/1.1" 200 -
2024-03-13 17:48:07,865 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:07] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:10,078 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:10] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/groups/0 HTTP/1.1" 200 -
2024-03-13 17:48:10,081 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:10] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/config/swupdate2 HTTP/1.1" 200 -
2024-03-13 17:48:10,611 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:10] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:11,929 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:11] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:12,189 - services.stateFetch - INFO - start lights sync
2024-03-13 17:48:15,080 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:15] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/groups/0 HTTP/1.1" 200 -
2024-03-13 17:48:15,084 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:15] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/config/swupdate2 HTTP/1.1" 200 -
2024-03-13 17:48:15,994 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:15] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:20,084 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:20] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/groups/0 HTTP/1.1" 200 -
2024-03-13 17:48:20,088 - werkzeug - INFO - 192.168.10.66 - - [13/Mar/2024 17:48:20] "GET /api/ba2e1b1ce15911eea8aedca632bea41a/config/swupdate2 HTTP/1.1" 200 -
2024-03-13 17:48:20,110 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:20] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:20,115 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:20] "GET /api/config HTTP/1.1" 200 -
2024-03-13 17:48:24,196 - werkzeug - INFO - 192.168.10.42 - - [13/Mar/2024 17:48:24] "GET /api/config HTTP/1.1" 200 -

Steps to reproduce

Make a fresh Pi OS lite 64bit with Raspberry Pi Imager Boot up Pi, connect via SSH, apt update, upgrade, run diyhue Install script Search for bridges via Hue app

Please enter your operating system details here

Linux 6.6.20+rpt-rpi-v8 aarch64

What DiyHue version(branch) are you using?

master (latest)

hendriksen-mark commented 3 months ago

what is the "api version" on the webui? if this is 1.62_RS4 please remove "software version" and enter 0 and press save an then press the "no update" button on the top right, if it gives you a "update available" please update via the button and try again, if no update available please check the api version again after "on update" press. if this does not work please give info what is the "software version" and "api version".

m0dbot commented 3 months ago

Thank you very much, that worked! API version was indeed 1.62_RS4.

Btw I found out when using https://diyhue.local I was unable to pair the emulator with my hue bridge, but http:// works.