data is downloaded from URL according to log.
JSONPATH is more complicated than my previous experience.
I have used it for MQTT/Tasmota
from console:
19:09:30 MQT: tele/sonoff2/SENSOR = {"Time":"2019-02-21T19:09:30","SI7021":{"Temperature":1.3,"Humidity":70.1},"TempUnit":"C"}
Number Sonoff4 "Sonoff4 [%.1f %%]" { mqtt="<[broker:tele/sonoff2/SENSOR:state:JSONPATH($.SI7021.Humidity)]" }
Here the JSONPATH parameter is quite straightforward, but for http binding data I don’t understand how to describe the location as parameter names are not unique and they repeat, I should include somehow data row/column information as well…
{"data":
{"Rows":
[{"Columns":
[{"Index":0,
"Scale":0,
"SecondaryValue":null,
"IsDominatingDirection":false,
"IsValid":false,
"IsAdditionalData":false,
"Behavior":0,
"Name":"21-02-2019",
"Value":"41,54",
"GroupHeader":null,
"DisplayNegativeValueInBlue":false,
"CombinedName":"21-02-2019",
"DateTimeForData":"0001-01-01T00:00:00",
"DisplayName":"41,54_True",
"DisplayNameOrDominatingDirection":"41,54",
"IsOfficial":true,
"UseDashDisplayStyle":false},
{"Index":1,
"Scale":0,
"SecondaryValue":null,
"IsDominatingDirection":false,
"IsValid":false,
"IsAdditionalData":false,
"Behavior":0,
"Name":"20-02-2019",
"Value":"35,20",
"GroupHeader":null,
"DisplayNegativeValueInBlue":false,
"CombinedName":"20-02-2019",
"DateTimeForData":"0001-01-01T00:00:00",
"DisplayName":"35,20_True",
"DisplayNameOrDominatingDirection":"35,20",
"IsOfficial":true,
"UseDashDisplayStyle":false},
Number Electricity_price { http="<[https://www.nordpoolgroup.com/api/marketdata/page/47?currency=,,,EUR&entityName=EE:60000:JSONPATH(????????)]" }
How is this sort of JSONPATH parameter constructed?