19.04.2022, 11:26
You can use a resident script for this because you don't need instant reaction to the temperature/mode changes. 2-point thermostat is ok for this task but you should add hysteresis so the output does not bounce between on/off when room temp is near the setpoint. For example, in heating mode the output turns on when room temp < setpoint but turns off when room temp > (setpoint + 1).