Replies: 2 comments 6 replies
-
From my observations, it works differently: if you set min_cycle_duration to 30 minutes and pwm set to 60 minutes, then each heating activation will last AT LEAST 30 minutes... for example: control_output = 10 -> it will activate heating for 6 minutes (because 10% of 60 minutes is 6 minutes), but due to min_cycle_duration = 30 minutes, the heating will be activated for 30 minutes. Only in the case when control_output has a value greater than 50 in this example, the heating will be activated for more than half an hour. So, what is the purpose of min_cycle_duration? Some heating devices (such as gas boilers) don't like frequent turning on and off, so, for example, min_cycle_duration=5 might be a good idea, but you must verify this with the instructions for your heating device. And one more thing, control_output = 26 at pwm=60 is not 26 minutes, but 26% of 60 minutes, which is 15 minutes and 36 seconds. If you prefer to think of the control output in terms of time, you can consider setting the PWM to 01:40:00, which is equivalent to 100 minutes. |
Beta Was this translation helpful? Give feedback.
-
The last graph shows that your pid_i is always greater than zero and continuously contributes to the control output. The integral part is the component that takes into account the system's past state, summing up the past errors. You can observe the behavior of your setup when you reset an integral part by calling the 'smart_thermostat: Clear Integral' service. HOWEVER, this action may destabilize your setup. I'd be pretty amazed if I managed to hit a difference of 0.1 degrees Celsius in my setup. At that point, I'd likely just leave the configuration alone ;) |
Beta Was this translation helpful? Give feedback.
-
How does the min_cycle_duration behaves against the control_output?
If i want to set it to, let's say, 30 minutes, if the control output generates a period of 1 minute, does this mean that the heater will not be switched on until it will generate at least 30 minutes, or does it mean that the heater will be turned on for 30 minutes no matter what the control output says (as long as it's >0)?
Also, i'm trying to understand how to calibrate the parameters but the control output has a different behaviour from what i expected:
Configuration:
Debug:
If my total output is 26%, with a pwm of 1h, why is the heater off? Shouldn't it turn the heater on for 26 minutes?
Beta Was this translation helpful? Give feedback.
All reactions