diyhue / diyHue

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

Home Assistant diyHue Add-on connecting App via Link Button not working. Nothing happens #863

Open Br3b opened 2 years ago

Br3b commented 2 years ago

Describe the issue Added the Repository "https://github.com/diyhue/hassio-addon" under Add-ons in Home Assistant and installed the Add-on "diyHue" via Add-on Store.

BEFORE starting the Add-on after successful installation, I configured the mac address of my Home Assistant VM under Proxmox, chooses debug "true" and no_serve_https "true", saved and started.

Looks good so far:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue
 Emulate a Hue Bridge, add lights, sensors etc. from different vendors into one Ecosystem
-----------------------------------------------------------
 Add-on version: 2.0.6
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.2  (amd64 / qemux86-64)
 Home Assistant Core: 2022.10.4
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue created.
Your Architecture is = amd64
No serve HTTPS
2022-10-15 13:44:27,026 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-15 13:44:27,026 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-15 13:44:27,026 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-15 13:44:27,026 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-15 13:44:27,026 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-15 13:44:27,027 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-15 13:44:27,031 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-15 13:44:27,032 - configManager.argumentHandler - INFO - Debug logging enabled!
2022-10-15 13:44:27,032 - configManager.argumentHandler - INFO - Generating certificate
Generating an EC private key
writing new private key to 'private.key'
-----
touch: /opt/hue-emulator/config/cert.pem: No such file or directory
2022-10-15 13:44:27,074 - configManager.argumentHandler - INFO - Certificate created
2022-10-15 13:44:27,076 - configManager.configHandler - INFO - Config loaded
2022-10-15 13:44:27,252 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2022-10-15 13:44:27,252 - services.remoteDiscover - INFO - Starting discovery service
2022-10-15 13:44:27,253 - services.stateFetch - INFO - start lights sync
2022-10-15 13:44:27,254 - services.ssdp - INFO - starting ssdp...
2022-10-15 13:44:27,258 - services.mdns - INFO - <MDNS> listener started
2022-10-15 13:44:27,257 - services.ssdp - INFO - start ssdp broadcast
2022-10-15 13:44:27,264 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-15T11:44:27Z', 'data': [{'children': [], 'grouped_services': [{'rid': '2ccabfd1-9c67-4a22-a5ac-7968b09027ee', 'rtype': 'grouped_light'}], 'services': [{'rid': '2ccabfd1-9c67-4a22-a5ac-7968b09027ee', 'rtype': 'grouped_light'}], 'id': 'a3b59018-4bb4-5954-ab06-d3012bf6edf4', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': 'a03532b3-c4b6-436a-ac01-e61cbb13d212', '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
2022-10-15 13:44:27,271 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-15 13:44:27,271 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
2022-10-15 13:44:27,728 - werkzeug - INFO - 10.0.0.3 - - [15/Oct/2022 13:44:27] "GET /api/config HTTP/1.1" 200 -
2022-10-15 13:44:27,771 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:44:27] "GET /api/0af3f4b64c7011edbfd4ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 13:44:28,866 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:44:28,934 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:44:28] "GET /description.xml HTTP/1.1" 200 -

Opened Hue Essentials on iPhone and the diyHue appears with the same IP-address of Home Assistant VM and the specified mac-address. If I try to connect it says I need to push the link button, so I head over to diyHue under "Link Button" and press "LINK APP" but nothing happens. I tried with the original Hue App and with the PC software Hue Sync, sadly no success.

