I finally migrated my LCN setup from the v1 binding to the new binding version. @fwolter, thanks for your great contribution and all the effort you put in porting the binding. That’s highly appreciated!
I’m using text based configuration files for my OH setup (and thus also for the LCN binding). Most things work flawlessly but I have some issues with temperature values (LCN hardware: TS, GRT, and GT6/GT12) when reading variables. I always see the “native” lcn value instead of “real” degree celsius. Example: currently, it is 1231.0 °C in my home After spending some hours on this, I’m currently lost how to enable the correct unit conversion. I have tried to set the channel parameter in my things file as follows:
Thing module M075 "M75 EG Arbeit Tür (GT6)" [ moduleId=75, segmentId=0 ] {
Channels:
Number:variable#3 [ unit="°C" ]
}
I also tried these options and several combinations (e.g., with and without “Temperature”):
If the channel is just a number type channel, linking it to a Number:Temperature type Item probably will not work as you would like.
I don’t think PaperUI would even let you attempt it, but you can force bad configuration when working with files.
I think in OH3 there is an improved transform profile that will allow you to match a plain number channel, add a unit, and feed to a Quantity type Item.
LCN doesn’t reveal the unit of an LCN variable to third-party software like OH. That’s why the user needs to configure the unit manually. And that is why the Item type is defined only as Number and not as QuantityType.
But when a unit is set, the binding sends the correct QuantityType. So, I don’t know what needs to be configured in the .things file (Number or Number:Temperature). Just give it a try.
Hi Fabian,
because of my setting using these values in rules. It’s not a special reason. Keep in mind, I came originally from OH 1.8.
best regards
Ralf