Change node unexpected behavior

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 "" as of now is v2.1.4

Thanks Peter

Remove the quotes round "on" in your chage node.

1 Like

Thanks, that was it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.