Hypfer / Valetudo-Openhab

Stuff related to using Valetudo with Openhab
Apache License 2.0
6 stars 3 forks source link

No segments shown in "Clean Room" #3

Open GekoCH opened 2 years ago

GekoCH commented 2 years ago

thx for all the work on this widget.

I have a small problem with the "Clean Room" button. My "_Mapsegments" has this string inside "{"1":"Badezimmer klein","2":"Büro","3":"Schlafzimmer Eltern","4":"Schlafzimmer Kinder","5":"Küche","6":"Badezimmer gross","7":"Wohnzimmer"}"

However it does not display each segment to choose it, it just shows two times "undefined"

depau commented 2 years ago

https://valetudo.cloud/pages/integrations/openhab-integration.html#setting-custom-options-friendly-names-and-order

depau commented 2 years ago

I can't reproduce this issue, I just updated the widget on my openhab instance and with the changes from #2 it autodiscovers them correctly (btw, good job!). If it doesn't work for you you can try overriding them in the widget config manually as documented.

image

dicer commented 2 years ago

I had this as well at first. I added the "Map Segments" item to the model again ("Create points from thing") and it started working. I followed this: https://valetudo.cloud/pages/integrations/openhab-integration

tilman19 commented 1 year ago

Another remark: I just did my first setup with Valetudo and the preset names do not match this widget anymore. As it is stated in the documentation it did not change the names, so Cleansegments changed to Clean_segments (also Battery_status, Battery_level, Map_segments, Fan_speed, Water_grade).

Maybe this is a separate issue. Still don’t have everything working as I like. But afterwards I will hopefully find time to submit a pull request with the changed names.