My CT101 thermostat is downstairs, my bedrooms are upstairs so they are always hotter. I don’t want to cook at night and also don’t want the pets downstairs to freeze.
I’ve added a 4-in-1 sensor in my bedroom. The thermostat will be “ds” and the 4-in-1 is the “br”. Yeah, I’m that simple.
I’m using the weather underground plug in to poll a weather station about 3 miles away and that is stored in out_temp and out_humidity.
input triggers
[table]
[tr] [td]br_cold[/td][td] br temp< 65 [/td][td] [/td][td] ds_cold [/td][td]ds temp< 63[/td][/tr]
[tr] [td]br_cool [/td][td] br temp<73 [/td][td] [/td][td] ds_cool [/td][td] ds temp<65[/td][/tr]
[tr] [td]br_warm [/td][td] br temp> 77 [/td][td] [/td][td] ds_warm [/td][td] ds temp>75[/td][/tr]
[tr] [td]br_hot [/td][td] br temp > 83 [/td][td] [/td][td] ds_hot [/td][td] ds temp>80[/td][/tr]
[tr][td] iswarm [/td][td] outside_temp>70 [/td][td] [/td][td] out_not_humid [/td][td] outside_humidity<50[/td][/tr]
[/table]
schedules
[table]
[tr][td]is_night[/td][td]mon-sun, 17:30-06:00[/td] [/tr]
[tr][td]weekday[/td][td]mon-fri, 06:00-17:30[/td] [/tr]
[/table]
conditions
I probably have waaaay too many conditions but I’m still tweaking the “right” temps. This means I don’t have to update all the conditions that share logic.
[table]
[tr][td]weather_old[/td][td]NOW;out_temp>1:00:00 [/td][td] checks to see if internet weather data ismore than an hour old[/td] [/tr]
[tr][td]out_cool[/td][td] out_not_humid and (out_temp < ( thermostat_temp -5)) and ! weather_old[/td] [td]trips when outside weather is current, cooler than outside, and not humid[/td] [/tr]
[tr][td]out_warm[/td][td]out_not_humid and (out_temp > ( thermostat_temp +5)) and ! weather_old [/td] [td]trips when outside weather is current, warmer than inside and not humid [/td] [/tr]
[tr][td]fan_on_cool[/td] [td]((week_day and (br_hot or ds_hot)) or (br_warm or ds_warm)) and out_cool[/td] [td][/td] [/tr]
[tr][td]heat_on[/td] [td]((week_day and (br_cold or ds_cold)) or (br_cool or ds_cool)) and ! out_warm[/td][td]turns heat on when the outside weather is not warm AND 1) a room is cold during weekday-days or 2) when a room is cool during all other times [/td] [/tr]
[tr][td]fan_on_heat[/td][td]((week_day and (br_cold or ds_cold)) or (br_cool or ds_cool)) and out_warm [/td] [td]uses the blower to heat the house[/td] [/tr]
[tr][td]Temp_good_wkday[/td] [td]week_day and ! AC_On and ! Fan_On_Cool and ! Heat_On and ! Fan_On_Heat[/td] [td]triggers when house is comfortable during weekday - activates “weekday” scene[/td] [/tr]
[tr][td]Temp_good_Night[/td] [td]is_night and ! AC_On and ! Fan_On_Cool and ! Heat_On and ! Fan_On_Heat [/td] [td]triggers when house is comfortable during night - activates “night” scene[/td] [/tr]
[tr][td]Temp_Good_wkend[/td] [td]! week_day and ! is_night and ! AC_On and ! Fan_On_Cool and ! Heat_On and ! Fan_On_Heat[/td] [td]triggers when house is comfortable during weekend days - activates “weekend” scene[/td] [/tr][/table]
Actions
[table][tr][td]AC_on[/td] [td]sets AC cool temp down to 70 & mode “cool”[/td] [td]note that 70F is 5-7F cooler than the triggers[/td] [/tr]
[tr][td]fan_on_cool[/td] [td]turns blower on[/td] [td][/td] [/tr]
[tr][td]fan_on_heat[/td] [td]turns blower on[/td] [td][/td] [/tr]
[tr][td]heat_on[/td] [td]sets AC heat temp to 77 & mode “heat”[/td] [td]note that 77F is 4-14F hotter than the triggers[/td] [/tr]
[/table]
Scenes
I have 3 scenes for the normal programmable thermostat conditions (week day, nights, weekend days). these are here in case the 4-in-1 dies on me. Why yes, I do like redundancy, why do you ask?
[table]
[tr][td]Night[/td] [td]trigger: PLEG_Temp_good_night[/td] [td]“normal” night program[/td] [/tr]
[tr][td]Weekday[/td] [td]trigger: PLEG_Temp_good_wkday[/td] [td]“normal” weekday program[/td] [/tr]
[tr][td]Weekend[/td] [td]trigger: PLEG_Temp_good_wkend[/td] [td]“normal” weekend program[/td] [/tr]
[/table]