The only ‘smart’ thing in my house I can’t automate is currently the Roborock S5 Max. I had success for a while by using Assistant Relay and send commands to my Google Assistant (the vacuum is supported in Google Home), but the relay is too unreliable and stops working after a few days.
I understand I need the token, which I got using the token extractor tool. When I try to add the Xiaomi Miio integration it asks for the API token, but it returns ‘Failed to connect’. Then you get the option to add the device model, and it works! However, you can put in any token and it still adds a robot vacuum. The resulting entity (roborock.vacuum) returns ‘Unavailible’.
The vacuum is currently controlled using the Roborock app.
Yes, it’s connected and controls fine via the app or Google Assistant.
The IP address is correct, tried both static and normal IP-settings in the router. HA doesn’t ask for the IP-address if i choose the discovered integration, only if I add it manually, but the result is the same either way.
How did you retrieve your token?
Edit:
Logger: homeassistant.components.xiaomi_miio.device
Source: components/xiaomi_miio/device.py:43
Integration: Xiaomi Miio (documentation, issues)
First occurred: 1:29:45 PM (1 occurrences)
Last logged: 1:29:45 PM
DeviceException during setup of xiaomi device with host [IP-address]
Solved it. Turns out the token was old. I removed the vacuum from the Roborock app and added it via the Mi Home app. Then I retrieved the token again and it worked!