Very nice! I just started a much simpler widget for the moment
I implemented the commands as command options, that quite easy and space saving in the widget.
However I need to check my vacuum again, because the one thing that bothers me in OH is that I don’t have the rooms there. Might be a model issue though, as my rooms don’t have names in the official app either. Or how do you get the room ids?
When I understand that right, with the command options there is only one room at a time - or is it possible to have multiselect with it?
I just spent a while sending commands via rule editor and watched the official Xiaomi app which room would be highlighted on the map. So it was just try and error for me.
If I understand that right, it depends on the version of your Roborock. With the S6 you can send it to one room with app_segment_clean[16] as you already mentioned, or to multiple with app_segment_clean[16,19,20,24].
You can try if get_room_mapping returns something valueable for you. I received a response but was unable to understand how it works together with the map / other features - thus I just tried every id like mentioned before.
Found some time to work on the widget. New version 1.3.0 is on github available.
So far I managed to implement everything without using proxy items, rules or anything external. But depending on the activity item to change the UI while running is really slow so I might need to do that in the upcoming version.
Changes
Using displayState instead of state for actions and power
When in dock, it indicates that it’s charging
Hiding room selection on activity (takes a while, depends on the activity item)
This is pretty cool! I could use this for my s6 maxv… Hey, Do you want me to translate this?
Just need you to make it clear what needs translating on the front end for the users and I’ll happily do it.
Have you done translations of widgets before? I’m currently thinking about a proper way to do it.
Could implement all labels in a map, but inside the widget is quite difficult to achieve that.
Otherwise I could just add all labels as properties and allow each user a translation.
Definitely go with labels as properties and just allow users to map what they want with that. This will allow everyone to map any value or translation.
More effective that way
Hello, sorry for my english… ich schreib es doch lieber auf deutsch kann mir jemand bitte behilflich sein mit dem Widget. Hab einen S5 Max. Widget ist auf der Page aber bekomme keine Daten übermittelt an das Widget. Thing Items vom Sauger wurden alle angelegt und funktionieren bzw. geben Daten aus. Ich habe als ItemPrefix den Namen von Einstellungen\Items RoborockS5Max_ genommen
I prefer to write it in German: slight_smile: can someone please help me with the widget. Have an S5 Max. Widget is on the page but I do not get any data transmitted to the widget. Thing items from the vacuum cleaner were all created and work or output data. I took the name of Settings \ Items RoborockS5Max_ as the ItemPrefix
How can you change the FrameWork7 icons to Material icons?
I tried changing: iconF7: =loop.roomChunk.icon, but that didn’t work. Can you give an example?
This Widget look great! Can you please explain how to use it?
I created a new Widget in OpenHab (“Developer Tools” → “Widgets”) and copied the text from the yaml-File into that form. How can I get it visible within the HUBPanel?