Closed bogorad closed 10 months ago
I can see it pinging the device (successfully) and sending some UDP data there, but nothing in return
Packets sent from the app arrive just fine:
Connected back to the same subnet as HA - works just fine. Can this be fixed?
No, this is a known property of Yeelights and some other Xiaomi IoT firmware: for security they won't talk to devices on another subnet. So you'll either need to configure your router to do NAT to the IoT subnet or connect your HASS device to both subnets.
Thank you, that's what I figured. Set up avahi-daemon to retransmit mDNS and it was fixed immediately.
I moved a MI device (
yeelink.light.color1
) to a different subnet (HA is in192.168.11.0/24
, the device is now in192.168.40.0/24
). I can ping the device both from the HA host, and from the HA container:But when I try to add the device, I get the dreaded 'failed to connect' error. The token is correct, I used the same method (the app) when I connected the device to the original network.
Any ideas why? The official Xiaomi integration fails as well - so I'm thinking maybe Xiaomi wants the devices to be in the same subnet? That would suck.
P.S. The MI home app (modified) sees and operates the device without any issues, even from a different subnet.