Status node not seeming to work

I just posed - and redacted - a post on it. Yeah, I made a mistake.
But fixing the mistake didn't fix the problem.

Ok, to state what I think/know.

the status node gets the status of all/some nodes and spits that out.

It is handy in subflows (my favourite just now) to show messages.

So why isn't this one working?

Case in point (subflow)

I inject a message, it is parsed and I get a status message.

Screenshot from 2022-02-27 08-08-39

This is what it looks like behind the curtain.

Screenshot from 2022-02-27 08-09-16

And the status node is looking at only that node.

So, new subflow.

Screenshot from 2022-02-27 08-09-35

(Keeping it simple)

I have another one who's message is only "counting". Both tested and the results are:

and so I won't/can't show you what happens when this is in the subflow, as NOTHING is shown.

I must be really missing something for this to not work.

Just tried another example and it works.

[{"id":"545f8ed02a2a08b1","type":"subflow","name":"Subflow 2","info":"","in":[{"x":280,"y":180,"wires":[{"id":"5c344e54fc9709c7"}]}],"out":[],"status":{"x":510,"y":270,"wires":[{"id":"b92f16bb6210575f","port":0}]}},{"id":"5c344e54fc9709c7","type":"function","z":"545f8ed02a2a08b1","name":"","func":"//node.status({text: \"Counting \"});\nnode.status({text:\"Hello \" + msg.payload});\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":180,"wires":[[]]},{"id":"b92f16bb6210575f","type":"status","z":"545f8ed02a2a08b1","name":"","scope":null,"x":400,"y":270,"wires":[[]]},{"id":"3f741561b740ba61","type":"subflow:545f8ed02a2a08b1","z":"b25fd092.bcc758","name":"","x":4220,"y":1010,"wires":[]},{"id":"0e112e5b9df0a44c","type":"inject","z":"b25fd092.bcc758","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"there","payloadType":"str","x":4040,"y":1010,"wires":[["3f741561b740ba61"]]}]

So I really am not getting what is going on with the counting examples.

The function nodes happily show their status but the status node isn't catching those messages.

I've tried reducing it to looking at only node, but still nothing other than undefind in the debug node.

Change the debug node to show the complete message.

You will see the status information is provided in msg.status not msg.payload. The sidebar help for the Status node should include that information.

Ok, thanks. I accept I kind of goofed at the flow level.

But what's going on in the subflows?

The node status's aren't being shown.

This is THE flow which I really want the status to work.
There were other bugs - of course - but I am still not seeing the count status

[{"id":"4be6db179f2af0b9","type":"subflow","name":"Button count","info":"","category":"","in":[{"x":60,"y":330,"wires":[{"id":"a457eafcdad07d0b"}]}],"out":[{"x":870,"y":210,"wires":[{"id":"900cc4787c0480a4","port":0}]}],"env":[{"name":"delay","type":"num","value":"","ui":{"type":"input","opts":{"types":["num"]}}}],"meta":{},"color":"#DDAA99","status":{"x":870,"y":380,"wires":[{"id":"900476fafffa3ae3","port":0}]}},{"id":"c2137fa8aec03468","type":"inject","z":"4be6db179f2af0b9","name":"Reset","repeat":"","crontab":"","once":true,"onceDelay":"0.5","topic":"","payload":"","payloadType":"date","x":520,"y":290,"wires":[["5188ca7c92884164"]]},{"id":"1dd88ddf6873ae26","type":"delay","z":"4be6db179f2af0b9","name":"Delay","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":520,"y":250,"wires":[["5188ca7c92884164"]]},{"id":"de02a7b5bf7954d2","type":"trigger","z":"4be6db179f2af0b9","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"0.5","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":300,"y":250,"wires":[["a14dd5822f1f6015"]]},{"id":"5188ca7c92884164","type":"change","z":"4be6db179f2af0b9","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"foo","tot":"str"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":250,"wires":[["d5314c210f7d9a76","ec32ccdde2dc0a7d"]]},{"id":"d5314c210f7d9a76","type":"counter","z":"4be6db179f2af0b9","name":"","init":"0","step":"1","lower":null,"upper":null,"mode":"increment","outputs":"1","x":670,"y":330,"wires":[["6a5f10e31345b897","bb0e17c295353204"]]},{"id":"6a5f10e31345b897","type":"change","z":"4be6db179f2af0b9","name":"Flow set","rules":[{"t":"set","p":"count","pt":"flow","to":"count","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":330,"wires":[[]]},{"id":"a457eafcdad07d0b","type":"change","z":"4be6db179f2af0b9","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"delay","tot":"env"}],"action":"","property":"","from":"","to":"","reg":false,"x":145,"y":330,"wires":[["d5314c210f7d9a76","900cc4787c0480a4","de02a7b5bf7954d2"]],"l":false},{"id":"a14dd5822f1f6015","type":"change","z":"4be6db179f2af0b9","name":"","rules":[{"t":"delete","p":"delay","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":425,"y":250,"wires":[["1dd88ddf6873ae26"]],"l":false},{"id":"900cc4787c0480a4","type":"function","z":"4be6db179f2af0b9","name":"","func":"msg.payload = flow.get(\"count\");\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":210,"wires":[[]]},{"id":"bb0e17c295353204","type":"function","z":"4be6db179f2af0b9","name":"Counter","func":"node.status({text: \"Counting \" + msg.count});\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":380,"wires":[[]]},{"id":"900476fafffa3ae3","type":"status","z":"4be6db179f2af0b9","name":"","scope":["d5314c210f7d9a76","7982e91a4f7b71e4"],"x":670,"y":380,"wires":[[]]},{"id":"7982e91a4f7b71e4","type":"function","z":"4be6db179f2af0b9","name":"Statusx","func":"node.status({text: msg.payload});\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":850,"y":250,"wires":[[]]},{"id":"ec32ccdde2dc0a7d","type":"trigger","z":"4be6db179f2af0b9","name":"Status","op1":"Reset","op2":"     ","op1type":"str","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":755,"y":250,"wires":[["7982e91a4f7b71e4"]],"l":false},{"id":"f4d82258ab1dacf8","type":"subflow:4be6db179f2af0b9","z":"b25fd092.bcc758","name":"","env":[{"name":"delay","value":"400","type":"num"}],"x":4170,"y":490,"wires":[["c39072fc78f48cb4"]]},{"id":"3a4d3a97517dacea","type":"inject","z":"b25fd092.bcc758","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4010,"y":490,"wires":[["f4d82258ab1dacf8"]]},{"id":"c39072fc78f48cb4","type":"debug","z":"b25fd092.bcc758","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":4350,"y":490,"wires":[]}]

I am sorry for asking such a dumb question, but I seem to be missing something.

Kept bashing my head against the brick wall.

Fixed. (My mistake)

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