Custom MQTT formats
Meter Key Value
The schema below mkv which is Meter Key Value will have a timestamp, meter_name and key-value pairs of the measurements of that (hardware) meter. Here the properties timestamp schema and meter_name are fixed. All the others will be dynamic, where the meter_name + key will be a separate measurement.
This schema is mainly used for cases where a single hardware device outputs multiple measurements without an easy way of splitting up the measurements in different JSON objects.
{
"schema": "mkv",
"timestamp": 1728633877715,
"meter_name": "ab100sdfk1h",
"power": 1637.859,
"volt": 221.78,
"battery": 33.12
}The schema below will output the following measurement points;
ab100sdfk1h_power
ab100sdfk1h_volt
ab100sdfk1h_battery
Last updated
Was this helpful?