Give the two scripts below a try.. I have Gen 3 Nest Thermostat and a
Meross Fan Control wall switch. If it is winter time, then you have the
Nest set to heat. Thermostat mode is always set to Heat in this case.
ActiveThermostatMode is set to "heat" ...