Autotune feature usage. #21
-
Hi all, I am trying to use HASmartThermostat, unfortunately with unsatisfactory results so far. I can't find the right kp, ki and kd parameters manually. I have made a few attempts, sometimes the temperature does not reach the set point, other times it goes far beyond (diverges). I have tried to use the auto_tuning function but I have the following problems. 1) climate:
I restart HA, (the ambient temperature is about 19 ° C) At this point (it seems) nothing happens: the heater control switch remains off so the heating does not start. 2) Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
Hello, in the latest 2021.11.8-beta4, the autotune doesn't need a step, it will directly use the set point that is set a few temperature samples after the reboot. You may use a set point aligned with your ambient temperature at time of restarting HA, for example, if your thermostat is set to 18°C but the ambient temperature is 19.7°C before restarting, you could set 19°C, then restart and let the autotuner start with this 19°C as target. It will start with a step-down, so waiting for the temperature to drop below set-point minus the noise band before switching on the heater. I would recommend you to set the
The You can check the status of the autotuner by using the "Development tools" in HA, in the "States" section. You can select your climate entity and its state and attributes will be shown, you will see the
Don't hesitate to share you results |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, If autotune fails (it really depends on the regularity of the oscillation), you can extract the required information from the temperature history manually (and you can do it as soon as you have a full period of oscillation, while the autotune often needs to wait several cycles) : This will allow computing the ultimate gain Ku: Next, depending on the autotune rule you prefer (it provides different results) you can compute the gains Kp, Ki and Kd using the divisors of the selected rule :
using the formulas below :
Example with some measures made on the chart above :
The resulting gains are a good starting point, you should then tune them to match your requirements, if you need more reactivity or stability, or to decrease an overshoot. |
Beta Was this translation helpful? Give feedback.
-
In my case autotune just not starting. State is heat, hvac_action: idle, pid_mode: off, autotune_status: off... not heating, not tuning. |
Beta Was this translation helpful? Give feedback.
Hello,
If autotune fails (it really depends on the regularity of the oscillation), you can extract the required information from the temperature history manually (and you can do it as soon as you have a full period of oscillation, while the autotune often needs to wait several cycles) :
Measure the amplitude of the oscillation
Yosc
(in degrees) and the oscillation periodtosc
(in seconds).This will allow computing the ultimate gain Ku:
Ku = 8.0 * difference / (Yosc * pi)
(difference = 100 by default)
Next, depending on the autotune rule you prefer (it provides different results) you can compute the gains Kp, Ki and Kd using the divisors of the selected rule :