Sometimes my wife turns off the electric heater in our room with the switch button on the HA dashboard - not knowing that I have the generic thermostat for the room controlling it. Is it possible to set an automation to turn off the thermostat when the switch button has been used to turn off the heater and not by the thermostat itself (eg if it has gotten too warm)
Essentially I want it that if the heater is turned off, then the thermostat is also turned off, but I don't want the thermostat to turn itself off as a side-effect.