Hi,

Am I a little new to this rest sensor stuff, so forgive me for my “stupid” questions.

How can I get this json data properly into a sensor that lists each serial number as a seperate attribute, or even as a separate sensor?

```
[
{
"serialNumber": "122022009125",
"lastReportDate": 1605626962,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 198
},
{
"serialNumber": "122022007165",
"lastReportDate": 1605626903,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 215
},
{
"serialNumber": "122022010765",
"lastReportDate": 1605626959,
"devType": 1,
"lastReportWatts": -1,
"maxReportWatts": 200
},
{
"serialNumber": "122022007141",
"lastReportDate": 1605626838,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 216
},
{
"serialNumber": "122022003320",
"lastReportDate": 1605627351,
"devType": 1,
"lastReportWatts": -2,
"maxReportWatts": 160
},
{
"serialNumber": "122022009897",
"lastReportDate": 1605626917,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 130
},
{
"serialNumber": "122022008144",
"lastReportDate": 1605626947,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 197
},
{
"serialNumber": "122022009149",
"lastReportDate": 1605626941,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 204
},
{
"serialNumber": "122022009197",
"lastReportDate": 1605626948,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 197
},
{
"serialNumber": "122022009871",
"lastReportDate": 1605626856,
"devType": 1,
"lastReportWatts": -1,
"maxReportWatts": 124
},
{
"serialNumber": "122022009122",
"lastReportDate": 1605626913,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 201
},
{
"serialNumber": "122022009124",
"lastReportDate": 1605626959,
"devType": 1,
"lastReportWatts": -1,
"maxReportWatts": 199
},
{
"serialNumber": "122022009643",
"lastReportDate": 1605627346,
"devType": 1,
"lastReportWatts": -2,
"maxReportWatts": 121
},
{
"serialNumber": "122022009395",
"lastReportDate": 1605626907,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 122
},
{
"serialNumber": "122022009244",
"lastReportDate": 1605626963,
"devType": 1,
"lastReportWatts": -1,
"maxReportWatts": 197
},
{
"serialNumber": "122022009799",
"lastReportDate": 1605626935,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 159
},
{
"serialNumber": "122022009268",
"lastReportDate": 1605626878,
"devType": 1,
"lastReportWatts": 0,
"maxReportWatts": 214
}
]
```

And how to do more or less the same for this:

```
{
"production":[
{
"type":"inverters",
"activeCount":17,
"readingTime":1605637864,
"wNow":0,
"whLifetime":36408
},
{
"type":"eim",
"activeCount":1,
"measurementType":"production",
"readingTime":1605637885,
"wNow":15.833,
"whLifetime":566.661,
"varhLeadLifetime":0.0,
"varhLagLifetime":1241.524,
"vahLifetime":1740.122,
"rmsCurrent":1.167,
"rmsVoltage":667.566,
"reactPwr":231.073,
"apprntPwr":259.947,
"pwrFactor":0.06,
"whToday":521.661,
"whLastSevenDays":521.661,
"vahToday":1675.122,
"varhLeadToday":0.0,
"varhLagToday":1221.524
}
],
"consumption":[
{
"type":"eim",
"activeCount":1,
"measurementType":"total-consumption",
"readingTime":1605637885,
"wNow":481.115,
"whLifetime":5040.974,
"varhLeadLifetime":2810.136,
"varhLagLifetime":1246.201,
"vahLifetime":6564.788,
"rmsCurrent":4.557,
"rmsVoltage":667.464,
"reactPwr":-675.698,
"apprntPwr":3041.9,
"pwrFactor":0.16,
"whToday":4890.974,
"whLastSevenDays":4890.974,
"vahToday":6025.788,
"varhLeadToday":2498.136,
"varhLagToday":1225.201
},
{
"type":"eim",
"activeCount":1,
"measurementType":"net-consumption",
"readingTime":1605637885,
"wNow":465.283,
"whLifetime":4558.574,
"varhLeadLifetime":2810.136,
"varhLagLifetime":4.677,
"vahLifetime":6564.788,
"rmsCurrent":3.391,
"rmsVoltage":667.362,
"reactPwr":-444.624,
"apprntPwr":756.11,
"pwrFactor":0.63,
"whToday":0,
"whLastSevenDays":0,
"vahToday":0,
"varhLeadToday":0,
"varhLagToday":0
}
],
"storage":[
{
"type":"acb",
"activeCount":0,
"readingTime":0,
"wNow":0,
"whNow":0,
"state":"idle"
}
]
}
```

Hopefully I will be able to fiddle the rest together myself

Thanks,

Michel