[SOLVED] Openhab2 http JSONPATH !?

Good day,
I can not go any more can someone please help me?
Would like to read out values from a web page.

{"datetime":"2019-03-07T11:13:32","energy_in":9706384,"energy_out":12377598,"energy_sf":10893221,"day_energy_in":221,"day_energy_out":94,"day_energy_sf":11,"power_io":4,"power_sf":0,"powers":[420,-56,-360],"voltages":[230,222,235],"currents":[2.05,2.25,1.78],"analog":{"percent":0,"mode":2,"output":100,"power":0.000000,"monitoring":"inaktive"},"digital":[{"state":"0","FACremain":0,"runtime":0},{"state":"0","FACremain":0,"runtime":0},{"state":"0","FACremain":0,"runtime":0},{"state":"0","FACremain":0,"runtime":0}],"PvPower":[4774],"PvEnergy":[6999756],"Battery":{"BattSOC":61,"Batt_P":3501,"varta_ug":-4000,"varta_og":4000}}

I would like to have the value of ( }],"PvPower":[4774]) when 4774

The value of “BattSOC”: 61 I get with:

Number akku "Akku [%s]" (gAkku) { http="<[http://192.168.xxx.xxx/all:60000:JSONPATH(*BattSOC)]" }

And “Batt_P”: 3501 is synonymous:

Number ladewechselrichter "Ladewechselrichter [%s]" (gAkku) { http="<[http://192.168.xxx.xxx/all:60000:JSONPATH(*Batt_P)]" }

Could someone please help me?
Thank you.

Did you try this?

JSONPATH($.PvPower[0])
1 Like

Super thank you. That’s perfect