Xiaomi Roborock Integrations/Automation Ideas?

I'm using Google Assistant Relay to trigger an S5 to start cleaning when we leave the house. It works fine but it'd be nice to have a more direct integration.

I've been really impressed with the S5 and it's got the partners approval too.

This is sort of on my todo list but not really. At the end of the day you don't need status and you can start it from GAR on a schedule or event. I'd rather first tackle my GMG and then my Anova so that the house can tell me when my cooks are done.

I'd recommend just using Google Assistant Relay (v3) with obie's v2 driver and call it good as others have suggested.

FWIW I have the Roborock S5 and am pretty dang happy with it. I just use the Xiomi native app which is pretty good, but not integrated with anything.

That said, if you want me to try some things out with mine, let me know. So long as I don't completely mess up my Roborock, I'm happy to try things out. (You know how long it took me to convince my partner that we should get one?)

Anyway, happy to try to help.

I have the Roborock S5 Max and I use Mi Connector on Hubitat. I had used it on SmartThings and simply migrated it all to Hubitat. Works great. I can control almost every function on the S5 Max. I also added a virtual switch and a bunch of custom routines to Alexa to start and stop vacuuming and return the vacuum to the dock. Now I can say "Alexa, start cleaning, start vacuum,...) to get things going.

The author didn't have the S5 Max (model s5e) added so I had to edit his docker file to get it added. I told him and he might have added it now though.

Interesting, can you elaborate on how to do this? Do I need to have a Mi Hub?

Search works decent on the forum :wink:

Looks like for robot vacuums this is definitely the way to go.

Looking through this current list of very diverse and useful compatible products with the Miji hub, Iā€™m very tempted myself. I have been extremely happy with the Aqara hub. It takes these inexpensive Xiaomi devices and makes them 100% solid. Absolutely no drops, no faltering. So very much worth the effort and minor investment.

Do you think the S5 Max is worth the money? Considering getting one as like the mop features and we have all hard floors downstairs and carpets upstairs. Did you get it working with Hubitat? I'd like to tie it to HSM modes to trigger cleaning :slight_smile:

I like it. I haven't used the mopping much (just twice) but it worked decently when I did and got a lot of dirt.

I have it working great with Hubitat. I use Mi Connector running on a raspberry pi. I can schedule it and control it from Hubitat, I was also able to add to Alexa using Hubitat and use routines so I can say "Alexa, clean house" etc.

I'm not sure I'm a good judge for you, as I have not yet used the mopping feature. But I can tell you the S5 now lets you make "rooms" in the app and you can clean by room. So, theoretically you could pick where to mop and not mop. However, creating the rooms is not very easy to do through the app. It seems besides some water capacity and some mopping functionality, it's not much different. So, for me, not worth it. I do have areas which I would mop that are different than those I would not mop all on the same level, but unless they've done a better job on the MAX to differentiate those, I don't think it will help. And since it's the same app, it's probably the same difficult experience, especially if your rooms are not perfectly square.

I did not hook mine to HE as I did not want to buy the connector.

I hope this helps!

Hey, I'm interested in setting this up as well, do you need an additional xiaomi hub in order to use Mi-Connector with the S5 Max? How do you set up your raspberry pi?
Thank you very much

No. You don't need a xiaomi hub (and I don't have one). You do need a server to run mi-connector and most people use a raspberry pi for that.

Instructions are here:

2 Likes

You can create no-mop zones (similar to no-go zones) and it won't make those areas. Not sure why you won't create rooms though. That's very useful

1 Like

So Docker, Mi-Connector, MariaDB is running on RPi, the token registered successfully and the Roborock is updating battery status to MariaDB.
Now I am stuck in die Mi Connector App on Hubitat, it is not getting the device.

The log on the Mi Connector (RPi) shows:
2020-06-07 10:33:10 error Get Data from ST is failed....

This happens every 4 Seconds, so the Hubitat/ST App seems to communicate with the RPi and is trying to get Data. Is there a different App than v.0.0.34 specifically for Hubitat? Do I need the Access Token for the MiConnector App on the RPi to communicate with the Hubitat App? Am I missing drivers?
I don't really have an angle right now, maybe you have encountered something similar. Thank you for your time.

I didn't say I won't create rooms, I said it's difficult to do in the app, especially if your rooms/zones are not perfectly square. Also, the number of rooms you can create is limited to like 10 or something so you are limited in what you can do with that feature.

Hey mate, how did you get the token from your S5Max?

I have tried a few methods found on google but I can't seems to find one that work. Can you link the instruction page that you used?

Had to download an older version of Mi Home.

Try the 2nd post on this reddit page:


https://www.apkmirror.com/apk/xiaomi-inc/mihome/mihome-5-4-49-release/

2 Likes

So you need to make a few updates to Mi-Connector because it uses ST by default. Get the app URL, access token and app ID from the Hubitat Mi Connector app. Then got to the settings in your Mi-Connector webpage (192.xxx.xxx:30000) and under "Smartthings Settings", paste in the values from the Hubitat app.

For the Roborock vacuums, you also need drivers. There are 2 drivers ("Xiaomi Vacuum" and "Xiaomi Vacuum2"). I don't remember the differences anymore but I know the Roborock S5 Max and S6 need the vacuum2. i think the S5 uses vacuum.

The drivers are here:

Cheers

1 Like

Thank you very much for the help, all the software is in place but I am not sure about the access token, can I use the same as listet in the Maker API App?. I tried that but I am still getting the Error in the Mi Connector App on RPi and there are no devices in the App on Hubitat.
Here are the MiConnector Settings so far:
App URL:
http://192.168.1.2/apps/api/
App ID:
2028
Access Token:
from Maker API
XXdeXX53-XXXX-XXc5-afe2-XX70dec0a053

What's the Maker API?

You need to add the device to Mi Connector running on the rPi. Click "Manage Devices" -> "Device List" -> "Add". Put in the IP address of your Roborock and the vacuum's token.

Is your Hubitat's Mi Connector App also connected to the rPi? That's the instruction I gave in the previous post GitHub - fison67/mi_connector at hubitat

@yototogblo thanks so much for your help. I managed to get the token using the old version of MiHome app, and added my vacuum to Mi Connector.

Does your vacuum still works with Roborock app? Mine seems to show not connected anymore as it is connected to the MiHome app. And if I re-pair the vacuum to Roborock app it generates a new token which breaks connection with the Mi connector.

Is that how it is or am I missing a step somewhere?