2022-10-15 13:47:10,882 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:11,683 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 13:47:12,031 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:12,032 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:12] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:12,485 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:13,055 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:13,056 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:13] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:13,486 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:13,988 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:14,789 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.55
2022-10-15 13:47:15,776 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:15] "GET /api/fc19b0d44c7e11ed8e11ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 13:47:15,957 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:15] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 13:47:16,601 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:17,443 - services.stateFetch - INFO - start lights sync
2022-10-15 13:47:19,171 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.55
2022-10-15 13:47:19,973 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:20,774 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:20] "GET /api/fc19b0d44c7e11ed8e11ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 13:47:20,863 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 13:47:21,437 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:21] "GET /api/config HTTP/1.1" 200 -
2022-10-15 13:47:22,519 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:22,846 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:22,847 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:22] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:23,881 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:23,882 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:23] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:24,771 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:24] "GET /api/0af3f4b64c7011edbfd4ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 13:47:24,833 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:24] "GET /api/fc19b0d44c7e11ed8e11ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 13:47:24,919 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:24,920 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:24] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:25,952 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:25,953 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:25] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:26,009 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:26] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 13:47:26,558 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:26,982 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:26,983 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:26] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:27,716 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1665834416}}}]
2022-10-15 13:47:27,723 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/config.yaml
2022-10-15 13:47:27,724 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 13:47:27] "PUT /api/fc19b0d44c7e11ed8e11ae2c2065d762/config HTTP/1.1" 200 -
2022-10-15 13:47:28,011 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:28,012 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:28] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:29,045 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:29,046 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:29] "POST /api/ HTTP/1.1" 200 -
2022-10-15 13:47:29,455 - services.stateFetch - INFO - start lights sync
2022-10-15 13:47:29,463 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 13:47:30,082 - flaskUI.restful - DEBUG - {'devicetype': 'Hue Essentials#iPhone', 'generateclientkey': True}
2022-10-15 13:47:30,083 - werkzeug - INFO - 10.0.1.55 - - [15/Oct/2022 13:47:30] "POST /api/ HTTP/1.1" 200 -

Steps you tried

Reinstall Add-on Delete Folder under config/diyhue try different mac-address

How we can help

Please help to connect Apps via Link Button

Logs

see above

Docker Info (please complete the following information):

Additional context

juanesf commented 2 years ago

In the log you can see that it had problems creating the certificate...

2022-10-15 13:44:27,032 - configManager.argumentHandler - INFO - Generating certificate Generating an EC private key writing new private key to 'private.key'

touch: /opt/hue-emulator/config/cert.pem: No such file or directory

juanesf commented 2 years ago

https://github.com/diyhue/diyHue/pull/864

Br3b commented 2 years ago

@juanesf thanks for your comment. Is that a hint about a wrong mac address? The log I posted was the one from starting the first time after installation. I'll post a log from restarting the add-on:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue
 Emulate a Hue Bridge, add lights, sensors etc. from different vendors into one Ecosystem
-----------------------------------------------------------
 Add-on version: 2.0.6
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.2  (amd64 / qemux86-64)
 Home Assistant Core: 2022.10.4
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = amd64
No serve HTTPS
2022-10-15 17:55:30,707 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-15 17:55:30,708 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-15 17:55:30,708 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-15 17:55:30,708 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-15 17:55:30,708 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-15 17:55:30,708 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-15 17:55:30,713 - configManager.argumentHandler - INFO - Debug logging enabled!
2022-10-15 16:55:30,733 - configManager.configHandler - INFO - Config loaded
2022-10-15 16:55:30,906 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2022-10-15 16:55:30,907 - services.remoteDiscover - INFO - Starting discovery service
2022-10-15 16:55:30,911 - services.stateFetch - INFO - start lights sync
2022-10-15 16:55:30,912 - services.ssdp - INFO - starting ssdp...
2022-10-15 16:55:30,913 - services.mdns - INFO - <MDNS> listener started
2022-10-15 16:55:30,913 - services.ssdp - INFO - start ssdp broadcast
2022-10-15 16:55:30,923 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-15T15:55:30Z', 'data': [{'children': [], 'grouped_services': [{'rid': '0a96395a-6ca6-46a5-9f93-00a304bc8f94', 'rtype': 'grouped_light'}], 'services': [{'rid': '0a96395a-6ca6-46a5-9f93-00a304bc8f94', 'rtype': 'grouped_light'}], 'id': '7a5d3602-2be2-5459-a25d-1e4216e9087d', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': '9ada9f04-1784-495e-9be4-76d71268470d', '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
2022-10-15 16:55:33,017 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 16:55:33,428 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-15 16:55:33,428 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
2022-10-15 16:55:34,529 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 16:55:34,601 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 16:55:34] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 16:55:36,069 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 16:55:36] "GET /api/fc19b0d44c7e11ed8e11ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 16:55:37,439 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 16:55:40,351 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 16:55:41,805 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
juanesf commented 2 years ago

