So my thermostat setpoint is now a number:temperature type. And when the setpoint value is changed in any other method to a value that ends in a zero it someone gets changed or corrputed. For instance if changed from 71 to 70 in basic UI and then viewed in the iOS app it changed to being stored as 7E+1 and shows up as a 7 in the app.
Here is a view of the events. Here i changed it in the basic UI and then viewed in the iOS app then chagned the value back in the basic UI without refreshing the page. A refresh of the basic UI page would revert the setpoint value to 60.
2018-07-30 13:54:41.001 [ome.event.ItemCommandEvent] - Item 'HVAC_CoolSetPoint' received command 71 °F
2018-07-30 13:54:41.003 [vent.ItemStateChangedEvent] - HVAC_CoolSetPoint changed from 70.0 °F to 71 °F
2018-07-30 13:54:44.602 [ome.event.ItemCommandEvent] - Item 'HVAC_CoolSetPoint' received command 70 °F
2018-07-30 13:54:44.607 [vent.ItemStateChangedEvent] - HVAC_CoolSetPoint changed from 71 °F to 70 °F
2018-07-30 13:54:46.489 [vent.ItemStateChangedEvent] - HVAC_Operating_State changed from 0 to 2
2018-07-30 13:54:47.037 [vent.ItemStateChangedEvent] - HVAC_Fan_State changed from 0 to 1
2018-07-30 13:55:13.698 [ome.event.ItemCommandEvent] - Item 'HVAC_CoolSetPoint' received command 71 °F
2018-07-30 13:55:13.704 [vent.ItemStateChangedEvent] - HVAC_CoolSetPoint changed from 7E+1 °F to 71 °F
What formatting (if any) strings are you using in your item/sitemap definitions for HVAC_CoolSetPoint? Try using “%.1f °F” so it always shows a decimal point (and isn’t converted to a string).
Which version of openhab are you running? I seem to remember an issue in a previous build where the step setting had to be a non-integer value (I had mine set to 0.9), otherwise strange things were happening to the setpoint value. If that’s the case, upgrade to the latest version (or change the step=1 to step=0.5 or similar as a workaround).
I’m running 2.3. I’ll change the step to 0.5 to see if that changes anything. But I also see this issue when the temperature is changed directly to anything with a zero via a rule.
If it continues happening after the change, consider opening an issue on the project’s Github page (UoM are a new addition since 2.3, so there’s a possibility you’ve identified an issue that got through testing).