I'm trying to keep 'last_seen' values (milliseconds) about several devices in a global hash called 'last_seen' using MAC addresses as keys. e.g.:
{
"11-22-33-44-55-66": {"last_seen": 0,"reported": false},
"AABBCCDDEEFF": {"last_seen": 0,"reported": false}
}
Query works fine,
$lookup($globalContext('last_seen'),payload)
but how do I update values?
Tried a 'change' node with this
$globalContext('last_seen')~>|payload|{"last_seen": $millis()}|
but it doesn't work. What am I missing?