KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
876 stars 131 forks source link

Thermostats often not available #1122

Open pillemats opened 1 year ago

pillemats commented 1 year ago

HI

i am using aqara e1 thermostats with the newest version of BT and HA.

sometimes i had the problem that the therostats are not available, but the real ones do.

i found out sometimes the problem can be that some sensors i configured are not available.

now in my living room, all my sensors are online but still the TRV is not reachable in BT.

here are my configs:

Bildschirmfoto 2023-11-04 um 16 57 34

the external sensor is an aqara temperature sensor humidity is the same window and door contact are a group of binary sensors in HA outside temp is my bresser wetterstation, works over weatherundergound

can somebody help my to get a solution?

Thanks

LinuxfarmerHH commented 1 year ago

Sounds like a signal problem, here the 5yo Z-Wave mesh with plugs as repeaters is more reliable than the new bought zigbee units. Neighbors WiFi over day deplete the zigbee signal sometimes. Will buy two NOUS plugs to booster this up, my Zigbee runs at ch15 what is jammed by WiFi channel 3-4 Information about the channels WiFi vs Zigbee can be found in this thread: https://community.home-assistant.io/t/almost-at-breaking-point-with-zigbee/283768

You can take a smartphone with a WiFi scanner app to look, how busy the channels are.

pillemats commented 1 year ago

ah ok, but every other device works great. i am using over 160 zigbee devices. in my opinion i think this is enough for a good connection....

what can i do now?

pillemats commented 1 year ago

It can’t be an zigbee problem, because the real trv is available and works

pillemats commented 1 year ago

is there any solution?

SvePu commented 1 year ago

I have the same issue on only one thermostat (also Wohnzimmer) ... a quick solution would be nice.

EDIT: Fixed it! I had a missing/unknown/unset calibration number on thermostat ... setted it and it works.

SvePu commented 1 year ago

@pillemats Please enable integration debugging and check log file for issues.

Bild_2023-11-11_014919361

pillemats commented 1 year ago

Ok I did it! An now? Wait?

pillemats commented 1 year ago

I have the same issue on only one thermostat (also Wohnzimmer) ... a quick solution would be nice.

EDIT: Fixed it! I had a missing/unknown/unset calibration number on thermostat ... setted it and it works.

How did you do that? Are you using aqara e1 too?

SvePu commented 1 year ago

@pillemats Do you have some issues in log file? In case of, please post it here!

I'm using zonnsmart thermostats TS0601

pillemats commented 1 year ago

Where I can find the log?

SvePu commented 1 year ago
pillemats commented 1 year ago

Ok i will try I in the evening when i am at home

pillemats commented 1 year ago

here is the logfile

home-assistant_better_thermostat_2023-11-11T20-31-32.943Z.log

at the time i get the debug log Gästezimmer, Kinderzimmer,Küche and Wohnzimmer was not available

hopefully you can read it

pillemats commented 1 year ago

is there any solution?

now i tried to config BT without any contact sensor like door or temperatur.... the TRV in ZHA is connectet and works perfect. in BT the TRV is not available

pillemats commented 1 year ago

Any news? It is so terrible that no trv is available although the original trv is available and works great

pillemats commented 1 year ago

I don’t think that i am alone with this problem

pillemats commented 1 year ago

is there any way to get an solution?

jrabensc commented 1 year ago

Same issue for me for about a week now. Will need to analyze the logs and report back.

jrabensc commented 1 year ago

Traceback (most recent call last): File "/config/custom_components/better_thermostat/climate.py", line 563, in startup if self.hass.states.get(self.weather_entity).state in ( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'state'

From debug log.

pillemats commented 1 year ago

What this means? Please look at my log file above. Is this the same error ?

jrabensc commented 1 year ago

Just fixed this issue by removing all sensors from the thermostat, saved and added the sensors again.

pillemats commented 1 year ago

i tried this before... but the thermostats also often not available

i will try it again and will report

EDIT: It works! hopefully it is permanently fixed

pillemats commented 1 year ago

@jrabensc

one of the trv dont work.... the other works

at the one i delete the sensors and after saving i readd it... but the same as before

pillemats commented 1 year ago

now the next one is unavailable.... i think this might be a temporaly solution. i dont want to look every day in HA to delete all the sensors and add it again

cubertt commented 1 year ago

i have the same problem here... On z2m it is reachable, in better thermostat not. If i have time, ill check the logs

pillemats commented 1 year ago

@cubertt any mistake in log found?

bsafh commented 1 year ago

the BT entity switches to "unavailable" when one of the sensors needed (external temp, outside temp/weather) goes "unavailable".

So you need to check not only the TRV itself, but all of the sensors configured to use for BT for that BT as well.

pillemats commented 1 year ago

i checked this before.... all my sensors are online and works. i tested right now.

when BT switches to unavailable? because some endpoint Zigbee devices could be offline for some seconds and then reconnect

when BT directly switched to unavailable maybe its possible to build in an delay, that waits for example 1h to switch to unavailable

pillemats commented 1 year ago

I have now deleted BT and built my own automations. Now everything works perfectly, without the TRV constantly being unreachable.

It's a shame that the support here isn't that good and it just says "the problem isn't with BT"

Well, everything is working for me now.