2.6  Seasonal Algorithm

These are constant control rules.  You could substitute values for defined terms in some cases like Winter_Vent Winter_Cool Summer_heat and Sumr_Vent_Temp

//Thermostats and associated controls

//Heat Mode

#redefine SZ_Heat_hr hourval(65,65,65,65,65,65,65,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,65)

#redefine Liv_Heat_hr hourval(65,65,65,65,65,65,65,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,65)

#redefine Slp_Heat_hr hourval(65,65,65,65,65,65,65,68,65,65,65,65,65,65,65,65,65,65,65,65,65,68,68,65)

#redefine Winter_Vent 77

#redefine Winter_Cool 78

//Cool Mode

#redefine SZ_Cool_hr hourval(78,78,78,78,78,78,78,83,83,83,83,83,83,82,81,80,79,78,78,78,78,78,78,78)

#redefine Liv_Cool_hr hourval(83,83,83,83,83,83,83,83,83,83,83,83,83,82,81,80,79,78,78,78,78,78,78,83)

#redefine Slp_Cool_hr hourval(78,78,78,78,78,78,78,83,83,83,83,83,83,83,83,83,83,83,83,83,83,78,78,78)

#redefine Summer_Heat 60

#redefine Sumr_Vent_Temp 68      //

           

//  Summer Winter mode switch based on 7 day average temp.  Winter<=60>Summer

#redefine Coolmode select( @weather.taDbAvg07 >60., 1,default 0)

#redefine HeatSet select( @weather.taDbAvg07 >60., Summer_Heat, default SZ_Heat_hr ) 

#redefine CoolSet select( @weather.taDbAvg07 >60., SZ_Cool_hr, default Winter_Cool )

#redefine Tdesired select( @weather.taDbAvg07 >60., Sumr_Vent_Temp, default Winter_Vent )

// Window interior shade closure

#define SCnight 0.8    //  when the sun is down.  80%

#define SCday 0.5      //  when the sun is up  50% 

#define SCcool 0.5     //  when cooling was on previous hour.  50%?