Has anyone written a rule to switch between Heat and Cool on the Nest thermostat? I have been trying to get the Heat-Cool (auto) mode to work, but it allows way too much temperature swing. First, the built in minimum tolerance is 3 degrees. You can set the low temp (for heat) to 68 and high temp (for A/C) to 71. The problem is that the A/C won’t cut on unless the ambient temperature gets to 73 and the Heat won’t cut on unless the ambient temperature gets to 66… That is a 7 degree range of nothing happening…
I will be starting to write my first rule to do this but with smaller tolerances via a rule in openHAB, but figured I’d check if someone else had done something similar already.
This is what I use and it works pretty well. Keeps the temperature between ±1.0 then shuts off when within 0.5. I set up a target temperature variable that I set via the UI. I also set up some timers so the HVAC runs a little longer once the temperature is reached. Let me know if you have any questions. I was never able to to get the Auto to work correctly.
rule "Temperature Control"
when
Time cron “0 0/2 * 1/1 * ? *” or
Item HVAC_AUTO changed or
Item TargetTemperature changed
then
target = TargetTemperature.state as DecimalType
indoortemp = IndoorTemps.state as DecimalType