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 or Hue Essentials can't connect with diyHue Addon developed through Home Assistant #12

Open
Br3b opened this issue Oct 20, 2022 · 3 comments

Comments

@Br3b
Copy link

Br3b commented Oct 20, 2022

When installing the diyHue Addon through this repository in Home Assistant it can't find file "cert.pem"

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

Logs of first start:

[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-20 15:43:56,342 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-20 15:43:56,343 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-20 15:43:56,343 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-20 15:43:56,344 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-20 15:43:56,344 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-20 15:43:56,344 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-20 15:43:56,348 - configManager.argumentHandler - INFO - Using Host 10.0.0.3:80
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - Host MAC given as AE2C2065D762
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - Online Discovery/Remote API Enabled!
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - HTTPS Port Disabled
2022-10-20 15:43:56,349 - configManager.argumentHandler - INFO - Debug logging enabled!
2022-10-20 15:43:56,349 - 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-20 15:43:56,403 - configManager.argumentHandler - INFO - Certificate created
2022-10-20 15:43:56,406 - configManager.configHandler - INFO - Config loaded
2022-10-20 15:43:56,615 - functions.daylightSensor - DEBUG - Daylight Sensor: location is not configured
2022-10-20 15:43:56,615 - services.remoteDiscover - INFO - Starting discovery service
2022-10-20 15:43:56,617 - services.stateFetch - INFO - start lights sync
2022-10-20 15:43:56,618 - services.ssdp - INFO - start ssdp broadcast
2022-10-20 15:43:56,618 - services.ssdp - INFO - starting ssdp...
2022-10-20 15:43:56,619 - services.mdns - INFO - <MDNS> listener started
2022-10-20 15:43:56,631 - services.eventStreamer - DEBUG - {'creationtime': '2022-10-20T13:43:56Z', 'data': [{'children': [], 'grouped_services': [{'rid': '06c8aad5-3492-4726-a311-49ad5397d6e5', 'rtype': 'grouped_light'}], 'services': [{'rid': '06c8aad5-3492-4726-a311-49ad5397d6e5', 'rtype': 'grouped_light'}], 'id': '404ab6e0-e48e-533a-a49c-d3b5f30abea4', 'id_v1': '/groups/0', 'metadata': {'archetype': 'other', 'name': 'Group 0'}, 'type': 'zone'}], 'id': '8ee891f2-33f2-4574-98e9-39c719ec9a61', '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-20 15:43:59,139 - werkzeug - WARNING -  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment.
2022-10-20 15:43:59,139 - werkzeug - INFO -  * Running on http://10.0.0.3:80/ (Press CTRL+C to quit)
2022-10-20 15:43:59,505 - services.ssdp - DEBUG - Sending M-Search response to 10.0.1.2
2022-10-20 15:43:59,568 - werkzeug - INFO - 10.0.1.2 - - [20/Oct/2022 15:43:59] "GET /description.xml HTTP/1.1" 200 -
2022-10-20 15:44:01,080 - services.ssdp - DEBUG - Sending M-Search response to 10.0.0.4
2022-10-20 15:44:01,085 - werkzeug - INFO - 10.0.0.4 - - [20/Oct/2022 15:44:01] "GET /description.xml HTTP/1.1" 200 -
@schumi2004
Copy link

I'm experiencing the same issue. Did you ever resolved it?

@mariusmotea
Copy link
Member

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

This is a Critical error, it cannot work without the certificate. Probably there is a mount path issue?

@hendriksen-mark
Copy link
Member

do you still get this isseu with the latest version?

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

No branches or pull requests

4 participants