My system:Openhabian 1.5 on Pi4, Openhab 2.5M4 and MQTT2.
I have installed JSONPath and Javascript transformations, and is using them on other MQTT things/items and it is working.
But when i try to combine theese two, I can not get this right.
Can anyone post an example of a working in-comming MQTT telegram with js and JSONPath?
My goal is to divide the value wrapped in an MQTT telegram with JSON, without having to use two items.
Then I have to create an own js for each item, this should be a reusable solution with minimal configuration for each thing.
Of what I understand from the post below, it should be possible from 2.5?
There does not exist any test case for chained transformations to be honest.
Some people wanted them and there they are, but I did not use them myself.
In theory they should work because transformations itself work. And chained transformations is really just splitting the input string on the intersection character and applying those multiple transformations one after the other.