-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't turn off BTRV after the lowest setpoint temperatur is reached (ex. window was opened) #1393
base: master
Are you sure you want to change the base?
Conversation
@TBSniller sry for the long wait... This lines should be only activate when the advanced setting "no_off_system_mode" is on. So it shoudn't be removed. |
@KartoffelToby Yeah, my thermostat seems to not support to be turned off. For what purposes are these lines needed? I'm running without them for this and the late last winter without any problems and the fixed issue. |
@TBSniller Its for the BT interface, if your Thermostat is on min temp its equal to "off" for better UX if the window or summer detection kicks in. What exacly in this code breaks your BT? |
@KartoffelToby Okay that's what I thought. Like here you would turn it back on, which I think would lead to a working window open/close function:
But this condition prevents that we ever can reach this:
|
Just want to mention I have exactly same issue as @TBSniller and fixed it in same way by removing those lines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as an suggestion
@TBSniller Sry i messed up the Github review panel, but the code shoud be updateted now, pls take a look if this workaround fixes your issue too |
@KartoffelToby Already thanks for your effort! But out of interest, why are these on off states reflected to the buttons in the UI? I now also have a feeling it could lead to false positive On's when the windows are closed again. I thought for these changes there you put in this heater symbol which goes red when it's heating |
Dont worry, take your time, i plan to merge your PR in the next release 1.6.2 The small heat icon in the middle actually has nothing to do with the MODE itself, but responds to the hvac_action attribute. If the window is open, the HVAC_MODE goes to off, if you use the UI card, you have the blue indicator with the window icon, but there is also the attribute window_open for this. If the window is closed again, BT goes back to the mode before the window was opened , i.e. HEAT or OFF, HEAT would be displayed red in the BT UI with the flame icon in red, OFF gray with the off icon in gray |
The PR works for me |
@KartoffelToby Just have checked it out. Here the flow to replicate:
After that changes to temps or binary sensor doesn't take affect to BTRV, so it stays off. I found why:
Unfortently it's still not working as Also with your explanation I'm still a bit confused why the
Changing the lines to this also reflects the changes to the UI (although when |
Hello, |
@stefanhepner This PR is not finished, so you will not find these changes in your installed integration. better_thermostat/custom_components/better_thermostat/events/trv.py Lines 204 to 209 in 509397c
|
Motivation:
After an open window was closed, the BTRVs HVACMode often changes to the OFF state, which lead to cold rooms
Changes:
_new_heating_setpoint
is the real TRVs lowest temperature:better_thermostat/custom_components/better_thermostat/events/trv.py
Lines 204 to 209 in 6a349d9
I'm not sure for what these lines are for. When the window is opened, the real TRV is automatically set to the lowest temp. Then, through these lines, the BTRV is turned off.
Don't know why the BTRV is controlled here? Maybe to reflect such changes to the UI, or is there a specific reason?
If it was for the UI feedback, then these lines make a bit sense, as the BTRV would be set back to HEAT, if
_new_heating_setpoint
goes back to a higher temperature. But then the issue here is, that this statement is never reached again, as its blocked by this if statementbetter_thermostat/custom_components/better_thermostat/events/trv.py
Line 160 in 6a349d9
So if there wasn't a real need for this kind of behavior, my changes should be enough.
Otherwise I think the logic must be fixed, so statement is reached again that turnes the BTRVs HVACMode back to HEAT. But in my opinion, it could still lead to more problems, if BTRV controls it's own HVACMode.
Related issue (check one):
Checklist (check one):
Test-Hardware list (for code changes)
Debian 11 VM 4GB and devcontainers according to CONTRIBUTION.md
HA Version: 2024.9.1
Zigbee2MQTT Version: 1.40.1-1
TRV Hardware: TS0601 (BRT-100-TRV)
New device mappings
climate.py