Change node has unexpected behavior.
Maybe my understanding of this node is wrong, or is it?
The change node receives msg.payload "on" and should replace that with {"state";"OFF"}.
As seen in the debug output it just sends the original "on" in msg.payload.
I also tried to search for string "on" and replace it with string {"state";"OFF"}, same result.
Can someone explain me why?
It is mind boggling, and drives me mad.
I run "docker.io/nodered/node-red:latest" as of now is v2.1.4
Thanks Peter