openhab-docs/_transformations/map
Kai Kreuzer c0efe6050b updated generated content
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-03-17 19:56:07 +01:00
..
readme.md updated generated content 2017-03-17 19:56:07 +01:00

readme.md

id label title type description since install
map Map Map - Transformations transform Transforms the input by mapping it to another string. It expects the mappings to be read from a file which is stored under the `transform` folder. 2x auto

{% include base.html %}

Map Transformation Service

Transforms the input by mapping it to another string. It expects the mappings to be read from a file which is stored under the transform folder.

This file should be in property syntax, i.e. simple lines with "key=value" pairs. The file format is documented here. To organize the various transformations one might use subfolders.

Example

transform/binary.map:

key=value
1=ON
0=OFF
ON=1
OFF=0
input output
1 ON
OFF 0
key value