Generic Thermostat with different switch to on and off

Not according to the documentation:

heater string Required entity_id for heater switch, must be a toggle device. Becomes air conditioning switch when ac_mode is set to true.

My only thought is you create a sensor that is set by the two switches through an automation. And when the thermostat sets the sensor you have another automation that shuts off the system. see here