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

Failed to call service vacuum/start. 502 : send command.

Open Aham330 opened this issue 1 year ago • 11 comments

I took the power off the Mower for a few minutes. After putting the power back on the integration fails to work.

I get a message Failed to call service vacuum/start. 502 : send command.

I have uninstalled the integration, restarted HA and then reinstalled (with the same API) but it still issue still remains.

Could you have a look.

`Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/gardena_smart_system/vacuum.py:177 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 2:59:17 PM (5 occurrences) Last logged: 3:51:39 PM

[547666826256] 502 : Send Command [546751873296] 502 : Send Command [547017732688] 502 : Send Command Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 811, in entity_service_call future.result() # pop exception if have ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/vacuum/init.py", line 423, in async_start await self.hass.async_add_executor_job(self.start) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/gardena_smart_system/vacuum.py", line 177, in start ).result() ^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 456, in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/usr/local/lib/python3.11/site-packages/gardena/devices/mower.py", line 36, in start_seconds_to_override await self.location.smart_system.call_smart_system_service( File "/usr/local/lib/python3.11/site-packages/gardena/smart_system.py", line 108, in call_smart_system_service raise Exception(f"{r.status_code} : {response['errors'][0]['title']}") Exception: 502 : Send Command `

Aham330 avatar Jul 03 '23 13:07 Aham330

@Aham330 have you recently done a firmware upgrade? I have 502 bad gateway problems and mower not starting on START_SECONDS_TO_OVERRIDE since the last update

danroeg avatar Jul 03 '23 21:07 danroeg

Hi @danroeg thanks for you reply.

unless the mower auto updated itself after having switched off the mower I dont think I updated. Nor do I think it did that cause I don’t have auto updates on.

The mower app works fine and starting my vacuum robot works fine too.

Aham330 avatar Jul 04 '23 04:07 Aham330

I'm having similar issues here. The mower works fine in the Gardena app, but home assistant can no longer start it.

If I recall correctly there was an update for the mower a couple of weeks ago, which had to manually be installed in the app and required a reboot. Even after this update everything was fine, until a couple of days ago.

gijs007 avatar Jul 06 '23 19:07 gijs007

yes sounds familiar. please also write to husqvarna dev team to fix the api

danroeg avatar Jul 06 '23 21:07 danroeg

Hello,

My mower felt off and is not connected for a few weeks now.

I'll try to find some time this week end to install it and reproduce the issue.

Le jeu. 6 juil. 2023 à 23:01, danroeg @.***> a écrit :

yes sounds familiar. please also write to husqvarna dev team to fix the api

— Reply to this email directly, view it on GitHub https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/178#issuecomment-1624304322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGI2BGAYG7BMILS22URTXO4RSTANCNFSM6AAAAAAZ4PY4HU . You are receiving this because you are subscribed to this thread.Message ID: <py-smart-gardena/hass-gardena-smart-system/issues/178/1624304322@ github.com>

grm avatar Jul 07 '23 13:07 grm

Hi @grm

Any luck with the reproduction?

greets

Aham

Aham330 avatar Jul 11 '23 12:07 Aham330

Hello, any updates here?

danroeg avatar Jul 12 '23 08:07 danroeg

This is a problem for me as well. I get the error vacuum/start. 502 : connection lost

j3mu5 avatar Jul 19 '23 17:07 j3mu5

thanks j3mu5. meanwhile i’ve been experimenting with the serviceId parameter of the native gardena smart api, with or without :cbtg suffix as suggested elsewhere. nevertheless start_seconds_.. no longer works with the sileno

danroeg avatar Jul 19 '23 18:07 danroeg

OK. This stuff never ceases to amaze me.

After just pressing play in Home Assistant today to get my Mower going and mowing, it, contrary to all expectations, left the garage and started. Funny thing being that I did not change anything on either side of the installation. So not on the side of the Mower and not on the side of HA.

What I did do following the suggestion of @danroeg is write the following to Husqvarna:

Scherm­afbeelding 2023-07-25 om 11 52 13

Should Husqvarna have been involved in fixing this issue I would like express my thanks and at same time ask to comment either here or reply to the email I sent. So as to establish a two communication with which we could possibly float idea's for the greater community and your costumers.

Aham.

Aham330 avatar Jul 25 '23 09:07 Aham330

@Aham330 thanks for the update - I’ve tested and indeed I can once again manually start the mower, which is a great relief. Thank you for chasing Husqvarna and good luck with the pets.

danroeg avatar Jul 25 '23 13:07 danroeg