I really struggled to get it to work, but now I’ve reached a point where I would love to have your input on further development.
My Xiaomi Roborock S6 was one thing not controlable via OH, with that widget, I want to have room cleaning simplified.
You can find the code for it here: https://github.com/tetsuo-repo/oh3-widgets
Don’t forget that it’s still work in progress.
I can’t really help with the roomIds, I just tried ids between 16 and 24 and moved my vacuum to them one after another and mapped it finally.
What was really hard to figure out was all the javascript stuff, cause loads of functions seem not to be supported by OH - that’s why I did some horrible string concatination for command execution.
If anyone has a neat solution for that, I’d be keen to know.
Gonna focus on functions first, afterwards the look and feel.
Configuration
The configuration requires a JSON-object to set the room names and icons in this format:
[
{"icon":"bed_double", "roomId": 16, "label": "Schlafzimmer" },
{"icon":"chat_bubble_2", "roomId": 17, "label": "Wohnzimmer" },
{"icon":"dial", "roomId":18, "label": "Küche" },
{"icon":"moon_zzz", "roomId":19, "label": "Gästezimmer" },
{"icon":"drop", "roomId":20, "label": "Badezimmer" },
{"icon":"person", "roomId": 22, "label": "Gäste-WC" },
{"icon":"table", "roomId": 23, "label": "Abstellkammer" },
{"icon":"device_laptop", "roomId": 24, "label": "Arbeitszimmer" }
]
Version 1.1.0
Changes
- It’s possible to toggle buttons for multiple rooms and start cleaning afterwards.
Update to v1.2.0
Changes
- Added status info for battery and cleaning duration
- Added control button for vacuum, dock, pause, spot cleaning
- Added fan control
- Small UI improvements
- Changed configration
Resources
Latest code:
https://raw.githubusercontent.com/tetsuo-repo/oh3-widgets/main/oh3-widget-vacuum.yaml