A bug, or a misunderstanding on my end?

ALL seems very cluttered and unclean, why not use javascript or JSONata.

[{"id":"d25af463a7c58e7a","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true-true","payloadType":"str","x":140,"y":3280,"wires":[["5f4fb69f255a7afd"]]},{"id":"5f4fb69f255a7afd","type":"change","z":"c791cbc0.84f648","name":"Make boolean jsonata","rules":[{"t":"set","p":"payload","pt":"msg","to":"$not($contains($$.payload, \"false\"))","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":3320,"wires":[["f46e3f30e8f2459c"]]},{"id":"f46e3f30e8f2459c","type":"debug","z":"c791cbc0.84f648","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":680,"y":3300,"wires":[]},{"id":"a0200cdbd74d6e7f","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true","payloadType":"str","x":150,"y":3320,"wires":[["5f4fb69f255a7afd"]]},{"id":"cced1885.8c6288","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true-true","payloadType":"str","x":170,"y":3360,"wires":[["5f4fb69f255a7afd"]]},{"id":"dd806c66.44737","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true-true","payloadType":"str","x":140,"y":3400,"wires":[["e8eaa3be.7a6118"]]},{"id":"598f8474.2a84d4","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true","payloadType":"str","x":150,"y":3440,"wires":[["e8eaa3be.7a6118"]]},{"id":"bee70e3b.a04a2","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true-true","payloadType":"str","x":170,"y":3480,"wires":[["e8eaa3be.7a6118"]]},{"id":"e8eaa3be.7a6118","type":"function","z":"c791cbc0.84f648","name":"make boolean Javascript","func":"msg.payload = !msg.payload.includes(\"false\")\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":430,"y":3420,"wires":[["f22f0989.030e4"]]},{"id":"f22f0989.030e4","type":"debug","z":"c791cbc0.84f648","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":660,"y":3420,"wires":[]}]
1 Like