When i use the Mi Home App i can start him and do all the other Stuff that he know.
Both Devices are in the same wifi. I can ping the Roborock from my PC and from HA.
Any Idea whats wrong?
Edit:
Logs:
> 2020-03-28 12:01:30 ERROR (SyncWorker_15) [miio.device] Got error when receiving: timed out
> 2020-03-28 12:01:30 WARNING (SyncWorker_15) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
> 2020-03-28 12:01:41 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.xiaomi_vacuum_cleaner is taking over 10 seconds
> 2020-03-28 12:01:51 ERROR (SyncWorker_14) [miio.device] Got error when receiving: timed out
> 2020-03-28 12:01:51 WARNING (SyncWorker_14) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
> 2020-03-28 12:02:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.xiaomi_vacuum_cleaner is taking over 10 seconds
To be honest - I am having the same issue with my Roborock S5 Max - I am not sure why the problem starts, but sometimes (and for quite some time) I get the same error messages as you.
The only thing fixing this is then a home assistant restart or waiting for and undefined amount of time.
I have searched quite a lot throughout HA and Xiaomi Github repositories where this was discussed quite a lot, but I have not found the solution to my problem as the root cause is probably something else.
Hey.
finally i got it to work.
Its my fault, i used the wrong Token. I had used the home assistant xiaomi_miio manual
But with this i got only the Token for the Gateway. The Token for the vacuum is differenz.
After googling a bit i found a Xiaomi MiHome app from a russian guy thats shows the Token for all Devices connected to the App.
With this Token my Vaccum works with HA
This one.
You have to uninstall the original MiHome, install this one, login with your Mi Account (selct the right Server!) an than you can see the Token if you klick on Profile -> Share -> Shared Devices. Under the Name you can see the Token.
Hope that will help you.
here is a little tool to control the Roborock from your PC, its the fastes way to check if your Token is right
Lovely! Looks really good and I will give it a shot. Can you share it through another link? It looks like there is something wrong with the certificate on that page