Z-Wave Number:Temperatur Item Definition

Tags: #<Tag:0x00007f2fc09fe600> #<Tag:0x00007f2fc09fe4c0> #<Tag:0x00007f2fc09fe380>

Platform information

  • Hardware: Raspberry Pi 3 Model B
  • OS: Raspbian GNU/Linux 9.9 (stretch)
  • Java Runtime Environment: Zulu Embedded 8.25.0.76-linux-aarch32hf
  • openHAB version: 2.4.0 Release Build

Issue

I can’t figure out the appropriate item definition for a thing’s temperature channel.
Paper UI says:

Current temperature
zwave:device:d69f05d5:node2:sensor_temperature 
Number:Temperature

My Item definition is:

Number:Temperature Thermostat_LR_Temperature "Living Room [%.1f °C]" { channel="zwave:device:d69f05d5:node2:sensor_temperature" }

Instead of the living room’s temperature Paper UI displays: Living Room -NaN °C although the autogenerated Items displays as Current temperature 20.9 °C.
Where’s my mistake?

It’s all very like this thread

I think perhaps PaperUI control tab version of a “setpoint” isn’t too clever about handling either UoM or Items with options (set by zwave binding)

I honestly don’t know how this thread solves my issue. What should the configuration look like?
Let me clarify. Independently to what Paper UI says… My Basic UI displays the same (- °C).
My sitemap configuration is:

Text item=zwave_device_d69f05d5_node2_sensor_temperature label="Living Room [%.1f °C]"
Text item=Thermostat_LR_Temperature                      label="Living Room [%.1f °C]"

The first line with the autogenerated item displays correctly but the second one doesn’t so what am i doing wrong here?

I’m guessing you haven’t restarted openHAB (or the binding) since add/edit you items file.

I don’t think there is anything wrong with your Item definition.

For info, you need not give the label in a sitemap entry unless you want to override the label in the Item definition.

If you have got into making your own Items files, you’re probably ready to switch off simple mode and its ‘helpful’ auto workings.

You should not specofy the °C in your formating. With UOM the correct units are derived from the System.

Just use:

Number:Temperature Thermostat_LR_Temperature "Living Room [%.1f %unit%]" ....

Crazy… sudo systemctl restart openhab2.service Solved the issue, thank you!

Didn’t know that I have to do so because most of the time I didn’t notice any problems without restarting.

Thanks for the tip ([%.1f %unit%]) works like a charm as well.

Sure, I think it is in dealing with the xxx.items legacy editing method that is sometimes a bit sloppy.

It’s not strictly true that you should not specify units.

Try this in your sitemap (all the same Item)

Text item=Thermostat_LR_Temperature label="item default [%.1f %unit%]"
Text item=Thermostat_LR_Temperature label="force F [%.1f °F]"
Text item=Thermostat_LR_Temperature label="force C [%.1f °C]"
Text item=Thermostat_LR_Temperature label="force K [%.1f K]"