05.02.2021, 06:58
Try this:
Code:
if CurrentValues then
efergydatatable = json.pdecode(CurrentValues)
data = efergydatatable[1].data[1]
key = next(data)
consumption = data[ key ]
grp.checkupdate('32/1/1', consumption)
end