Check whether heater needs to be turned off be because all valves are closed.#160
Merged
Alexwijn merged 1 commit intoAlexwijn:developfrom Feb 28, 2026
Merged
Conversation
… closed. If all valves close while the heater state is on, the heater state wasn't turned off. The valve check has been moved up and the heater state is forced off, if all valves are closed while SAT decides it should heat.
Contributor
WalkthroughThe climate component's heater state-handling logic is enhanced to check valve status before activation. When turning ON, if valves are closed, the system either turns off an active heater or prevents activation. If valves are open, previous behavior is preserved. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Owner
|
Thanks! |
Alexwijn
approved these changes
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If all valves close while the heater state is on, the heater state wasn't turned off. The valve check has been moved up and the heater state is forced off, if all valves are closed while SAT decides it should heat.
My setup is as follows:
I've implemented this fix locally and it kicked in 4 times over the past day and suppressed heating for 2.5 hours in total. The primary cause seems to be the cold room I mentioned. The generic_thermostat for that room has a cold tolerance of 0.3. However, it is including the error of that room in its calculations regardless of the generic_thermostat state. Arguably the correct fix is to change that. I may still do this for my own setup and upstream those changes, but that doesn't negate the need for this fix. The boiler should never be turned off if all valves are closed.
Summary by CodeRabbit
Bug Fixes