Missing docker-compose exemple
tetienne opened this issue · 5 comments
Is your feature request related to a problem? Please describe.
N/A
Describe the feature that you would like to be added
I would like to use this add-on as a classic docker image as I’m not using hass.io. It would be nice to have a docker-compose exemple to know which port to export, the expected environment variables, etc. There is even a teaser in the README.
Describe alternatives you've considered
N/A
Describe your use case for this feature
Use this add-on outsite hass.io
Additional context
N/A
Please review #78. If that has helped you, please submit a PR for others to use!
Thx I was able to apply the following configuratiom.
version: '3.3'
services:
hass-emulated-hue:
network_mode: host
environment:
- HASS_TOKEN=xxxxxx
- HASS_URL=http://192.168.2.148:8123
image: 'ghcr.io/hass-emulated-hue/core:0.2.9'
Hue emulator is well detected by the official iOS hue app, and I well got the notification within HA. Sadly, after that the hue app loop on the message "Connection...". I’m not able to find any logs errors.
❯ docker-compose logs -f
Attaching to diyhue_hass-emulated-hue_1
hass-emulated-hue_1 | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
hass-emulated-hue_1 | [s6-init] ensuring user provided files have correct perms...exited 0.
hass-emulated-hue_1 | [fix-attrs.d] applying ownership & permissions fixes...
hass-emulated-hue_1 | [fix-attrs.d] done.
hass-emulated-hue_1 | [cont-init.d] executing container initialization scripts...
hass-emulated-hue_1 | [cont-init.d] 00-set-vars.sh: executing...
hass-emulated-hue_1 | [cont-init.d] 00-set-vars.sh: exited 0.
hass-emulated-hue_1 | [cont-init.d] done.
hass-emulated-hue_1 | [services.d] starting services
hass-emulated-hue_1 | [services.d] done.
hass-emulated-hue_1 | [20:22:31] INFO: Starting Emulated Hue...
hass-emulated-hue_1 | 2021-10-04 20:22:32,041 INFO emulated_hue.config -- Auto detected listen IP address is 192.168.2.148
hass-emulated-hue_1 | 2021-10-04 20:22:32,057 INFO hass_client -- Connected to Home Assistant ws (version 2021.9.7)
hass-emulated-hue_1 | 2021-10-04 20:22:32,098 INFO emulated_hue.api -- Started HTTP webserver on port 80
hass-emulated-hue_1 | 2021-10-04 20:22:32,124 INFO emulated_hue.api -- Started HTTPS webserver on port 443
hass-emulated-hue_1 | 2021-10-04 20:22:54,945 INFO emulated_hue.config -- Link request detected - Use the Homeassistant frontend to confirm this link request.
hass-emulated-hue_1 | 2021-10-04 20:23:06,563 INFO emulated_hue.config -- Link mode is enabled for the next 5 minutes.
hass-emulated-hue_1 | 2021-10-04 20:27:55,599 INFO emulated_hue.config -- Link request detected - Use the Homeassistant frontend to confirm this link request.
hass-emulated-hue_1 | 2021-10-04 20:28:06,563 INFO emulated_hue.config -- Link mode is disabled.
Thx for this complete example. Hope you will be able to find free time to handle the API V2.
Unfortunately, I haven't been able to work on this due to me lacking an original hue hub to decipher the new API. This still does work well with other hue apps such as hue essentials and other hue compatible apps (other than the official ones).