I’m building a sensor device with a one wire chain of temperature sensors (dallas ds18b20) on a ESP32 with micropython. It sends it’s data over MQTT to HA. Currently I put all sensor readings in one payload like
[
{
"id": "11111",
"temperature": 21.49
},
{
"id": "22222,
"temperature": 34.87
}
]
Is this the right way? How should I write the sensor in HA config to get each temperature with a nice name?