mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Deconz On Another Host? #479

Closed danieledwardgeorgehitchcock closed 5 years ago

danieledwardgeorgehitchcock commented 5 years ago

Is your feature request related to a problem? Please describe. I am running DIYHue in Docker, and due to the way it works (using default ports), I am having to run this on a separate VLAN to the rest of my Docker setup effectively creating a virtual host. Deconz currently sits in a different non-VLAN Docker network and needs to remain that way as it is linked to HomeAssistant. DIYHue appears to only look at the immediate local network to find Deconz.

Describe the solution you'd like It would be great if I could specify the IP where Deconz resides - This would also have the added benefit of users being able to use Deconz on hosts separate from DIYHue

Describe alternatives you've considered I've tried many different Docker network configurations to try and make all run nicely together but, nothing seems to work...

mariusmotea commented 5 years ago

The ip is currently hardcoded, but if you search for 127.0.0.1 in HueEmulator3.py you will find it.

danieledwardgeorgehitchcock commented 5 years ago

Can it be added to the image as an environment variable?

ghost commented 5 years ago

I'll look into adding this to the docker image, I am going to create a new issue for this in our active repo here