Nope,
It only updates when the binding updates the value…
This updates immediately, but you can’t format the number of decimals.
Number:Temperature Temp1 "yyy[%.1f °C]" <temperature>
Fix merged - https://github.com/openhab/org.openhab.ui.habpanel/pull/310
Should fix the formatting for the dummy widget, and the icon in item pickers.
It should also format the chart tooltips properly, although I haven’t tested it because I don’t have items with UoM and persistence available.
In #1318 HABPANEL is changed for UoM. So I did a test series.
Number:Temperature Temp1 "t1[%.1f %unit%]" <temperature>
Setpoint item=Temp1
Default item=Temp1 label="t1 U[%.1f %unit%]"
Default item=Temp1 label="t1 C[%.1f °C]"
Default item=Temp1 label="t1 F[%.1f °F]"
Default item=Temp1 label="t1 F[%.1f K]"
.
Sitemap converts into another unit.
.
.
The first 5 examples are ok, the second 5 are not
.
The %unit%
placeholder is only supported in the format field, not the “unit” field.
See my remark here: https://github.com/openhab/org.openhab.ui.habpanel/pull/310#issuecomment-408122421 on why HABPanel can’t perform unit conversions.