Domenick
For my GPIO based relay flow, to "initialize" a relay on Node-Red restart, just change one of the "Test" inject nodes to inject one second after start. ?This will position the relay and store he result in context memory. ?I show below an example of using the "false" or open the relay, as an example.
Of note, one of the issues with Raspberry Pi GPIO pins, is the first initial "state" on boot up is undetermined, that is the purpose of waiting one second to initialize the relay. ?Keep in mind, as a result, the relay position could be anything for the first second before the "initialize" inject node fires off.
Alan. WA9WUD
