openhab-docs/_transformations/scale
John Cocula 917f13ce60 [Add-ons] Add transformation docs (#357)
Signed-off-by: John Cocula <john@cocula.com>
2017-03-02 16:13:47 +01:00
..
readme.md [Add-ons] Add transformation docs (#357) 2017-03-02 16:13:47 +01:00

readme.md

id label title type description since install
scale Scale Scale - Transformations transform Transform the input by matching it between limits of ranges in a scale file. The input string must be in numerical format. 2x auto

{% include base.html %}

Scale Transformation Service

Transform the input by matching it between limits of ranges in a scale file. The input string must be in numerical format.

The file is expected to exist in the transform directory, and should follow the format given in the example below.

Example

transform/temps.scale:

[12..23]=Temp between 12 or higher and 23 or lower
]12..23[=Temp over 12 and below 23
..23]=Any temp up to and including 23
]12..=Any temp above 12