diff --git a/USAGE.md b/USAGE.md index 6734013efc..fca838bb53 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1252,6 +1252,14 @@ end ### Transformations +#### Using openHAB Transformations + +Although it can often be done better and more easily in native Ruby code, existing openHAB transformations +such as MAP, JSONPATH, Jinja Transformation, or even Ruby transformation written in the `/transform` folder +can also be used by calling the {OpenHAB::DSL.transform transform} method. + +#### Writing Custom Transformations in Ruby + This add-on also provides the necessary infrastructure to use Ruby for writing [transformations](https://www.openhab.org/docs/configuration/transformations.html). The main value to be transformed is given to the script in a variable called `input`.