Gone way outfield.
Tried this bit of code:
[{"id":"d88386033f218b26","type":"function","z":"ed217a75.2f6d9","name":"function 178","func":"if (msg.payload == \"DEBUG\") {\n context.set(\"debug\", msg.onoff);\n if (msg.onoff == 0) {\n node.status({});\n // return;\n } else {\n node.status({ fill: \"blue\", text: \"DEBUG ON\" });\n // return;\n }\n return;\n}\n\nlet debug = context.get(\"debug\") || 0\nnode.warn(\"debug set to \" + debug)\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2880,"y":1280,"wires":[[]]},{"id":"10e9e13bf14c419f","type":"inject","z":"ed217a75.2f6d9","name":"Debug off","props":[{"p":"payload"},{"p":"onoff","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"DEBUG","payloadType":"str","x":2690,"y":1340,"wires":[["d88386033f218b26"]]},{"id":"ed0494b408ae66dc","type":"inject","z":"ed217a75.2f6d9","name":"Debug on","props":[{"p":"payload"},{"p":"onoff","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"DEBUG","payloadType":"str","x":2690,"y":1380,"wires":[["d88386033f218b26"]]},{"id":"b49fd575a08a3eeb","type":"inject","z":"ed217a75.2f6d9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":2690,"y":1280,"wires":[["d88386033f218b26"]]}]
Guess what!
It works.
So why doesn't it in the other part?