soloam / ha-pid-controller

PID Controller to Home Assistant
MIT License
97 stars 12 forks source link

PID doesnt update until current temp change #37

Open sygys opened 1 year ago

sygys commented 1 year ago

A fundamental flaw in this PID i have seen so far is the lack of updating while the current temp stays the same. There are scenarios you can think of where the temperature is stable but the setpoint is changed 2 degrees higher. For as far as i have seen this PID only changes its output when the current temp is changing. so if for example the temperature is 10 degrees to cold it wil stay at 0 as long as the current temp is not changing. whil it should tune up the value as long as there is a difference. not waiting for the temp to change.

jasperweiss commented 1 year ago

What sort of thermostat doesn't change its output when the setpoint changes? I need it to preferably change whenever the input, p|i|d parameter or setpoint changes. I tried forcing it to update using the homeassistant update entity service but that does not work (neither the pid sensor itself or the temperature sensor)