HA behavior after power is back on

Notice that after a short power outage HA turned on my Sonoff (MQTT) switch. The switch itself is configured to boot as off, so I suspect the issue is in HA. How can I prevent this?

Do you have the retain flag set in you HA config for the switch?

It is “retain: false”

Is there anything in the logbook? Are there any MQTT messages being passed (I’ve header MQTT.fx is good for checking this)?