Hey there,
i am trying to connect my mi floora plant sensors to my home assistant installation.
i am runnig HA in a docker instance on a qnap nas system and using the
–net=qnet-static-eth1
–ip=192.168.1.20
parameter so the docker container got its own ip address.
when trying to run my docker like this:
docker run --name home-assistant --net=qnet-static-eth1 --ip=192.168.1.20 --privileged -itd -v /share/Docker-Configs/homeassistant:/config -e variable=TZ -e value=Europe/Berlin --device /dev/ttyUSB0 -v /dev/bus/usb:/dev/bus/usb -v /var/run/dbus:/var/run/dbus homeassistant/home-assistant
everything works except the bluetooth connection. i cant use hcitool lescan to scan for bluetooth devices. Error message:
Could not open device: No such device
BUT, when i am using this docker command:
docker run --name home-assistant --net=host --privileged -itd -v /share/Docker-Configs/homeassistant:/config -e variable=TZ -e value=Europe/Berlin --device /dev/ttyUSB0 -v /dev/bus/usb:/dev/bus/usb -v /var/run/dbus:/var/run/dbus homeassistant/home-assistant
the bluetooth connections seems to work as i am now able to scan for devices with hcitool lescan. but i cant just connect to the docker with the hosts ip address which is problematic for other services.
i am not able to connect the host network interface afterwards:
docker network connect host home-assistant
Error response from daemon: container cannot be disconnected from host network or connected to host network
any idea?