Homeassistant.local not working through docker

Hi all!

So I have a rpi5 that is running rpiOS on Debian and on that I have docker running Home Assistant. Since I have gone the Debian route homeassistant.local does not work and only when I type in the IP Address with the port it works and I need homeassistant.local to work in order to Authorise Xiaomi Home integration since there is no way I can tell the integration to listen to the IP instead of homeassistant.local:8123.

Does anyone know how to resolve this issue?

You would need to set up an MDNS reflector in docker. Unfortunately I have no experience with that, so you have to search around these forums or wait for someone with more experience to reply.

However, there are 2 ways you should be able to use to get around this.

  • Don’t click the MY shortcuts in the docs and instead add the integration manually from the integrations page in HA. Steps to do this are under the Manual Configuration Steps on that page.
  • Click the Add Integration to MY in the docs, then edit the MY path in the “your instance url” page. I just tested the below by changing mine from homeassistant.local:8123 to 192.168.1.10:8123 and it worked just fine: