# \#transformations

**URL:** https://community.openhab.org/tag/transformations/135.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [Transformation Problem JS, Inline Transformation, division by 10](https://community.openhab.org/t/transformation-problem-js-inline-transformation-division-by-10/156801)

<div class="topic-metadata">

**Author:** [@heimchemiker](https://community.openhab.org/u/heimchemiker)\
**Replies:** 11\
**Last updated:** [November 9, 2026, 10:27pm UTC](https://community.openhab.org/t/transformation-problem-js-inline-transformation-division-by-10/156801 "2026-11-09T22:27:40Z")

</div>

Hi everyone, I have a problem with the transformation of an item. I am getting weather data from the (quite) undocumented DWD Weather API that spits out JSON formatted Data. I am trying to extract the predicted minimum …

---

## [Multi language JS transformations not working - MAP does recognize language setting](https://community.openhab.org/t/multi-language-js-transformations-not-working-map-does-recognize-language-setting/170181)

<div class="topic-metadata">

**Author:** [@MichaelEi](https://community.openhab.org/u/MichaelEi)\
**Replies:** 1\
**Last updated:** [September 5, 2026, 6:08am UTC](https://community.openhab.org/t/multi-language-js-transformations-not-working-map-does-recognize-language-setting/170181 "2026-09-05T06:08:47Z")

</div>

Platform information: Hardware: Raspberry Pi 4B/8GB/64BG OS: what OS is used and which version Java Runtime Environment: OpenJDK Runtime Environment Temurin-21.0.12+8 (build 21.0.12+8-LTS) openHAB version: 5.2.1 - Rele…

---

## [Map transformation with value "closed"](https://community.openhab.org/t/map-transformation-with-value-closed/169999)

<div class="topic-metadata">

**Author:** [@Calculator](https://community.openhab.org/u/Calculator)\
**Replies:** 5\
**Last updated:** [August 6, 2026, 11:47pm UTC](https://community.openhab.org/t/map-transformation-with-value-closed/169999 "2026-08-06T23:47:25Z")

</div>

Platform information: Hardware: Intel NUC OS: Ubuntu 22.04 Java Runtime Environment: openjdk 21.0.9 2025-10-21 LTS openHAB version: 5.3.0 build 5532 Value “closed” is not translated to “starboard” Please post configu…

---

## [OH 5.0.0.SNAPHOT (14-04-2025) The setScriptEngineFactory method has thrown an exception java.lang.ExceptionInInitializerError: null](https://community.openhab.org/t/oh-5-0-0-snaphot-14-04-2025-the-setscriptenginefactory-method-has-thrown-an-exception-java-lang-exceptionininitializererror-null/163653)

<div class="topic-metadata">

**Author:** [@Mark\_VG](https://community.openhab.org/u/Mark_VG)\
**Replies:** 2\
**Last updated:** [March 8, 2026, 7:20pm UTC](https://community.openhab.org/t/oh-5-0-0-snaphot-14-04-2025-the-setscriptenginefactory-method-has-thrown-an-exception-java-lang-exceptionininitializererror-null/163653 "2026-03-08T19:20:58Z")

</div>

I decided to try the latest 5.0.0 SNAPSHOT this morning and ended up with the following exception: 12:09:08.903 \[ERROR\] \[pt.ScriptTransformationServiceFactory\] - bundle org.openhab.core.automation.module.script:5.0.0.20…

---

## [JS strange quantity multiply](https://community.openhab.org/t/js-strange-quantity-multiply/167926)

<div class="topic-metadata">

**Author:** [@maxim-ka](https://community.openhab.org/u/maxim-ka)\
**Replies:** 4\
**Last updated:** [January 12, 2026, 4:43pm UTC](https://community.openhab.org/t/js-strange-quantity-multiply/167926 "2026-01-12T16:43:13Z")

</div>

I use OH 5.0.2 and try to implement filter for filtering sensor values based on Filter Profile - Tutorials & Examples / Solutions - openHAB Community solution. Now I have this peace of code: const thresh = Quantity(thr…

---

## [State Filter (Range Filter) Profile](https://community.openhab.org/t/state-filter-range-filter-profile/158025)

<div class="topic-metadata">

**Author:** [@jimtng](https://community.openhab.org/u/jimtng)\
**Replies:** 84\
**Last updated:** [January 6, 2026, 5:27pm UTC](https://community.openhab.org/t/state-filter-range-filter-profile/158025 "2026-01-06T17:27:18Z")

</div>

Some time ago, I tried submitting a range filter profile to core, but it was rejected because such profiles should be added as an add-on. I noticed that Basic Profiles add-on was recently merged into the official openha…

---

## [Tutorial on Transformations in OH5](https://community.openhab.org/t/tutorial-on-transformations-in-oh5/167490)

<div class="topic-metadata">

**Author:** [@DiegoDf](https://community.openhab.org/u/DiegoDf)\
**Replies:** 4\
**Last updated:** [December 24, 2025, 9:43am UTC](https://community.openhab.org/t/tutorial-on-transformations-in-oh5/167490 "2025-12-24T09:43:32Z")

</div>

Transformations are used for four purposes: convert data at channel level change item states with a profile change the way items are displayed convert data in rules Here is what I could find in the Openhab documentati…

---

## [Update failure (energy values - retrieved from modbus), transformations and logfile errors](https://community.openhab.org/t/update-failure-energy-values-retrieved-from-modbus-transformations-and-logfile-errors/163851)

<div class="topic-metadata">

**Author:** [@quan](https://community.openhab.org/u/quan)\
**Replies:** 5\
**Last updated:** [April 29, 2025, 3:29pm UTC](https://community.openhab.org/t/update-failure-energy-values-retrieved-from-modbus-transformations-and-logfile-errors/163851 "2025-04-29T15:29:29Z")

</div>

I’m trying to use modbus values from a battery in openhab. Values are retrieved via modbus binding. Register (registers see file attached below) 33000 containes “total charging energy”. the value 12812 means 128,12 kWh. …

---

## [.Map Transformation - no entries or file missing](https://community.openhab.org/t/map-transformation-no-entries-or-file-missing/163792)

<div class="topic-metadata">

**Author:** [@michal\_kornatowski75](https://community.openhab.org/u/michal_kornatowski75)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 2:22pm UTC](https://community.openhab.org/t/map-transformation-no-entries-or-file-missing/163792 "2025-04-24T14:22:47Z")

</div>

Hi I’m migrating from 3.3.0 to 4.3.4 but with fresh install on different PC at Proxmox VM I’ve stramge issue with map transformation for Broadlink binding IR code Problem: 14:24:57.353 TRACE openhab.event.ItemComm…

---

## [Display primary image using current jellyfin binding (openHAB 4.3.3)](https://community.openhab.org/t/display-primary-image-using-current-jellyfin-binding-openhab-4-3-3/163188)

<div class="topic-metadata">

**Author:** [@patrik\_gfeller](https://community.openhab.org/u/patrik_gfeller)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 11:03pm UTC](https://community.openhab.org/t/display-primary-image-using-current-jellyfin-binding-openhab-4-3-3/163188 "2025-03-18T23:03:31Z")

</div>

Hi all, as the Jellyfin-Binding update is still work-in-progress, and I missed the feature to display the current primary image I experimented with a method to display the image using the current binding. Maybe the resu…

---

## [JavaScript - Transformation Services missing in openhab 4](https://community.openhab.org/t/javascript-transformation-services-missing-in-openhab-4/146213)

<div class="topic-metadata">

**Author:** [@helipus](https://community.openhab.org/u/helipus)\
**Replies:** 18\
**Last updated:** [March 12, 2025, 11:16pm UTC](https://community.openhab.org/t/javascript-transformation-services-missing-in-openhab-4/146213 "2025-03-12T23:16:16Z")

</div>

Hi there, I’m missing the JavaScript - Transformation Services in openhab 4. https://www.openhab.org/addons/transformations/javascript/ How can I now make sure that my items which are linked to a float channel only ho…

---

## [MAP string / number item on string channel](https://community.openhab.org/t/map-string-number-item-on-string-channel/162365)

<div class="topic-metadata">

**Author:** [@HolBaum5](https://community.openhab.org/u/HolBaum5)\
**Replies:** 6\
**Last updated:** [February 11, 2025, 10:21am UTC](https://community.openhab.org/t/map-string-number-item-on-string-channel/162365 "2025-02-11T10:21:31Z")

</div>

Hello everyone, I have a Zigbee thermostat which supplies the system mode as a string via a channel (on, heat, auto) However, I need a number item in a rule. Therefore I have added another item (number) to the channel. …

---

## [OH4 State Description - exclude %unit% from data passed to transformation](https://community.openhab.org/t/oh4-state-description-exclude-unit-from-data-passed-to-transformation/162132)

<div class="topic-metadata">

**Author:** [@BrettLHolmes](https://community.openhab.org/u/BrettLHolmes)\
**Replies:** 4\
**Last updated:** [February 5, 2025, 9:43pm UTC](https://community.openhab.org/t/oh4-state-description-exclude-unit-from-data-passed-to-transformation/162132 "2025-02-05T21:43:52Z")

</div>

Platform information: Hardware: RPi5/ openhabian openHAB version: 4.3.2 Issue of the topic: I have various Items related to Inverters/Energy that I would like to transform when the amount is greater than 1000 W to x,…

---

## [Number to String MAP transformation in GUI](https://community.openhab.org/t/number-to-string-map-transformation-in-gui/161048)

<div class="topic-metadata">

**Author:** [@chrisl89](https://community.openhab.org/u/chrisl89)\
**Replies:** 3\
**Last updated:** [December 24, 2024, 1:17pm UTC](https://community.openhab.org/t/number-to-string-map-transformation-in-gui/161048 "2024-12-24T13:17:16Z")

</div>

hi folks, I just setup my second openhab instance and i try to configure everything via UI. In my first instance i did most via file configuration. Now i try to transform the “Set Point Mode” channel of my homematic H…

---

## [OH4.3.M4 HTTP Binding extract data from web site](https://community.openhab.org/t/oh4-3-m4-http-binding-extract-data-from-web-site/160256)

<div class="topic-metadata">

**Author:** [@Mark\_VG](https://community.openhab.org/u/Mark_VG)\
**Replies:** 7\
**Last updated:** [November 15, 2024, 6:44pm UTC](https://community.openhab.org/t/oh4-3-m4-http-binding-extract-data-from-web-site/160256 "2024-11-15T18:44:12Z")

</div>

Hi All I have finally managed to get my HTTP Binding THING online and I am getting the raw data into a STRING item: The string data can vary greatly - can be longer, shorter, contain what I am looking for or not, co…

---

## [SCALE transform syntax in .things file](https://community.openhab.org/t/scale-transform-syntax-in-things-file/160154)

<div class="topic-metadata">

**Author:** [@froyde](https://community.openhab.org/u/froyde)\
**Replies:** 2\
**Last updated:** [November 14, 2024, 6:12am UTC](https://community.openhab.org/t/scale-transform-syntax-in-things-file/160154 "2024-11-14T06:12:31Z")

</div>

Platform information: Hardware: x64/8 GB/512 GB OS: Ubuntu 22.04.5 LTS Java Runtime Environment: Debian 17.0.12 openHAB version: 4.2.1 (official Docker version) Issue of the topic: How to chain transformations in .th…

---

## [Profiles with JSONPATH and filtering](https://community.openhab.org/t/profiles-with-jsonpath-and-filtering/151817)

<div class="topic-metadata">

**Author:** [@Scriptwriter](https://community.openhab.org/u/Scriptwriter)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 10:56am UTC](https://community.openhab.org/t/profiles-with-jsonpath-and-filtering/151817 "2024-10-02T10:56:08Z")

</div>

Hi, im running an bashscript which is getting me a json with some events. This works fine and gives me an array back which im writing into a string item. The json is ordered by date. \[{ "id": "5729296", "id-sor…

---

## [Syntax for Binding Transformations](https://community.openhab.org/t/syntax-for-binding-transformations/157861)

<div class="topic-metadata">

**Author:** [@jimtng](https://community.openhab.org/u/jimtng)\
**Replies:** 20\
**Last updated:** [September 7, 2024, 7:12am UTC](https://community.openhab.org/t/syntax-for-binding-transformations/157861 "2024-09-07T07:12:54Z")

</div>

Once this is done, hopefully, all binding transformations will: Use core’s ChannelTransformation class to perform transformations, instead of using separate in-binding implementations Support both colon JSONPATH:$.path …

---

## [MQTT state processing - Tint Remote](https://community.openhab.org/t/mqtt-state-processing-tint-remote/158009)

<div class="topic-metadata">

**Author:** [@MartOs](https://community.openhab.org/u/MartOs)\
**Replies:** 1\
**Last updated:** [August 25, 2024, 8:19am UTC](https://community.openhab.org/t/mqtt-state-processing-tint-remote/158009 "2024-08-25T08:19:49Z")

</div>

Hi, I’m trying to setup some zigbee Tint remotes through Zigbee2MQTT. The remote sends a state that looks like this - { "linkquality": 132, "action": "color\_temperature\_move", "action\_color": { "…

---

## [Profile to cycle through a list of values upon event trigger](https://community.openhab.org/t/profile-to-cycle-through-a-list-of-values-upon-event-trigger/157359)

<div class="topic-metadata">

**Author:** [@DietmarNusch](https://community.openhab.org/u/DietmarNusch)\
**Replies:** 7\
**Last updated:** [July 26, 2024, 7:18pm UTC](https://community.openhab.org/t/profile-to-cycle-through-a-list-of-values-upon-event-trigger/157359 "2024-07-26T19:18:20Z")

</div>

All, After a smooth upgrade to OpenHAB 4.2 I just discovered the Basic Profiles transformations bundle. It seems that I can get rid of several one-line rules, e.g. just toggling a switch item when a button was pressed. …

---

## [KNX Binding: Profile with ECMA inline script to invert value](https://community.openhab.org/t/knx-binding-profile-with-ecma-inline-script-to-invert-value/157195)

<div class="topic-metadata">

**Author:** [@anli](https://community.openhab.org/u/anli)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 11:18am UTC](https://community.openhab.org/t/knx-binding-profile-with-ecma-inline-script-to-invert-value/157195 "2024-07-14T11:18:56Z")

</div>

Hello everyone, I have a KNX gateway for my garage door and the absolute position (0-100%) is inverted. With OH4, a profile is probably the recommended method for such an inversion. I can’t figure out from the example…

---

## [Which channel? "Executing the JSONPATH-transformation failed: An error occurred while transforming JSON expression."](https://community.openhab.org/t/which-channel-executing-the-jsonpath-transformation-failed-an-error-occurred-while-transforming-json-expression/156126)

<div class="topic-metadata">

**Author:** [@ralfonat](https://community.openhab.org/u/ralfonat)\
**Replies:** 14\
**Last updated:** [June 13, 2024, 8:03am UTC](https://community.openhab.org/t/which-channel-executing-the-jsonpath-transformation-failed-an-error-occurred-while-transforming-json-expression/156126 "2024-06-13T08:03:48Z")

</div>

Hi everyone, I’m running openHAB 3.4.4. I have configured a couple of transforms in the past and now looking at the log I am getting these lines: 2024-05-21 12:47:30.664 \[WARN \] \[t.generic.ChannelStateTransformation\] …

---

## [Translating rollershutter position for Item](https://community.openhab.org/t/translating-rollershutter-position-for-item/156388)

<div class="topic-metadata">

**Author:** [@prior\_philip](https://community.openhab.org/u/prior_philip)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 2:16pm UTC](https://community.openhab.org/t/translating-rollershutter-position-for-item/156388 "2024-06-04T14:16:02Z")

</div>

Platform information: Hardware: ODROID N2+ OS: UBUNTU Java Runtime Environment: 17 openHAB version: 4.1.3 Issue of the topic: Im using ZIGBEE rollershutter module running TASMOTA on zigbee bridge. Unfortunately, whe…

---

## [MQTT: Combine multiple Channels of one thing before sending](https://community.openhab.org/t/mqtt-combine-multiple-channels-of-one-thing-before-sending/155571)

<div class="topic-metadata">

**Author:** [@wertzui](https://community.openhab.org/u/wertzui)\
**Replies:** 7\
**Last updated:** [April 25, 2024, 2:21pm UTC](https://community.openhab.org/t/mqtt-combine-multiple-channels-of-one-thing-before-sending/155571 "2024-04-25T14:21:00Z")

</div>

I’m currently setting up my NSPanel flashed with Tasmota and I want to set the temperature which is displayed on the main screen independently of the displayed weather icon and the forecast range. However it is required…

---

## [Filter Profile](https://community.openhab.org/t/filter-profile/155345)

<div class="topic-metadata">

**Author:** [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Replies:** 4\
**Last updated:** [April 19, 2024, 9:07pm UTC](https://community.openhab.org/t/filter-profile/155345 "2024-04-19T21:07:00Z")

</div>

This comes up periodically so I figured I’d write a quick tutorial since I had to implement this temporarily in my OH instance to debug a problem. This will probably become a design pattern at some point. Problem Statem…

---

## [HTTP Bindingen and transformations](https://community.openhab.org/t/http-bindingen-and-transformations/155438)

<div class="topic-metadata">

**Author:** [@GeertClaes](https://community.openhab.org/u/GeertClaes)\
**Replies:** 16\
**Last updated:** [April 19, 2024, 3:55pm UTC](https://community.openhab.org/t/http-bindingen-and-transformations/155438 "2024-04-19T15:55:45Z")

</div>

Hi, I am using some KMTronic LAN Ethernet IP 8 channels WEB Relay boards succesfully on 2.5.x. Because the worlds moves on and OH moves with it, I am starting migration to 4.x I’ve get those cheap things working with…

---

## [OH3: transformation of numbers with units](https://community.openhab.org/t/oh3-transformation-of-numbers-with-units/154761)

<div class="topic-metadata">

**Author:** [@Max\_G](https://community.openhab.org/u/Max_G)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 10:00pm UTC](https://community.openhab.org/t/oh3-transformation-of-numbers-with-units/154761 "2024-03-21T22:00:03Z")

</div>

Platform information: Hardware: Raspberry Pi 4 Model B Rev 1.1 ; 4GB memory Host: Linux openhabian 5.15.76-v7l+ #1597 SMP Fri Nov 4 12:14:58 GMT 2022 armv7l GNU/Linux Distro: Raspbian GNU/Linux 11 (bullseye) openjdk ve…

---

## [Invert Channel Value](https://community.openhab.org/t/invert-channel-value/154422)

<div class="topic-metadata">

**Author:** [@Trickx](https://community.openhab.org/u/Trickx)\
**Replies:** 12\
**Last updated:** [March 11, 2024, 1:20pm UTC](https://community.openhab.org/t/invert-channel-value/154422 "2024-03-11T13:20:48Z")

</div>

openHAB version: 4 I use a Shelly Plus PM to monitor generated solar power. The provided power value from the thing is negative. I would like to invert a channel value. I belief a transformation profile should be be…

---

## [Channel transformations not working when using text files for item creation](https://community.openhab.org/t/channel-transformations-not-working-when-using-text-files-for-item-creation/153407)

<div class="topic-metadata">

**Author:** [@MartOs](https://community.openhab.org/u/MartOs)\
**Replies:** 11\
**Last updated:** [February 1, 2024, 1:46pm UTC](https://community.openhab.org/t/channel-transformations-not-working-when-using-text-files-for-item-creation/153407 "2024-02-01T13:46:42Z")

</div>

Hi, I’m trying to create items with channel profiles. My transformation works and have tested it when creating a new item through the UI. However, when I create the item using a text file, the transformation doesn’t wo…

---

## [Problems with Map Translation](https://community.openhab.org/t/problems-with-map-translation/152529)

<div class="topic-metadata">

**Author:** [@SirMaulwurf](https://community.openhab.org/u/SirMaulwurf)\
**Replies:** 12\
**Last updated:** [January 1, 2024, 7:42pm UTC](https://community.openhab.org/t/problems-with-map-translation/152529 "2024-01-01T19:42:54Z")

</div>

Hi there, my logs show following warning, and what ever I insert in my map files OH4 ignores it. ==\> /var/log/openhab/openhab.log \<== 2023-12-31 19:14:01.785 \[WARN \] \[rest.core.item.EnrichedItemDTOMapper\] - Failed tran…

[Next page](https://community.openhab.org/tag/transformations/135.md?match_all_tags=true&page=1&tags%5B%5D=transformations)
