Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: BasicUI doesn't show decimals in setpoint #462

Closed
prurigro opened this issue Jan 3, 2019 · 3 comments
Closed

Bug: BasicUI doesn't show decimals in setpoint #462

prurigro opened this issue Jan 3, 2019 · 3 comments

Comments

@prurigro
Copy link

prurigro commented Jan 3, 2019

I have multiple Setpoint values configured with step=0.5 and they work correctly in both the iOS and Android apps, but in BasicUI the value always appears as a whole number. Clicking the up arrow (for example) shows in the console that it's moving from 22 to 22.5, but in the UI the value stays 22. Clicking up again increases the value from 22 to 23 when it actually moved from 22.5 to 23.

This was the case in openhab 2.3 and continues to be the case in 2.4 (I'm not getting console output anymore in 2.4 or I'd post a screenshot).

In case it helps, here's how I've configured one of the items in my sitemap:

Setpoint item=Thermostat_Heating label="Heating Temperature" icon="heating" step=0.5 minValue=10.0 maxValue=30.0

Let me know if you need any additional information!

@prurigro
Copy link
Author

prurigro commented Jan 4, 2019

Apologies, I realized that while the iOS app shows the decimals correctly, the Android app also doesn't show the decimal place. I'm less clear as to whether this is a configuration issue or not now...

@prurigro
Copy link
Author

prurigro commented Jan 4, 2019

It turns out the issue was not setting a formatting string in my .items file. I had to change:

Number   Thermostat_Heating       "Heating Temperature"   <heating>        (Thermostat)   { channel="zwave:device:2xfwekls:node1:thermostat_setpoint_heating" }

to

Number   Thermostat_Heating       "Heating Temperature [%.1f °C]"   <heating>        (Thermostat)   { channel="zwave:device:2xfwekls:node1:thermostat_setpoint_heating" }

@prurigro prurigro closed this as completed Jan 4, 2019
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/problem-with-decimal-places-in-setpoints/152401/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants