I am sending the following payload to a custom namespace.
{
"observation": {
"time": 1678417316996,
"machine": "f_sim_mqtt_long",
"name": "alarms",
"marker": [
{
"type": "path",
"number": 1
}
]
},
"state": {
"time": 4306.0879,
"data": {
"alarms": [
{
"path": 1,
"axis_code": 0,
"axis": "",
"number": 100,
"message": "PARAMETER ENABLE SWITCH ONY",
"type_code": 0,
"type": "SW"
}
]
}
}
}
Which comes across in tag browser as this:
However, after sending an empty array to $.state.data.alarms, the array is never cleared in the tag browser and no exceptions in the logs.
{
"observation": {
"time": 1678417363283,
"machine": "f_sim_mqtt_long",
"name": "alarms",
"marker": [
{
"type": "path",
"number": 1
}
]
},
"state": {
"time": 12921.8673,
"data": {
"alarms": []
}
}
}
Why is this?