Skip to content
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

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

Open
Aham330 opened this issue Jul 3, 2023 · 11 comments
Open

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

Aham330 opened this issue Jul 3, 2023 · 11 comments

Comments

@Aham330
Copy link

Aham330 commented Jul 3, 2023

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
`

@danroeg
Copy link

danroeg commented Jul 3, 2023

@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

@Aham330
Copy link
Author

Aham330 commented Jul 4, 2023

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.

@gijs007
Copy link

gijs007 commented Jul 6, 2023

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.

@danroeg
Copy link

danroeg commented Jul 6, 2023

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

@grm
Copy link
Contributor

grm commented Jul 7, 2023 via email

@Aham330
Copy link
Author

Aham330 commented Jul 11, 2023

Hi @grm

Any luck with the reproduction?

greets

Aham

@danroeg
Copy link

danroeg commented Jul 12, 2023

Hello, any updates here?

@j3mu5
Copy link

j3mu5 commented Jul 19, 2023

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

@danroeg
Copy link

danroeg commented Jul 19, 2023

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

@Aham330
Copy link
Author

Aham330 commented Jul 25, 2023

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.

@danroeg
Copy link

danroeg commented Jul 25, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants