Skip to main content

JSON

{
"value1": 7,
"value2": 11,
"value3": 13
}

will create the following variables:

VarName_value1VarName_value2VarName_value3
71113

Nested objects and arrays​

Nested objects and arrays are flattened into one variable per value: the names are joined with _, and array items are numbered from 0. Spaces anywhere in the resulting name, the variable name included, become _.

{
"motor": {
"speed rpm": 1450,
"phases": [230, 231]
}
}

will create the following variables:

VarName_motor_speed_rpmVarName_motor_phases_0VarName_motor_phases_1
1450230231

Keys named s, t, q or c​

Edge2.4.0+upcoming Every key is stored, whatever its name:

{
"t": 21.5,
"h": 40
}

creates VarName_t and VarName_h.

Older versions skip any key named exactly s, t, q or c, at any level and together with everything nested under it, without logging anything; there the example above only creates VarName_h. On those versions, rename such keys, for example to temperature. The check is case-sensitive, so T is kept.

A payload that already sends one of these keys starts storing it as a new variable after the update to 2.4.0.