I recently faced an issue with my Xiaomi vacuum cleaner where it wasn’t being recognized by Home Assistant despite everything being set up correctly. The logs showed errors like ‘Unable to discover the device at address 192.168.0.102’ and warnings about fetching the state. I was puzzled because the vacuum worked perfectly outside of Home Assistant.
After some research and reaching out to the community, I discovered that the problem might be related to network configurations or firewall settings. I decided to test the connection using the command line with the miio tool, which confirmed that the device was unreachable.
I then checked my router settings and realized that the vacuum’s IP address had changed due to a DHCP lease renewal. Updating the static IP in my router’s configuration solved the issue. To prevent this from happening again, I set up a static DHCP lease for the vacuum’s MAC address.
Now, the vacuum integrates seamlessly with Home Assistant, and I can control it through automations and the frontend. This experience taught me the importance of checking network configurations and static IPs when dealing with IoT devices. A huge thank you to the community for their support and resources! #Xiaomi HomeAssistant SmartHome