Sonoff Dual R3 - How to use transformation with array informations?


i have a Sonoff Dual R3 flashed with “Tasmota by Theo Arends”. Everything works fine.
Now I would like to integrate it into openhab. My question is how to transform array data with jsonpath?
For example the variable “Power” comes with an array [11,0]. How to get this?

MQT: tele/SonoffDualR3-2/SENSOR = {“Time”:“2021-04-12T04:28:40”,“Switch1”:“ON”,“Switch2”:“ON”,“ENERGY”:{“TotalStartTime”:“2021-04-11T17:05:06”,“Total”:0.003,“Yesterday”:0.000,“Today”:0.003,“Period”:1,“Power”:[11,0],“ApparentPower”:[18,0],“ReactivePower”:[14,0],“Factor”:[0.60,0.00],“Voltage”:237,“Current”:[0.076,0.000]}}

For my old Sonoff Pow i used the following, to get the value. But there it was no array information.

thank you

It was easier then I thought :wink:


1 Like