frankly that’s awesome. I’m glad someone is finally doing it.
I tried getting it attached to my hass.io, did, but would rather use smartthings.
I really appreciate this.
I put a post on smartthings reddit to try and get this attached as a device handler.
Hopefully we can. I just want to control it so that it doesn’t go off if someone is there, then goes back to the dock if someone comes home.
It’d be cool to be able to have it resume after docking so that it goes during a certain time, but that gets more complicated.
Thanks for the start though man. Really appreciate it.
Huge thanks for getting this started. Personally I want to be able to set a routine off in ST using Alexa voice commands! Annoyingly the Alexa Xiaomi skill is for the Singapore server and I need to keep mine to UK. Adding this bad boy to ST would be so good…so I hope someone can turn it into a DH Thanks for all your work though.
And since I don’t have the first clue about writing DH, I’m wondering if I couldn’t use WebCoRE to calculate and submit the necessary JSON (I’m guessing) requests to make this work with no intermediary.
The only problem I can see with that is its a horrible hack with no way to retrieve status, only turn on/turn off.
Not currently. Python-miio is needed because it calculates and submits the data in the correct form to Xiaomi. In theory, that part might be able to be done in WebCoRE. It’s really an atrocious hack though.
And technically it would still require an intermediary, called WebCoRE…
No, it would require nothing more than ST and WebCoRE. In theory you’d just copy the piston, add in the IP and token of your vacuum, and you’d be able to tell it to start and stop.
I have no idea if I can even make that work though. LOL
Install and configure Docker on your control PC. Setup WebCoRE.
From the Docker files, open express.js and insert the IP address and token of your vacuum. Build your Docker container. This container is still large because I’m still trying to understand how Docker works (~500MB). Deal with it!
Run your newly created container (forwarding port 3000 through the host). Make sure that you can browse to http://localhost:3000/ and get a reply.
Isn’t there an integration with smartthings that we can use to create a device that way? Just trying to figure out why my computer needs to run a program to have this work…
If there was, I wouldn’t be using Docker… The Dockerfile sets up the Express web server, which takes calls from WebCoRE and then executes python commands locally to activate the vacuum.
As an alternative, you could install Home Assistant. Either way, you’re going to have to install a third party tool.
do you have any tips on this?
im using the Mitoolkit
I am using the android/windows method
so i download mitoolkit, plug in my phone etc… click on extract token, get the prompt for do not enter password
at the end it says
"there seems to be an error with the backup, it is way too small"
I kept running into the error. Do you have your adb settings set up too?
cause you also have to authorize it.
Go into your settings, find your versions, click build like 5 to 10 times
to open developer options,
go into developer options and turn on USB Debugging. the next time you plug
your phone in and run the program you should have to click like yes or
accept to allow your computer to connect.
I’m pretty sure it’s your usb debugging that needs to get fixed.
if that doesn’t work… I would go back to a version that was like 1.5 to
extract the tokens.
I have two and had to do this too.