Xiaomi Sensors/Switches not working in my Windows Docker setup

I’m running Home Assistant official container in Docker for Windows, I can control Philips Hue lights just fine, however I’m having trouble with Xiaomi Aqara.

First, HASS can see my Xiaomi Gateway and all the sensors, problem is they are not responding and after a while, they will all show “Unavailable” in status after a few hours. Also, when I try to control the Xiaomi Gateway Light, I can see in the log it says “Invalid Key”, which doesn’t make sense since I can see all the sensors (just not updating/polling). The sensors respond just fine with the Android Mi App.

I’ve read it’s a multicast issue, but I don’t know how to tackle it.

Additionally, the host I’m running Docker in, I had it working all with Python for Windows, but I want to move to Docker since it’s a more elegant setup.

Have you set you docker network type to “Host”?

Yeah, I did, I didn’t have time to troubleshoot anymore, so I just installed Debian and the Docker image just worked.

1 Like

It’s the way to go, windows might be good for testing, not for an everyday usage.