Prevent AC bed from tripping breaker?

So I went and looked at the code…
If I understand correctly the integration “window” resets whenever the I term would have become negative. That eliminates any concern about the integration window being too small to track a system with massive thermal inertia.

TLDR- Run PID tune and don’t touch the coefficients.