Hello
i try to parse follow json object, which is returned from rest service or indirect from mbus (Kamstrup heat meter)
of course i could take just postion
with {{ value_json.Values[1].Value }}, but it’s not so nice and dynamical
Is there simple way to get value based on their obis code from json object?
or nicer option is create all object at once, but i think that’s not efficiency because i have different data type and also need some recalculation (temperature is provided in kalvin instand of Celsius)
Regards
Marc
{
"DeviceId": "db10837c-xxxx-xxxx-a078-xxxxxxx",
"Date": "2022-01-15T09:51:21",
"Values": [
{
"Obis": "6-0:1.0.0*255",
"Value": 5516000
},
{
"Obis": "6-0:10.0.0*255",
"Value": 290.77
},
{
"Obis": "6-0:11.0.0*255",
"Value": 290.46
},
{
"Obis": "6-0:8.0.0*255",
"Value": 0
},
{
"Obis": "6-0:9.0.0*255",
"Value": 0
},
{
"Obis": "6-0:1.0.1*255",
"Value": 0
},
{
"Obis": "6-0:1.0.2*255",
"Value": 0
}
]
}