openhab-addons/bundles/org.openhab.transform.jinja
Sönke Küper f2996aa723
Updated jsoup to 1.14.3 and adjusted some addons to use the provided version instaed of compile time dependency. (#11643)
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>

Co-authored-by: Sönke Küper <soenkekueper@gmx.de>
2021-12-11 17:21:42 +01:00
..
src Updated jsoup to 1.14.3 and adjusted some addons to use the provided version instaed of compile time dependency. (#11643) 2021-12-11 17:21:42 +01:00
NOTICE added migrated 2.x add-ons 2020-09-21 03:37:19 +02:00
pom.xml Updated jsoup to 1.14.3 and adjusted some addons to use the provided version instaed of compile time dependency. (#11643) 2021-12-11 17:21:42 +01:00
README.md added migrated 2.x add-ons 2020-09-21 03:37:19 +02:00

Jinja Transformation Service

Transforms a value using a jinja template.

The main purpose of this transformer is the use in the home assistant discovery. Therfore not all features of the home assistant templating are supported. Basically on Processing incoming data

Available variables

Variable Description
value The incoming value.
value_json The incoming value parsed as JSON.

Examples

Basic Example

Given the value

{"Time":"2019-01-05T22:45:12","AM2301":{"Temperature":4.7,"Humidity":93.7},"TempUnit":"C"}

the template

::: v-pre {{value_json['AM2301'].Temperature}} :::

extracts the string 4.7.

Further Reading