diyhue / hassio-addon

35 stars 11 forks source link

Certificate can't be generated on first boot. (Supervisor) #20

Closed XXBrain closed 1 year ago

XXBrain commented 1 year ago

Hello.

I just started with a fresh HA Supervisor installation to use this stunning peace of software. Unfortunatly DIY Hue fails to create the cert.pem on startup.

Steps to reproduce:

See the attached log. It complains about a missing faketime and afterwards the crt and key files.

Home Assistant 2023.10.0 Supervisor 2023.10.0 Operating System 10.5

diyhue.log

Do I miss something?

XXBrain commented 1 year ago

I tried to install libfaketime inside the container, wich takes forever. Signatures of repsitories are not trusted and after each restart the container seems to be resettet and libfaktime is missing again.

mariusmotea commented 1 year ago

I think we need to update something to HAOS manifests. @Mevel any idea?

thommy86 commented 1 year ago

Is there a workaround for this? The curl option is giving me an empty response:

curl "http://mariusmotea.go.ro:9002/gencert?mac=00:11:22:33:44:55" -v

XXBrain commented 1 year ago

I've created a cert within a docker container (version 922) with its own ip, using the same mac address and replaced the file in the hassio addon config folder with that one.

OT: I would propose to pair the Philips Hue with that docker container, too and copy the login entry form the config file. Use 922. I could not pair with the current version, because the app asks for a second push after finding the diyHue bridge, wich one could not press.

sosheskaz commented 1 year ago

Also seeing no faketime binary.