actually it's a problem on first start when you call the script that generates the certificate, I think you should check if /opt/hue-emulator/config/cert.pem exists and if it doesn't have any content you should delete the file and restart the plugin to regenerate the certificate. you can review the documentation of the add-on

Mevel commented 2 years ago

@juanesf found the reason why accessing the cert fails in certain situations. Reason was a directory was not created properly. His push fixed it. Hassio add on version will be bumped to 2.0.7 in just a second.

Mevel commented 2 years ago

@Br3b you can update now and try.

https://github.com/diyhue/hassio-addon/commit/bb3fd9c1e1435e22f59d6367ab1b88735e9905c1

is in place

feedback welcome.

Br3b commented 2 years ago

@Mevel thanks for you fast response. Sadly its not connecting :/

2022-10-15 19:33:24,504 - services.mdns - INFO - <MDNS> listener started
2022-10-15 19:33:24,515 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-15 19:33:24,511 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-15T17:33:24Z', 'data': [{'children': [], 'grouped_services': [{'rid': '488f80c2-75a6-4fb0-8c03-69d70d8997e6', 'rtype': 'grouped_light'}], 'services': [{'rid': '488f80c2-75a6-4fb0-8c03-69d70d8997e6', 'rtype': 'grouped_light'}], 'id': '4bf058b9-6b5f-5705-a09a-2a2c1462fc06', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': '3774d064-c201-419f-abc8-fe498595b97a', '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
2022-10-15 19:33:24,515 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
2022-10-15 19:33:27,283 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:27,342 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:27] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:30,796 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:31,930 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 19:33:31,934 - werkzeug - INFO - 10.0.0.4 - - [15/Oct/2022 19:33:31] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:33,511 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:36,069 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:36] "GET /api/fc19b0d44c7e11ed8e11ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 19:33:37,002 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:37] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:37,350 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:40,059 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:42,030 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 19:33:43,173 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:44,819 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.6
2022-10-15 19:33:45,528 - werkzeug - INFO - 10.0.1.6 - - [15/Oct/2022 19:33:45] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:45,741 - werkzeug - INFO - 10.0.1.6 - - [15/Oct/2022 19:33:45] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:46,120 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.6
2022-10-15 19:33:46,821 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.6
2022-10-15 19:33:47,071 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:47] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:47,923 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:48,824 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.6
2022-10-15 19:33:50,125 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:51,014 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET / HTTP/1.1" 200 -
2022-10-15 19:33:51,038 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/css/3.482bc700.chunk.css HTTP/1.1" 304 -
2022-10-15 19:33:51,043 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/js/main.304c6128.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:51,046 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/js/3.7bf25959.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:51,050 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/css/main.bb68dc29.chunk.css HTTP/1.1" 304 -
2022-10-15 19:33:51,112 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/media/background.db8a83c2.jpg HTTP/1.1" 304 -
2022-10-15 19:33:51,157 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/js/5.c9f5d92b.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:51,159 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/js/0.74080e9a.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:51,161 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/js/18.3b63435a.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:51,175 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/media/logo.bd3b4e90.svg HTTP/1.1" 304 -
2022-10-15 19:33:51,175 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/config.yaml
2022-10-15 19:33:51,176 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/lights.yaml
2022-10-15 19:33:51,176 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/groups.yaml
2022-10-15 19:33:51,177 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/scenes.yaml
2022-10-15 19:33:51,177 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/rules.yaml
2022-10-15 19:33:51,177 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/resourcelinks.yaml
2022-10-15 19:33:51,178 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/schedules.yaml
2022-10-15 19:33:51,180 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/sensors.yaml
2022-10-15 19:33:51,181 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/behavior_instance.yaml
2022-10-15 19:33:51,182 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /get-key HTTP/1.1" 200 -
2022-10-15 19:33:51,373 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /api/8883699a4caf11ed8288ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 19:33:51,376 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /api/8883699a4caf11ed8288ae2c2065d762 HTTP/1.1" 200 -
2022-10-15 19:33:51,409 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:51] "GET /static/favicon.ico HTTP/1.1" 304 -
2022-10-15 19:33:52,030 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-15 19:33:52,528 - services.stateFetch - INFO - start lights sync
2022-10-15 19:33:53,339 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:33:53,375 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:53] "GET /api/8883699a4caf11ed8288ae2c2065d762 HTTP/1.1" 200 -
2022-10-15 19:33:54,442 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:54] "GET /static/js/12.b22bce35.chunk.js HTTP/1.1" 304 -
2022-10-15 19:33:54,446 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:54] "GET /static/favicon.ico HTTP/1.1" 304 -
2022-10-15 19:33:55,140 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:55] "GET /api/nouser/config HTTP/1.1" 200 -
2022-10-15 19:33:55,143 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:55] "GET /api/nouser/config HTTP/1.1" 200 -
2022-10-15 19:33:56,381 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:56] "GET /api/8883699a4caf11ed8288ae2c2065d762/groups/0 HTTP/1.1" 200 -
2022-10-15 19:33:56,493 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.3
2022-10-15 19:33:57,130 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:57] "GET /description.xml HTTP/1.1" 200 -
2022-10-15 19:33:57,294 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.3
2022-10-15 19:33:57,863 - flaskUI.restful - DEBUG - [{'success': {'/config/linkbutton': {'lastlinkbuttonpushed': 1665855204}}}]
2022-10-15 19:33:57,870 - configManager.configHandler - DEBUG - Dump config file /config/diyhue/config.yaml
2022-10-15 19:33:57,871 - werkzeug - INFO - 10.0.1.2 - - [15/Oct/2022 19:33:57] "PUT /api/8883699a4caf11ed8288ae2c2065d762/config HTTP/1.1" 200 -
2022-10-15 19:33:57,896 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:34:00,894 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-15 19:34:01,530 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
juanesf commented 2 years ago

