Open TBSniller opened 10 months ago
Hello. I'm seeing the same problem. When you open the window, everything turns off correctly (the temperature is set to +5). When closing the window, the thermostat is still off
Hello,
I'd like to report that I am experiencing a similar issue as mentioned in this thread. The problem occurs with the TRVs not automatically turning on after closing the corresponding windows. Currently, they automatically and correctly turn off after opening the window, but upon closing the window, I have to manually turn them on again.
TRV Model: GS361A-H04 Integration: Zigbee2Mqtt Better Thermostat version: 1.4.0 Tested with Home Assistant version: 2023.10.5 and 2024.1.0
+1
Found the corresponding line which is reasonable for this issue: https://github.com/KartoffelToby/better_thermostat/blob/6a349d9c54772395a06d3dc79c41a566106f9f71/custom_components/better_thermostat/events/trv.py#L206 Replacing it with a logger line confirms that it would mostly switch the BT off when a window is opened and now everything is working fine for me.
As looking at the code I guess it is to reflect the current state of the real trv, but it was forgotten that it can't be turned back on again due to https://github.com/KartoffelToby/better_thermostat/blob/6a349d9c54772395a06d3dc79c41a566106f9f71/custom_components/better_thermostat/events/trv.py#L160
@KartoffelToby Whats the real purpuse of this and are these lines really needed? Maybe it should never be that the integration is controlling its own hvac_state https://github.com/KartoffelToby/better_thermostat/blob/6a349d9c54772395a06d3dc79c41a566106f9f71/custom_components/better_thermostat/events/trv.py#L204-L209
Btw should be same issue to #1270 Please let me know if I can do something more to help Thanks!
Prerequisites
[ ] Model name of your Devices BRT-100-TRV
[ ] Output from Home Assistant Developer Tools state e.g.
[ ] Output from Home Assistant Device Diagnostic from BT
Description
Some releases ago (sorry don't know, might be some months after AI temp release) my thermostats with window sensor behave incorrectly. My BTRV is turned on to heating, which also can be seen on UI (bottom left fire symbol is red, not the one between temp and humidity). After a window is opened the trv is turned off correcly (Also no bottom left fire symbol in UI in case of not working. Fire symbol when it's working like supposed). When I close the window the state goes back to heating like it should, but most of the time immediatly gets turned off again, which can also be seen in debug logs. This doesn't happen everytime, but I guess 90% of open/closes.
Steps to Reproduce
Expected behavior TRV goes back to the state it was when window is closed.
Actual behavior:
Most of the time TRV goes back to the state it was, but immediatly turns off again.
Versions
Issue happened also months ago on earlier versions BetterThermostat:
1.5.0-beta3
HA:
2024.1.2
Additional Information
Here are some debug logs from
1.5.0-beta
and1.5.0-beta3
, because the messages look a bit different. Inbeta3
BTRV also detects some sensors as unavailable, which isn't correct from what I can see.Debug logs from 1.5.0-beta:
Debug logs from
1.5.0-beta3
:Screenshot from UI before window is opened and is set to heat:
Screenshot from UI when window is opened (first working, second not working):
Screenshot from UI after window is closed:
Log when everything works as expected from
1.5.0-beta3
:Thank you!