I have set up my core to operate 2 240V sockets via relays. In parallel, the core also lights 2 LEDs to show whether the sockets are live or not. For various reasons, I am driving the relays (via transistors) from pins D0 and D1 and the LEDs from pins D4 and D5. All works well and the appropriate command driving a spark function turns the sockets/LEDs on and off.
My problem is that they also turn off randomly by themselves. When this happens, there is no change to the “breathing” cyan LED on the core. I would have suspected my assembly but the socket/LED pair always change state together. This means that the spark function must be executing even though no command has been sent.