Hi, I'm testing a simply flow:
[{"id":"7de8e2b7.8f26f4","type":"inject","z":"781f6239.1ae304","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":80,"wires":[["a0823c36.bffff"]]},{"id":"7eea49b8.e7f528","type":"inject","z":"781f6239.1ae304","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":120,"wires":[["34c43814.f79de"]]},{"id":"34c43814.f79de","type":"function","z":"781f6239.1ae304","name":"Reset test","func":"global.set(\"test\",false);\nreturn null;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":120,"wires":[[]]},{"id":"a0823c36.bffff","type":"function","z":"781f6239.1ae304","name":"Start node","func":"msg={payload:global.get(\"test\")};\nreturn msg;","outputs":1,"noerr":0,"initialize":"// Code added here will be run once\n// whenever the node is started.\nglobal.set(\"test\",true);\nvar t;\nmsg={payload:true};\nreturn msg;","finalize":"","libs":[],"x":410,"y":60,"wires":[["9c0c0c8.bc26ff"]]},{"id":"9c0c0c8.bc26ff","type":"debug","z":"781f6239.1ae304","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":650,"y":100,"wires":[]}]
it works for the return on Message (and an input is provided), but it doesn't return the message placed on Start, why?
Maybe it' too fast in the beginning for the debug node to catch it?
The start works for variables
Thank you
PS: my goal is to activate some icons on homekit/google home at the beginning