zacs / ha-dualmodegeneric

Generic thermostat capable of heating and cooling
68 stars 26 forks source link

fix overshoot logic in heat/cool mode #69

Open ndwarshuis opened 2 months ago

ndwarshuis commented 2 months ago

When in heat/cool mode, the current logic will only turn off the heater/cooler when the current temperature is within range. However, this won't work if the temperature goes from being above the range to below the range, in which case the cooler needs to be turned off and the heater needs to be turned on (or vice versa).

Probably also fixes https://github.com/zacs/ha-dualmodegeneric/issues/41