Hi all.
I’m a beginners in Openhab.
I’m trying to reading pressure value from KNX sensor, but I see a wrong value. I configured file .things as below
Number KNXTempUmidity_Pressure “Pressure [%.2f hPa]” {knx=“14.058:0/1/7”}
From ETS I see the correct value, which was 96880 Pa, but in OpenHAB I see a wrong value 5071.36.
[.internal.handler.DeviceThingHandler] - Thing ‘knx:device:xyz’ received a Group Write telegram from ‘1.1.3’ for destination ‘0/1/7’
[.internal.handler.DeviceThingHandler] - Thing ‘knx:device:xyz’ processes a Group Write telegram for destination ‘0/1/7’ for channel ‘knx:device:xyz:403’
[g.knx.internal.dpt.KNXCoreTypeMapper] - toType datapoint DPT = 9.001
Is there anything wrong in my .things file configuration? Or something was wrong in KNX binding installation?
All other items works.
There is a feature in OH 2.3 that lets you define types for numerical values so, for example, if your sensor only reports temp in F, you can easily and relatively transparently transform that value into C. @vzorglub, you’ve been collecting information about how to work with these units. I couldn’t find anything about how to use them in Item labels. Can you advise?
Number KNXTempUmidity_Pressure “Pressure [%.2f Pa]” { knx=“14.058:0/1/7” }
Your Sitemap:
Text item=KNXTempUmidity_Pressure label=“Pressure [%.2f hPa]”
Will convert the Pa into hPa in the sitemap
Although there is a problem with unit prefixes at the moment it should still work with SI units like the Pascal (1N/m2)
I configure my sitemap like that example, but nothing changed I see a wrong value 5071.36 hPa in place of correct read from ETS which is 97030 Pa (or 970.30 hPa).
I think isn’t a problem how value was displayied, but how openhab manage datatype: I’ve configured DTP 14.058 but it uses 9.001. Maybe something was wrong in KNX binding installation…