How to create a toggle button for two scripts

Hi once again,
Following your suggestion. I wonder if it is possible to configure template switch off not to turn off the AC but switch to fan, and still somehow to have the possibility to turn off the AC from the Generic thermostat card?