Closed science closed 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.
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.