I have what seems to be a simple question. What is the “right” place to convert a temperature from an Aeotec Multisensor 6, originally in Centigrade to Fahrenheit? I have spent about a day on this and so far, no success. Clearly I don’t understand something.
Seems to me my options are:
- Set the sensor to ˚F.
- Do the conversion in the Item
- Do the conversion in the Sitemap
Option #1 Set the sensor to ˚F-
Aeotec’s Engineering Sheet for the Multisensor 6 lists Property 64 (0x40) as "Set the default unit of the automatic temperature report in parameter 101-103. 1 = Celsius. 2= Fahrenheit.
Seems simple. I go to HABMin, find the Multisensor, find Property 64, set it to ‘2’, hit Save. No change. Event log still shows temperature report is in ˚C. Also, I have two of these, and one with older firmware does not support this option. So I need to figure out how to flash the firmware. Not a big deal, but perhaps I should be using Option #2 or Option #3 .
Option #2 Do the conversion in the Item
Hum. I have been using OH since 1.x, so doing the conversion in a .items file would be no problem. Since OH 2.x, I have tried to do everything in PAPERUI. Maybe I should delete the Item I created when I linked from the Thing to the Item using the PAPERUI and manually create an item for this?
Option #3 Do the conversion in the Sitemap
Well, some way to go on this. I tried simply adding
[%.1f ˚F] to the sitemap label for the item. That changed the label from ˚C to ˚F, but I did not get any numerical conversion. (27.3 ˚C is now displayed as 27.3 ˚F).
Converting in the Sitemap has a downside I don’t like, which is that if I want to also use temperature-triggered rules, then I have to use ˚C in the rules, or convert there too. So to me, either setting the Multisensor to deliver in ˚F, or doing the conversion in the Item is the way to go. But I don’t know the right way to do that in 2.x.
I read the article on Units Of Measure in the Concepts section of the documentation. Interesting, but not enough information there for me to figure out how/where to apply it.
I would very much appreciate help in not only doing the conversion, but in understanding the thinking behind your suggestion.
Thanks so much in advance.