Sonoff iFan03 turn off when Node-RED restarts

I have three Sonoff iFan03 that all turn off whenever Node-RED restarts (running within Home Assistant). Whereas my other Sonoff devices maintain their state. The iFan's have been flashed with Tasmota.

Any ideas as to where to fix this?

I suggest starting by adding debug nodes showing what is being sent to the nodes on startup. Set the nodes to output to the console, then you will be able to look back through the log and work out what was going on as the flows started up.

thanks, that helped me narrow down the issue.

I have an input Boolean that is sending an 'off' payload when NR reboots. I'll see what I can do to prevent that from occurring.