-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
hvac_action attribute stays in "heating" state even if Better Thermostat is turned off. #1193
Comments
I've put together a very simple fix for this, you can find the PR here: #1192. Can you please review and approve it? |
I have the same issue too, and would be happy to test #1192 if needed. |
If you want to give it a try on your local HA instance, you can just apply the patch I posted here. In practice, you just need to edit the file at: /config/custom_components/better_thermostat/climate.py, line 1103 and add the following condition to the if: Then restart HA and you should see it working. However, until this PR gets merged into BT component, this manual patch would disappear next time you update BT addon. |
I've implemented that change, with a HA restart, but didn't see any change to the behaviour. Not sure if the fact I single mode TRVs (they only have a heat mode). I did note that the BT climate entity state goes to "off" when you set the temp lower than the actual, regardless of the BT mode chosen. |
Weird, I also have heat-only TRV and it works fine with the fix. |
Thank you for the suggestion. Although that fix solves it half way. At least with the new climate card, at least with any thermostat I've got, when you turn it off the target temperature disappears from the card. The target temperature needs to be None in order for that to happen. Currently BT doesn't clear the target temperature when hvac_mode it switched to Off. This results in the target temperature always being displayed on the card, which is unlike and "underlying" thermostat that I've got. So, I've added these 2 highlighted lines. Maybe it's best @LeoCal includes it in his PR, unless there is something wrong with it. It's a quick patch but it should work. It don't mess with storing the value, just in the getter, in case hvac_mode is off I return None. |
With the changes suggested be @LeoCal and @zolakt , I find that adding the below highlighted code resolves this completely for me. HVAC action staying as "heating" and the UI showing a target when off. As this enables the climate "hvac_action to go to "idle", when the thermostat had a set temperature above current temp, and was then set to mode off. Without that change, the entity still thinks it's heating when it's used as an icon on an entity page. |
thanks for your inputs on this. If you still see issues after this merge, it would be great if you could open a PR with the additional changes you suggested so that the entire community would benefit from your fixes! Cheers |
@LeoCal yes its in the current Beta loop of 1.5.0, feel free to check it out and test the Changes |
If anyone is interested, after 1.5.0, I've had to modify my patch to:
|
Prerequisites
Description
Better Thermostat's hvac_action attribute stays in "heating" state even if Better Thermostat is turned off.
Steps to Reproduce
Expected behavior:
When turning on Better Thermostat, its hvac_attribute should move to "idle".
Actual behavior:
When turning on Better Thermostat, its hvac_attribute stays in "heating" state.
Versions
HA Version: 2023.12.1
BT version: 1.4.0
The text was updated successfully, but these errors were encountered: