About This File
Smart Underfloor heating thermostat.
Gets temperature from any device that displays temperature
Uses the Outside temperature from your defaut weather provider
Controls any Switch/Relay that controls your element
Why Smart:
makes use of a Hysteresis value to stop Switch/Relay constantly truning on/off when Temp = SetPoint
Users a Duty Cycle to switch the Element On/Off under a duty cycle 100% if Temp - Setpoint > x, then as the Difference between SetPoint and Temperature gets closer, gose down in 4 steps to 25% on and 75% off thus
if you had 1Kwh Element it would start at 1KW /H and at 25% on would reduce the heating capacity to 250W /H thus stopping over shooting the temperature
Finally it will use the outside temperature to adjust the OffSet - Duty cycle start dependant on the outside temperature so in milder days will start the duty cycle early and on colder days stat the duty cycle closer to the setpoint.
Fell free use and modify, any smart LUA programmers please feel free to modify/improve, but let me have a copy please so my knowledge improves.