There are two things going on here - first is that Indigo really hates dict keys that start with a number (digits 0-9). And I obviously forgot to account for that in this plugin. I'll have to fix that.
Second, what part of that payload do you actually want to use for state?
If it's the "outer" dictionary, and you put "." in that config field, then it's working right. Except for the error which is causing the states to be empty.
I added formatting to the payload to make it easier to see what's in there:
- Code: Select all
{
"elecMtr":
{
"0702":
{
"03":
{
"01":"00000001",
"04":"00",
"02":"000003E8",
"07":"2000051976213",
"03":"FB",
"08":"",
"00":"00",
"06":"00"
},
"00":
{
"07":"00000000",
"01":"000000000001",
"00":"0000004D8DF1",
"14":"02",
"02":"000000000000"
},
"04":
{
"01":"0054DB",
"40":"0A5B1E",
"30":"0242C5",
"00":"00000471"
},
"02":
{
"00":"00"
}
},
"0708":
{
"01":
{
"01":"E.ON"
}
}
},
"gasMtr":
{
"0702":
{
"03":
{
"01":"00000001",
"12":"00",
"02":"000003E8",
"07":"8928098507",
"03":"2B",
"08":"",
"00":"01",
"06":"80"
},
"00":
{
"00":"0000000EC6B6",
"14":"02"
},
"0C":
{
"01":"005B19",
"40":"0E665F",
"30":"01D487"
},
"02":
{
"00":"00"
}
},
"0708":
{
"01":
{
"01":""
}
}
},
"ts":"2020-05-22 16:00:16",
"hversion":"GLOW-IHD-01-1v4-SMETS2",
"time":"5EC7F710",
"zbSoftVer":"1.2.5",
"gmtime":1590163216,
"pan":
{
"rssi":"AD",
"status":"joined",
"nPAN":"00",
"join":"0",
"lqi":"44"
},
"smetsVer":"SMETS2",
"ets":"2000-01-01 00:00:00",
"gid":"70B3D521E0008C05"
}