You’re spot on.
I disabled Shelly Cloud (not big loss), enabled MQTT on the Shelly2.5. Then added an MQTT switch in HA, and changed the automation to react to a state change of the MQTT switch. I left the Shelly integration in place.
Everything works instantly now. Thanks for saving my marriage!