science / openthermo

Thermostat project ruby client
Other
21 stars 4 forks source link

Temp_override and Immediate changes should reset hysteresis detection #4

Closed science closed 11 years ago

science commented 11 years ago

Basically, hysteresis is not really a safety feature - it's more designed to prevent unattended operation of the thermostat from cycling on/off too rapidly.

When the user inputs changes to the device, such as through immediate and temp_override inputs, hysteresis detection should not apply.

science commented 11 years ago

I think introducing the concept of "last time human provided input" to thermoclient would deal with this issue. Hysteresis currently only deals with heater_last_on_time and a "last_human_input_time" to use an alternative definition of when the system is out of hysteresis would solve the problem for immediate and temp_override.

Probably this would mean adding a date_time to immediate data structure so we can know when the immediate event was set.