[SOLVED] Split Item Result in Temp

Nope,
It only updates when the binding updates the value…

image

This updates immediately, but you can’t format the number of decimals.

Number:Temperature Temp1 "yyy[%.1f °C]" <temperature>

hc_331

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]"

hc_364

.

Sitemap converts into another unit.

.

hc_351

.

The first 5 examples are ok, the second 5 are not

.

hc_352

hc_353

hc_354

hc_355

hc_356

hc_357

hc_358

hc_359

hc_360

hc_362

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.