I initialise it using a change event on a separate switch item. Looking at the logs, I see that the item value is behaving as expected when I use the setpoint up and down controls, but in the UI it is always blank. I can’t get the number to show.
Of course, my apologies. A rule to ensure the number is initialised every time the switch is toggled.
rule "Auto Warm State Change"
when
Item auto_warm_switch received command
then
if (auto_warm_threshold.state == NULL) {
auto_warm_threshold.sendCommand("14");
}
end
I just tested with the demo sitemap and the field “Temperature” in frame “Discrete Widgets” of page “Widget Overview” and the value is correctly displayed in Basic UI.
Are you using a recent version of openHAB ?
The demo case is very similar to yours except that the item is defined in a text file and the pattern in the label is different. But it should make no difference.
Lolodomo, I tried both of those workarounds and neither worked.
Rich, I see the problem in Android app, classic UI, and basic UI. Also, I’m
running Openhab 2.0 from ~ late January. It’s the version that comes from
the Raspbian Repositories.
Please try with the demo. If you have the same issue, it is due to your old version of OH. if not, we will know that it is specific to your case.
You have no display in any UI ?!
Ok, to close the loop here, I defined the Number manually in a .items file
and it is now working just fine.
So the problem appears to be related to item creation in PaperUI in my
version of OpenHAB. I’ll just stick with manually defining them for now
since that seems to work a treat.