eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
221 stars 60 forks source link

Docker Container and Multiple BG1 #92

Closed cgorms closed 3 years ago

cgorms commented 3 years ago

Hi @eschava

I've used your dockerfile and created a working container. I'm running another container for eclipse-mosquito, when I perform a direct connection to a device it works. However, when I set the mqtt.conf file to multiple_lookup it doesn't discover any devices on my network and I receive the following error 'ERROR No Broadlink devices found'.

Do I need to do something to my docker container?

eschava commented 3 years ago

Sorry, I've never used Docker container, this configuration has been created by one of the users @psyciknz maybe you could help?

cgorms commented 3 years ago

No worries @eschava fingers crossed @psyciknz can help 👍

cgorms commented 3 years ago

I'm found a solution. The docker container running Broadlink-mqtt needs to use the host network not bridge network.

psyciknz commented 3 years ago

Glad you solved it. Another option if needed is the docker container can use macvlan....which means that container gets a new IP address of its own (or in my case, I put it in my iot network where my broad link devices exist)