This is one of my first exercises with Node-RED, so please be kind
I'm creating a simple dashboard to control my Modbus devices. Currently I can see the status of a few inputs and control the state of a few outputs. Now I want to slightly optimize the design.
Modbus-Read node gives me the following input:
msg.payload : array[8]
[ false, false, false, false, false, false, false, false ]
How can I convert [at once] each and every value in the array from true to On and false to Off?
Currently I'm converting every value like {{msg.payload[5]}}
with individual Change nodes which is not nice.