JSONPATH of MQTT - Two values in one variable

Hello forum,

I am currently connecting a new Shelly device with Tasmota via MQTT to openHAB.
The Shelly 2.5 has two switchable outputs where you can measure the power.
The power is output via POWER.
However, there is only one POWER and the two values are separated by a comma.

{
  "Time": "2023-02-17T19:22:22",
  "Switch1": "OFF",
  "Switch2": "OFF",
  "ANALOG": {
    "Temperature": 62.4
  },
  "ENERGY": {
    "TotalStartTime": "2023-01-12T19:32:55",
    "Total": 0.003,
    "Yesterday": 0,
    "Today": 0.003,
    "Period": [
      0,
      0
    ],
    "Power": [
      0,
      0
    ],
    "ApparentPower": [
      15,
      0
    ],
    "ReactivePower": [
      14,
      0
    ],
    "Factor": [
      0,
      0
    ],
    "Frequency": 50,
    "Voltage": 238,
    "Current": [
      0,
      0
    ]
  },
  "TempUnit": "C"
}

All other values I could comfortably read out correctly via “Incoming Value Transformations”.
JSONPATH:$.ENERGY.Total

What is the easiest way to separate the two values?
I would like to create two channels.
One for each value.
But I am too stupid to create the JSONPATH correctly.

Does anyone have an idea?

I didn´t tested it but it should be

$.ENERGY.Power[0]

and

$.ENERGY.Power[1]

as it is an array

1 Like

Thanks for the quick reply!
I think that fits.
See the results unfortunately not until tomorrow, but I now receive a number.