Hi, with My ecobee Device, you have the simple ecobeeStateTriggerHA smartapp, which allows you to turn on/off switch(es) based on the thermostatOperatingState (heating, cooling, fan only, idle).
For more details on all use cases available:
It’s available at my github:
Regards