# \#transformation

**URL:** https://community.openhab.org/tag/transformation/842.md

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

---

## [Multi / long press transformation profile for rocker switch](https://community.openhab.org/t/multi-long-press-transformation-profile-for-rocker-switch/136217)

<div class="topic-metadata">

**Author:** [@dalgwen](https://community.openhab.org/u/dalgwen)\
**Replies:** 9\
**Last updated:** [August 31, 2023, 7:11pm UTC](https://community.openhab.org/t/multi-long-press-transformation-profile-for-rocker-switch/136217 "2023-08-31T19:11:35Z")

</div>

Transform button presses on a rocker switch to a detailed String. Handle multi press, or long press. See sample actions and resulting commands : “button1” press and immediately release —\> “button1.1” “button1” pre…

---

## [Value-Added Tax Transformation \[3.4.0.0;4.0.0.0)](https://community.openhab.org/t/value-added-tax-transformation-3-4-0-0-4-0-0-0/145451)

<div class="topic-metadata">

**Author:** [@laursen](https://community.openhab.org/u/laursen)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 10:13pm UTC](https://community.openhab.org/t/value-added-tax-transformation-3-4-0-0-4-0-0-0/145451 "2023-03-21T22:13:37Z")

</div>

This simple transformation adds VAT (Value-Added Tax) to a given input amount. Its main purpose is to conveniently let the provided profile add VAT when linking an item to a channel without requiring any configuration. …

---

## [OH3 MQTT Command and State ON OFF "0" & "1" transformation issues](https://community.openhab.org/t/oh3-mqtt-command-and-state-on-off-0-1-transformation-issues/122881)

<div class="topic-metadata">

**Author:** [@Charles\_Judd](https://community.openhab.org/u/Charles_Judd)\
**Replies:** 6\
**Last updated:** [June 3, 2021, 12:07am UTC](https://community.openhab.org/t/oh3-mqtt-command-and-state-on-off-0-1-transformation-issues/122881 "2021-06-03T00:07:20Z")

</div>

Hello, Inbound MQTT state messages are not being transformed, and result in an error; 2021-05-27 23:56:20.570 \[WARN \] \[rm.AbstractFileTransformationService\] - Could not transform '0' with the file 'command.map' : Targe…

---

## [Transformation of overtemperature value 0 and 1 defect](https://community.openhab.org/t/transformation-of-overtemperature-value-0-and-1-defect/115514)

<div class="topic-metadata">

**Author:** [@BananaBender](https://community.openhab.org/u/BananaBender)\
**Replies:** 5\
**Last updated:** [January 27, 2021, 9:58pm UTC](https://community.openhab.org/t/transformation-of-overtemperature-value-0-and-1-defect/115514 "2021-01-27T21:58:01Z")

</div>

Hi, I’m struggling with the transformation of overtemperature values of my shellys. It looks like that the returned value from the shelly is correct, but the transformation is defect. I’ve tried it in two different ways…

---

## [How to transform mqtt data from sonoff pir sensor](https://community.openhab.org/t/how-to-transform-mqtt-data-from-sonoff-pir-sensor/97039)

<div class="topic-metadata">

**Author:** [@Lukas2](https://community.openhab.org/u/Lukas2)\
**Replies:** 6\
**Last updated:** [April 21, 2020, 12:37am UTC](https://community.openhab.org/t/how-to-transform-mqtt-data-from-sonoff-pir-sensor/97039 "2020-04-21T00:37:52Z")

</div>

Hi Is there someone that can explain how to transform data from a pir sensor I would like to understand how to do it as I have a lot of different sensors that I want to do . this is an example of the data that I get fr…

---

## [Invalid Path error from http binding](https://community.openhab.org/t/invalid-path-error-from-http-binding/74543)

<div class="topic-metadata">

**Author:** [@Lukie](https://community.openhab.org/u/Lukie)\
**Replies:** 5\
**Last updated:** [May 16, 2019, 1:12pm UTC](https://community.openhab.org/t/invalid-path-error-from-http-binding/74543 "2019-05-16T13:12:02Z")

</div>

I am using the http binding to read data from a webserver. The data comes across in JSON. I have been doing this without issues for at least a year. All of a sudden in the past three days my log is full of errors (see b…

---

## [Item value JS transformation error](https://community.openhab.org/t/item-value-js-transformation-error/67133)

<div class="topic-metadata">

**Author:** [@wjaceh](https://community.openhab.org/u/wjaceh)\
**Replies:** 15\
**Last updated:** [February 13, 2019, 11:44pm UTC](https://community.openhab.org/t/item-value-js-transformation-error/67133 "2019-02-13T23:44:37Z")

</div>

Hi, I’m trying to divide KNX item value by 10: .items Number L1\_v "L1\_V \[JS(divide10.js):%.1f\] " \<energy\> { channel="knx:device:bridge:ZennioKes:L1\_v" } but I’m getting the following error from log: 2019-02-09 12:…

---

## [How to convert a DateTime item to German](https://community.openhab.org/t/how-to-convert-a-datetime-item-to-german/31353)

<div class="topic-metadata">

**Author:** [@Axel](https://community.openhab.org/u/Axel)\
**Replies:** 10\
**Last updated:** [December 3, 2018, 8:21pm UTC](https://community.openhab.org/t/how-to-convert-a-datetime-item-to-german/31353 "2018-12-03T20:21:06Z")

</div>

Hello, I try to convert a DateTime item to German but I fail. I tried to combine formatting and transforming as shown here but this does not create the expected result. If I define DateTime DateAndTime "Datum und …

---

## [JSONPATH Transformation Service vs. JSONPATH](https://community.openhab.org/t/jsonpath-transformation-service-vs-jsonpath/40439)

<div class="topic-metadata">

**Author:** [@5iver](https://community.openhab.org/u/5iver)\
**Replies:** 53\
**Last updated:** [October 13, 2018, 7:52pm UTC](https://community.openhab.org/t/jsonpath-transformation-service-vs-jsonpath/40439 "2018-10-13T19:52:35Z")

</div>

Purpose Explain recent history of the functionality, along with faults Describe a breaking change that is committed to ESH and is currently in the OH 2.3.0 snapshot Describe what I have proposed in the issue that the b…

---

## [Combine transformations in item definition](https://community.openhab.org/t/combine-transformations-in-item-definition/20720)

<div class="topic-metadata">

**Author:** [@rtvb](https://community.openhab.org/u/rtvb)\
**Replies:** 6\
**Last updated:** [January 20, 2017, 1:47pm UTC](https://community.openhab.org/t/combine-transformations-in-item-definition/20720 "2017-01-20T13:47:32Z")

</div>

This topic is more or less used as click bait for this topic: What I need to achieve is to parse an MQTT message with JSONPATH and convert the result from a number to a DateTime in one go. The specific value can be ob…

---

## [JSON Transformation Help needed](https://community.openhab.org/t/json-transformation-help-needed/11973)

<div class="topic-metadata">

**Author:** [@Dibbler42](https://community.openhab.org/u/Dibbler42)\
**Replies:** 26\
**Last updated:** [December 8, 2016, 4:50am UTC](https://community.openhab.org/t/json-transformation-help-needed/11973 "2016-12-08T04:50:25Z")

</div>

Hi There, from a webservice i get the following answer response={"ok":true,"license":"CC BY 4.0 - http:\\/\\/creativecommons.tankerkoenig.de","data":"MTS-K","prices":{"1ceea95b-d46e-4159-91f6-71f57d612bdb":{"status":"o…
