-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
radiotherm still losing connectivity but is it just how HA processes entity updates? #25701
Comments
I am having similar issues -- Should I open a new Issue, or add to this one? |
I have the same issue. I'm on 0.101.3 running virtual environment on a RPI. I have a CT50 thermostat and it responds instantly to the /tsat/ url. |
Same issue here. 0.102.3 in venv on RPI. CT80 thermostat. |
I just updated to hass.io 0.104.3, and continue to have a similar issue. I get pages of |
Since updating to 0.105 I cannot communicate with my CT50 Radio Thermostat anymore. At lease I don't see any information in the log and my entity is invalid. I will debug some more tonight. |
I was just getting ready to update to 0.105 - but now think I'll wait... |
Not sure if there was a fix or not, but I just updated to 0.105.2 and my thermostats are back working. |
I'm on 0.105.4 and have the same issue. In addition to the 10 second errors, I'm also noticing unreachable errors.
The thermostat is reachable via its app and web interface. |
Attached log. Similar to previous comments except I'm on HA 0.106.2 and Python 3.8. In troubleshooting, I find that the unit really is dropping link for a second. That part is ok, but it is not being handled gracefully. |
I ran some connection statistics against my CT50.
Note that 61s max is an outlier, but about 1 of every 20 hits against the CT50 took 7-9 seconds. With two queries in the update and no timeout, it's easy to see why the thermostat update fails to complete within 10 seconds sometimes. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I confirmed that this is still an issue as of 0.114.3. Recent changes though, may have made this a more tractable problem. I suspect using |
I am also still having to restart Home Assistant periodically to fix this issue as of 0.114.3 (indeed this morning), however it has gotten less frequent over time. I agree with vinnyfuria that perhaps putting some error catching in would be beneficial. |
I think I've figured out a fix for this. It requires this upstream change to the radiotherm library. Once that is merged, wrapping all this component's network calls in I'll submit a PR to HASS once the upstream library is patched. 🤞 |
Thanks, @vinnyfuria!
|
I upgraded to 116.4 due to ONVIF issues at 116.3 and as usual the RadioTherm did not correct. I always end up needing to restart. Today however after several restarts - no climate.my_thermostat after several restarts Logger: homeassistant.components.radiotherm.climate Unable to connect to Radio Thermostat: 192.168.1.28 During handling of the above exception, another exception occurred: Traceback (most recent call last):
|
Use updated radiotherm (2.1.0) library which supports passing timeouts to the requests library. Having, then catching, these timeouts prevents the radiotherm compoenent from locking up.
It's taken a while, but #45482 is now submitted to home-assistant core. I've been running a version of this code locally for about 6 months and have not seen the component stall in that time, so I have confidence that the mentioned PR will resolve this ticket. |
Thank you, Vinnie.
…On Sat, Jan 23, 2021, 8:40 PM Vinny Furia ***@***.***> wrote:
It's taken a while, but #45482
<#45482> is now submitted to
home-assistant core. I've been running a version of this code locally for
about 6 months and have not seen the component stall in that time, so I
have confidence that the mentioned PR will resolve this ticket.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25701 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTUHCOYDXTS7GUO4QJUG4TS3N275ANCNFSM4IJHEMBQ>
.
|
Home Assistant release with the issue:
Home Assistant 0.96.5
Frontend version: 20190721.1 - latest
Last working Home Assistant release (if known):
unknown
Operating environment (Hass.io/Docker/Windows/etc.):
Docker version 19.03.1
Component/platform:
https://www.home-assistant.io/components/radiotherm/
Description of problem:
Once the log shows that an update is taking more than 10 seconds, all subsequent updates appear to fail until HA is restarted.
Thermostat is reachable directly via http://host/tstat and responds with a json payload as expected.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
For background, there were previous connectivity concerns: #8404
Also, I'm no python expert, but I was looking at the following code:
It seems that the async with mechnism will release the lock but what happens if it never comes back? Does it make sense to add timeout support where platforms can have an abort API method where they can handle cancellation for things like HTTP requests they may be making?
The text was updated successfully, but these errors were encountered: