I have a strange issue with my sitemaps since migration to OH4. I initially posted this under ‘sitemaps’ but I guess it is app related so I moved it to here.
I have some number items linked to zWave thermostats which I use to set the desired temperature. Initially they looked like this:
Number Heizung_Buero_Solltemperatur <temperature> (Heizung_Buero_Group) { channel="zwave:device:cef8b92dc5:node16:thermostat_setpoint_heating" }
After upgrade to OH4, my system did not write back the values to the thermostats. I could change them in the sitemap, but they immediately jumped back to the previous value.
After some research I changed the definition to Number:Temperature
and that fixed the issue but only for web access to the sitemap, not for the Android app (v 3.7.0). The app does allow me to increase the temperature, but not in half degree steps as defined in the sitemap, but only in full degrees. And it does not allow me to decrease the temperature via the ‘down’ button, only via the slider.
If I remove the step=0.5 from the sitemap, I can also decrease the temperature via button.
So it seems to be an issue specifically with a number:temperature in a sitemap using step=0.5 on the (android?) app.
There must be something going on with the item state of your item. Can you run curl http://<server IP>:8080/rest/items/Heizung_Buero_Solltemperatur and provide the output?
I guess this is the problem: e.g. 19.5 °C isn’t expressable without decimal digits The app uses that state description to format the commands sent to the server.
I’m not sure how to fix that (default) state description for items for .items files, though
Edit: I’ll also have a look whether we can use the widget state description for this purpose in the app. There’s a slight conceptual issue with that, though: the command is sent to the item, not the sitemap widget.