hass-gardena-smart-system icon indicating copy to clipboard operation
hass-gardena-smart-system copied to clipboard

Sensor / Actor values not updated

Open mplogas opened this issue 1 year ago • 20 comments

The integration stops updating the state of its devices, (e.g. Plug or Sensors). Currently, the sensors still show data from last night image image

The app is showing current data: image

After deleting the integration and adding the integration with a new key/secret it picked up the current state. I already did this 3 days ago (including re-creating the application in the Husqvarna dev portal) as the integration struggled to pick up the devices after waking them up from sleep.

Home Assistant 2023.5.2 Supervisor 2023.04.1 Operating System 10.1 Frontend 20230503.3 - latest Integration: v1.0.0

mplogas avatar May 08 '23 12:05 mplogas

Same here

dhassio avatar May 08 '23 19:05 dhassio

Unfortunately same here. I did already de-install and then re-install the integration several times. Also created new App in Husqvarna including all API syncs.

First it seems that it works again, but after some time it stops synching.

Reboot of HA seems to help for a short time - but then it stops synching again.

HA runs on Raspberry PI4 Latest HA with all updates Integration version 1.0.0 (tried also the beta 1.0.1 but couldn't it make running here).

chiquadrat14 avatar May 09 '23 10:05 chiquadrat14

The integration stopped updating the sensor values after a few hours image

However, my automation interacting with my Gardena plug is still working as expected (this is not reliable, unfortunately) image

mplogas avatar May 09 '23 11:05 mplogas

In the logs I've found this regarding Gardena integration: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 190, in start_ws await self.__launch_websocket_loop(ws_url) File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 227, in __launch_websocket_loop websocket = await websockets.connect(url, ping_interval=150) File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 654, in await_impl_timeout async with asyncio_timeout(self.open_timeout): File "/usr/local/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 169, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.10/site-packages/websockets/legacy/async_timeout.py", line 252, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

chiquadrat14 avatar May 10 '23 13:05 chiquadrat14

I also have the same issue even after re installing completly the application like advised here https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/166

After some days the integration do not work any more or at least do not update.

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 189, in start_ws ws_url = await self.__get_ws_url(location) File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 213, in __get_ws_url r = await self.client.post( File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1845, in post return await self.request( File "/usr/local/lib/python3.10/site-packages/authlib/integrations/httpx_client/oauth2_client.py", line 92, in request return await super(AsyncOAuth2Client, self).request( File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1530, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1617, in send response = await self._send_handling_auth( File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1645, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects response = await self._send_single_request(request) File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1719, in _send_single_request response = await transport.handle_async_request(request) File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 352, in handle_async_request with map_httpcore_exceptions(): File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/site-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc

grayve avatar May 15 '23 08:05 grayve

Thanks for your feedback. I'll try to see where it could come from

Grm

grm avatar May 19 '23 08:05 grm

Hey, I have the same issue. All data like humidity, battery and temperature do not refresh. Is there already a solution? I'm new to HA and think it's very awesome!

Thanks!

Skirf avatar Jun 09 '23 09:06 Skirf

After some weeks all came back as normal. I do believe there might be some serveur time to adapt to send back the request or something. Everything is working properly on my side now.

grayve avatar Jun 11 '23 08:06 grayve

For me this problem exists as well. After a while the mower sensors are not updated anymore. The time it works fine varies from several weeks to several days. I have not been able to find out what causes this behavior. Only solution for me is to delete the gardena integration and add it again with the same keys. It seems that the websocket expires or is closed without the integration noticing. Hope this van be fixed and am happy to test when necessary!

goedh452 avatar Aug 02 '23 08:08 goedh452

Same problem here, no updates on 2 different humidity sensors AND by using the HA-switch of any of my 6 valves, the switch shows "On" for 1 sec and starts the 30min count in the Gardena App, but then turns immidiately to "Off"-state without closing the valve. Problem on all 6 different valves/switches.

Could use your help, reinstall did not work for long....

martinwild1987 avatar Oct 12 '23 00:10 martinwild1987

Same issue here. Don't know how to solve it...

lukekaiwalker avatar Oct 22 '23 09:10 lukekaiwalker

1 Deactivate the Gardena integration first 2 Erase the integration on HACS 3 Reboot HA 4 Install Gardena on HACS 5 Restart HA 6 Apply the API credentials

Now it works again

martinwild1987 avatar Oct 22 '23 13:10 martinwild1987

Thanks, I have done that. Let's see if it works for me now...

lukekaiwalker avatar Oct 22 '23 17:10 lukekaiwalker

1 Deactivate the Gardena integration first 2 Erase the integration on HACS 3 Reboot HA 4 Install Gardena on HACS 5 Restart HA 6 Apply the API credentials

Now it works again

For how long? Many participants in this issue thread have reported this only fixes the issue for a few hours/days. This aligns with my observation/reporting.

mplogas avatar Oct 22 '23 17:10 mplogas

Actually working for 2 weeks now

martinwild1987 avatar Oct 22 '23 18:10 martinwild1987

Hello all, is there any update on this? I installed the Integration and have the same issue. The sensor values are not updated in HA. As there is no way reload the integration, the only solution is to restart HA.

A feedback from the developer would be appreciated.

Thanks, Joop

JHPWBN avatar Apr 03 '24 04:04 JHPWBN

Same issue here... it is still not working properly. I guess, it never worked. I would also be happy if the developers could have a look at it.

Thanks, Luke

lukekaiwalker avatar Apr 05 '24 13:04 lukekaiwalker

I did as martinwild1987 suggested in his post further up. It is working now. what I can imagine what caused the problem, is that after I had named the sensors in the Gardena App and integrated them into HA, I renamed the sensors in the App. HA changed the friendly name into the new names of the App, but the sensor.etc remained the initial name. Maybe that lead to confusion for the integration. If you did something similar then maybe a reinstall as described above will work for you too. I will lee you know if the updates stop working again

Joop

JHPWBN avatar Apr 05 '24 15:04 JHPWBN