I am writing a subflow and it will have a status.
(If only it was that easy)
Basically I have a status node (and change node) to make the payload reflect the message which will control the status.
On-line will give a status of a filled green circle.
Off-line will give a status of a filled red circle.
Not rocket science.   But I'm stuck.
(from the subflow code)
[{"id":"7d7b13d11484d98b","type":"status","z":"7a2637e78f8d7294","name":"A","scope":["ed9ed367ddd1d60e"],"x":90,"y":210,"wires":[["3ea3c98af3827c65","d014ced04fa4a26b"]]},{"id":"3ea3c98af3827c65","type":"change","z":"7a2637e78f8d7294","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"status.text","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":210,"wires":[["1f18987f9248d181"]]},{"id":"1f18987f9248d181","type":"switch","z":"7a2637e78f8d7294","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"On-line","vt":"str"},{"t":"eq","v":"Off-line","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":210,"wires":[[],[]]}]
So I will put 2 x change nodes and construct the payload for the two options.
Then they both go to the status output node of the subflow.
What structure does the message need to be?
Sorry for the dumb question.

