I am trying to get discovery working. I have it set it up in configuration.yaml, but nothing is discovered. Looking at the troubleshooting guides it states that home assistant needs to be on the same network segment to do mDNS discovery.
Looking at the IP address from inside my home assistant install it is clear that it is not on the same network as it is running inside a docker container and has a 172.30.33.X address. The suggested solution is to run the docker image with the --net=host parameter.
The pre-built image doesn’t seem to allow me to get access to the host machine which is running the docker container. When I ssh in I am inside the container and so I can’t change the parameters to run the container as I would need to do this from the host machine. Even logging in to the tty locally puts me inside the container.
You set network mode when deplyoing the container using the docker cli or some orchestration tool like docker-compose, docker-swarm or kubernetes. What tool do you use?
As I say, I have used the default image (Linked in my first post), which contains both the base OS and the docker image. You just write the whole image to the SD card, put it in the Pi and power up - You have a running HA. I believe it is security hardened, which may be why they don’t want you to get access to the host.
So I haven’t installed the docker image of Home Assistant myself on top of Raspbian. If I had then I would have access to the host OS (Raspbian) and would be able to add the --net=host to the docker command line, but I can’t get access to the host OS.