Voice Assistant PE unable to connect to Docker HA

New device arrived today. Excited to get it hooked up but I’m having issues.
I’ve read the other threads similar to my issue but I’m not getting past this point

The voice assistant is unable to connect to Home Assistant

I have Home Assistant installed on linux box inside a docker container with bridge networking.

  • the container is exposing port 8123
  • Outbound is allowed
  • inbound from 192.168.0.0/24 to port 8123 is allowed

I have the device on my network and it’s been given an IP by the router
I have added the VA device to ESPHome using that IP

When I try to go throught the ESPHome > Setup Voice Assistant wizard I ge tthe “The voice assistant is unable to connect to Home Assistant” error with the sad robot.

I have edited my “Settings > System > Network” to have the external web address box empty and the local set for “Automatic” to false and the Local address to be the static LAN IP of the linux box.

I’ve run out of ideas for what to do. Any suggestions? HA can reach the device (I’m able to change the LEDs etc) The device doesn’t appear to be able to know how to reach HA. HA is routable and reachable from other wifi devices on the same network.

I think it is not enough to expose the HTTP port. Start by trying with --network=host

Thanks! I’ll give it a shot thanks. there’s got to be a bug in this process somewhere where the local network info isn’t be respected. I’m reasonable at doing networking in my docker lab

Sadly that wasn’t it. ESPHome can clearly send messages to the Voice Assistant device (lots of flashing lights) but I can’t figure out why the device can’t play media from HA. There are no logs or warnings. I’m using HTTP not HTTPS internally. The container is now using host networking.

Does anyone know how to get more verbose understanding of what’s going on? This is all I have to go on.

It took cycling things a few times and destroying the docker container and relaunching it + using host networking. Thanks @traysh for the help!