Adding units to an attribute

Hi,

Units within OpenRemote are for UI purposes; for something like temperature it is just stored as a number, there is no special treatment for storage, but if you want to show units in the UI then the following explains how to do it:

You can create a custom attribute on an asset and then add a Units Configuration Item, which allows you to define units using a list of strings which loosely follow the HTML internationalisation spec.

You can find currently supported unit strings in:

For example to add celsius units to an attribute:

1 Like