Xiaomi Roborock Integrations/Automation Ideas?

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?

That's how it is. You can only use one of the apps.

Ok, Hubitat and rPi are connected, but the drivers do not seem to work, because I am getting the following error messages:

Log Hubitat:
app:20292020-06-10 00:46:35.938 warnFailed >> Non exist DTH!!! Type >> roborock.vacuum.s5e

app:20292020-06-10 00:46:35.934 debugData >> null

app:20292020-06-10 00:46:35.928 debugTry >> ADD Xiaomi Device id=321933331, type=roborock.vacuum.s5e

Log Mi Connector:

Date Type Content
2020-06-09 22:46:38 warn ST Smartpapps does not support roborock.vacuum.s5e DTH!!!
2020-06-09 22:46:38 info Try to register device to ST >> id=321933331, type=roborock.vacuum.s5e [1/1]
2020-06-09 22:46:33 info Initialize WiFi Device >> roborock.vacuum.s5e(321933331)

I have both drivers installed ("Xiaomi Vacuum" and "Xiaomi Vacuum2")
Can I assign the driver manually even if the device is not showing up in the MiConnector App in Hubitat?

Ah, you have the S5 Max. Make sure you're using the latest version of Mi Connector on the rPi. You'd need to update the docker image. Initially, the s5e hadn't been added so I had to add it myself. Eventually, fison67 added it and I'm now back to using his.

1 Like

Ah ok, I have already installed the latest stable arm version. There is no update available. The non-arm version does not work at all.
Do you use the beta version?
Edit: modified the App Driver in Hubitat, now it works. Thank you for your help.

Ah yes... Forgot his Hubitat code only included the s5. I also had to update the app code. Glad it's working for you now.