How to extract the PV generator AC power from SMA hybrid inverters STP5.0-SE/STP10.0-SE

Purpose of this topic is to support other users who operate SMA (Sungrow) hybrid inverters.

Through Modbus these inverter types only provide the generated sum AC power (PV panels plus discharge power of the battery system) as well as the DC input power of the PV strings A and B.

The “naked” AC power figure for the PV panels is available through the http login to the inverter. This has to be enabled once through the inverter login screen. Check the “Smart Inverter Screen” option. See the screenshot below:

Have carried out the request using the http URL thing http://inverters_IP/dyn/getDashValues.json.

The .json answer to this request is:

{"result":{"01B8-xxxxxD40":{"6800_08822000":{"9":[{"validVals":[19048,19049,19050,19051],"val":[{"tag":19048}]}]},"6800_10821E00":{"9":[{"val":"STP5.0-3SE-40"}]},"6800_08811F00":{"9":[{"validVals":[1129,1130],"val":[{"tag":1129}]}]},"6180_08214800":{"9":[{"val":[{"tag":307}]}]},"6180_08414900":{"9":[{"val":[{"tag":886}]}]},"6800_088A2900":{"9":[{"validVals":[302,9327,9375,9376,9437,19043],"val":[{"tag":9327}]}]},"6100_40463600":{"9":[{"val":14}]},"6100_40463700":{"9":[{"val":0}]},"6100_40263F00":{"9":[{"val":182}]},"6400_00260100":{"9":[{"val":10334041}]},"6800_00832A00":{"9":[{"low":5000,"high":5000,"val":5000}]},"6800_008AA200":{"9":[{"low":0,"high":null,"val":3016914225}]},"6400_00462500":{"9":[{"val":5237285}]},"6100_00418000":{"9":[{"val":0}]},"6180_08495E00":{"9":[{"val":[{"tag":2292}]}]},"6100_00295A00":{"9":[{"val":44}]},"6100_00496900":{"9":[{"val":1137}]},"6100_00496A00":{"9":[{"val":0}]},"6400_00496700":{"9":[{"val":4582134}]},"6400_00496800":{"9":[{"val":3607822}]},"6800_08822B00":{"9":[{"validVals":[461],"val":[{"tag":461}]}]},"6100_0046C200":{"9":[{"val":1319}]},"6400_0046C300":{"9":[{"val":11127458}]},"6800_08A33A00":{"9":[{"validVals":[1129,5472,5473],"val":[{"tag":1129}]}]},"6182_08412B00":{"9":[{"val":[{"tag":235}]}]},"6800_00893700":{"9":[{"low":0,"high":null,"val":10200}]},"6100_00696E00":{"9":[{"val":96}]},"6802_08834500":{"9":[{"validVals":[303,1438,1744],"val":[{"tag":303}]}]},"6180_08412800":{"9":[{"val":[{"tag":569}]}]},"6180_08412B00":{"9":[{"val":[{"tag":235}]}]},"6400_00462400":{"9":[{"val":1405508}]},"6180_08412900":{"9":[{"val":[{"tag":302}]}]},"6180_08414D00":{"9":[{"val":[{"tag":307}]}]}}}}

The desired AC power (panels only) can be extracted using the following JSONPath transformation:

$.result["01B8-xxxxxD40"].6100_0046C200.9[0].val

I use SMA STP5.0SE with Modbus.

The inverter has 2 mppt and I can read both values.

Thing data powerA_input "SMA Inverter 1 Power A" \[ readStart="30773", readValueType="int32", readTransform="JS(smalimit.js)" \]
Thing data active_power "SMA Inverter 1 Active Power" \[ readStart="30775", readValueType="int32", readTransform="JS(smalimit.js)" \]

Thing data powerB_input "SMA Inverter 1 Power B" \[ readStart="30961", readValueType="int32", readTransform="JS(smalimit.js)" \]

Power a and b are the strings (mppt)

The active power is the value from the inverter. Panels + battery.

Greets

Yes, i also have these parameters through Modbus. But the string A/B DC power is not the residual PV generator power on the AC side. What i described is the PV generation AC power incl. the inverters efficiency loss.

Have corrected my initial post for better understanding.