ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
352 stars 50 forks source link

KD spiking due to erratic temperature sensors #188

Open cctl01 opened 10 months ago

cctl01 commented 10 months ago

Myself and others (in the issues section) seem want to use relatively high KD value to slowdown heating as soon as the temperature really starts to ramp up. This can lead to the undesired situation of the heater kicking in too soon due to many small fluctuations in the temperature due to the sensors resolution.

If we would average the temperature over a given time this behaviour could hopefully be eliminated and still use relatively short recording time.

I will see what the result is of this by using average sensor for the moment to take care of this.

If my trial is successful I believe this should be part of the Thermostat and I will take a stab at implementing. At this point, any thoughts or feedback is welcome.