Unable to detect Xiaomi zigbee gateway on HA running on VM on Windows

I’ve been trying to detect my Xiaomi Mijia Zigbee gateway in HA, however cannot get it to detect.

My setup:

  • Running HA in a VM on Windows 10, using the VDI from the HA website here
  • Using the Xiaomi Mijia gateway. There are two versions - I’m using the v1 version (the Mijia - link here)

I enabled local network functions for the gateway per the instructions here
I have modified my configuration.yaml as below:

xiaomi_aqara:
  discovery_retry: 5
  gateways:
    - mac: 04CF8CA0F7F0
      key: f40bzw9xbbv0ztz5

Restarted HA, but get a message that the xiaomi_aqara component is not configured correctly. Also tried restarting the VM, and the Windows PC, and none of these resulted in the gateway being detected.

I have attached my log file.

I have a suspicion this has something to do with the fact I’m running on a VM, and I’ve read some posts about multicast not working properly, but I’m not really able to understand if this is related or not.

Does anybody have any suggestions?

thanks

I would try a non-vm first to rule out. I still have 2 Xiaomi gateways v1 running fine. I bought another one and made a rookie mistake by upgrading firmware and it renders that one useless (my key keeps changing). I am slowly switching to Wyze sense but if you’re running VM, that has its own issue as well (w Wyze sense based on first user’s report).

Yup that would be the obvious first step. Just don’t have a Raspberry Pi handy so I need to go buy one, which I will do if there aren’t any other ideas. Thx

Update: So I setup HA on a Raspberry PI 3B+. So simple wish I’d done it earlier. Unfortunately the Xiaomi gateway still can’t be detected and I’m getting the same error message. Any other ideas?