py-smart-gardena / hass-gardena-smart-system

Home Assistant custom component integration for Gardena Smart System
Apache License 2.0
210 stars 53 forks source link

Randomly stops updating? #212

Open antgustech opened 4 months ago

antgustech commented 4 months ago

Every now and then the device in the integration simply stops updating. Now for example no values have been updated for over 3 days.

Capture

Restarting the integration seems to resolve the issue but it comes back again.

MarkusH1975 commented 4 months ago

Same for me. I have Version 1.1.1-rc3

Stoffl17 commented 4 months ago

This depends on _binary_sensor.gardena_smart_systemconnection. This gets stuck each few days. Unfortunately the only workaround now is a restart. This can be automated.

tbnobody commented 4 months ago

What service are you using to restart the gardena integration? (or are you restarting the whole HA instance?)

Fywqdk commented 3 months ago

This branch seems to have a solution for the problem. Mine hasn't lost connection since I updated.

https://github.com/py-smart-gardena/hass-gardena-smart-system/pull/209

Bucky2k commented 3 months ago

This branch seems to have a solution for the problem. Mine hasn't lost connection since I updated.

209

How do I change to this branch in HACS?

Fywqdk commented 3 months ago

Honestly I just copied the part of the code that differed from this branch into my integration manually. It is just a couple of lines of code

Bucky2k commented 3 months ago

Thanks, did the same via file editor. Curious if it will work

Fywqdk commented 3 months ago

Arh ok. I have it running in a docker container on my NAS so it's pretty easy for me to edit the files manually. That said; If you go to HACS -> Integrations -> Top right corner and click on the 3 dots -> User defined repositories (I think - it's translated to danish for me), then you can add other github repositories.  

Stoffl17 commented 3 months ago

What service are you using to restart the gardena integration? (or are you restarting the whole HA instance?)

Yes, a full restart via homeassistant.restart

Last week, I also copied the few added code-lines from this repository here to my instance and situation seems to be improved.

grm commented 2 months ago

I just released a new version 1.1.1-rc4 including all currently opened PR.

If this helps, please let me know.

basn commented 2 months ago

I just released a new version 1.1.1-rc4 including all currently opened PR.

If this helps, please let me know.

i just updated it, it took like 5 mins and it was down.. will try restart again to see if it keeps happening.. i think it was my network, so ignore above

jires commented 3 weeks ago

I just released a new version 1.1.1-rc4 including all currently opened PR.

If this helps, please let me know.

It is not so often is disconnecting right now, Trying establish connection and goes total disconnected maybe once in two weeks. Regarding network, it cannot be issue, is a rock solid. But another interesting thing is the pattern when is loosing connection. It loosing connection exact every 2 hours and restore after 10 seconds. It happening all the time, every 2 hours. Debug logs showing nothing interesting, Can it be related to this warning? WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f4ca119fd50>,) inside the event loop by custom integration 'gardena_smart_system' at custom_components/gardena_smart_system/__init__.py, line 86: await self.smart_system.authenticate() (offender: /usr/local/lib/python3.12/site-packages/httpx/_config.py, line 147: context.load_verify_locations(cafile=cafile)), please create a bug report at https://github.com/py-smart-gardena/hass-gardena-smart-system/issues