on my server with home-assistant version 2.0.7 still does not appear. in the last log it seems that you have not reinstalled diyHue Add-on

Br3b commented 2 years ago

@juanesf @Mevel These are the logs after fresh installation 2.0.7 It seems creating a certificate correct, but I still cant connect the app to diyhue

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue
 Emulate a Hue Bridge, add lights, sensors etc. from different vendors into one Ecosystem
-----------------------------------------------------------
 Add-on version: 2.0.7
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.2  (amd64 / qemux86-64)
 Home Assistant Core: 2022.10.4
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue created.
Your Architecture is = amd64
No serve HTTPS
2022-10-16 18:06:23,842 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-16 18:06:23,842 - configManager.argumentHandler - INFO - Host MAC given as ae2c2065d762
2022-10-16 18:06:23,843 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-16 18:06:23,843 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-16 18:06:23,843 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-16 18:06:23,843 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-16 18:06:23,847 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Host MAC given as ae2c2065d762
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Debug logging enabled!
2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Generating certificate
Generating an EC private key
writing new private key to 'private.key'
-----
touch: /opt/hue-emulator/config/cert.pem: No such file or directory
2022-10-16 18:06:23,910 - configManager.argumentHandler - INFO - Certificate created
2022-10-16 18:06:23,913 - configManager.configHandler - INFO - Config loaded
2022-10-16 18:06:24,101 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2022-10-16 18:06:24,102 - services.remoteDiscover - INFO - Starting discovery service
2022-10-16 18:06:24,106 - services.stateFetch - INFO - start lights sync
2022-10-16 18:06:24,107 - services.ssdp - INFO - starting ssdp...
2022-10-16 18:06:24,108 - services.ssdp - INFO - start ssdp broadcast
2022-10-16 18:06:24,109 - services.mdns - INFO - <MDNS> listener started
2022-10-16 18:06:24,110 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-16T16:06:23Z', 'data': [{'children': [], 'grouped_services': [{'rid': 'f13e5b44-a796-437b-a206-8d1ca0a57431', 'rtype': 'grouped_light'}], 'services': [{'rid': 'f13e5b44-a796-437b-a206-8d1ca0a57431', 'rtype': 'grouped_light'}], 'id': '2231f129-e043-5ae9-a5ee-5317c8e611c1', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': 'de28e71a-5f6d-4fb6-9e11-0ba7bbffd754', '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
2022-10-16 18:06:24,124 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-16 18:06:24,124 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
2022-10-16 18:06:24,187 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,192 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,196 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,199 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,203 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,206 - werkzeug - INFO - 10.0.1.28 - - [16/Oct/2022 18:06:24] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:24,587 - werkzeug - INFO - 10.0.0.3 - - [16/Oct/2022 18:06:24] "GET /api/config HTTP/1.1" 200 -
2022-10-16 18:06:25,712 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-16 18:06:25,767 - werkzeug - INFO - 10.0.1.2 - - [16/Oct/2022 18:06:25] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:28,275 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-16 18:06:31,766 - werkzeug - INFO - 10.0.1.2 - - [16/Oct/2022 18:06:31] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:32,013 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-16 18:06:33,166 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-16 18:06:33,171 - werkzeug - INFO - 10.0.0.4 - - [16/Oct/2022 18:06:33] "GET /description.xml HTTP/1.1" 200 -
2022-10-16 18:06:35,419 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-16 18:06:36,221 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.3
2022-10-16 18:06:37,223 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.3
2022-10-16 18:06:38,033 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
Mevel commented 2 years ago
> 2022-10-16 18:06:23,848 - configManager.argumentHandler - INFO - Generating certificate
> Generating an EC private key
> writing new private key to 'private.key'
> -----
> touch: /opt/hue-emulator/config/cert.pem: No such file or directory
> 2022-10-16 18:06:23,910 - configManager.argumentHandler - INFO - Certificate created
> 2022-10-16 18:06:23,913 - configManager.configHandler - INFO - Config loaded

Looks like the same error, I will try to replicate it.

Mevel commented 2 years ago

can you check again by reinstalling v. 2.0.7 ? @Br3b

Br3b commented 2 years ago

@Mevel Hey there, still not able to touch the file

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: diyHue
 Emulate a Hue Bridge, add lights, sensors etc. from different vendors into one Ecosystem
-----------------------------------------------------------
 Add-on version: 2.0.7
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.2  (amd64 / qemux86-64)
 Home Assistant Core: 2022.10.4
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue created.
Your Architecture is = amd64
No serve HTTPS
2022-10-18 11:38:33,175 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-18 11:38:33,175 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-18 11:38:33,175 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-18 11:38:33,175 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-18 11:38:33,175 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-18 11:38:33,176 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Debug logging enabled!
2022-10-18 11:38:33,181 - configManager.argumentHandler - INFO - Generating certificate
Generating an EC private key
writing new private key to 'private.key'
-----
touch: /opt/hue-emulator/config/cert.pem: No such file or directory
2022-10-18 11:38:33,229 - configManager.argumentHandler - INFO - Certificate created
2022-10-18 11:38:33,231 - configManager.configHandler - INFO - Config loaded
2022-10-18 11:38:33,440 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2022-10-18 11:38:33,441 - services.remoteDiscover - INFO - Starting discovery service
2022-10-18 11:38:33,442 - services.stateFetch - INFO - start lights sync
2022-10-18 11:38:33,445 - services.ssdp - INFO - starting ssdp...
2022-10-18 11:38:33,446 - services.ssdp - INFO - start ssdp broadcast
2022-10-18 11:38:33,447 - services.mdns - INFO - <MDNS> listener started
2022-10-18 11:38:33,459 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-18T09:38:33Z', 'data': [{'children': [], 'grouped_services': [{'rid': '94101b01-6594-4f7d-a2ff-64914269bf16', 'rtype': 'grouped_light'}], 'services': [{'rid': '94101b01-6594-4f7d-a2ff-64914269bf16', 'rtype': 'grouped_light'}], 'id': '33a9c618-92fe-53c6-b782-2b7dfbf90d2c', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': '99857382-f921-443c-82ef-c8505948d5a4', '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
2022-10-18 11:38:33,462 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-18 11:38:33,462 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
Br3b commented 1 year ago

@Mevel Any Update yet? Greetings

Br3b commented 1 year ago

@Mevel @juanesf I could capture an error message when connecting. This might help. Thanks IMAGE-1