Until recently, I used the HACS Husqvarna Automower integration, which also worked without any problems.
In March, the integration was then transferred to Homeassistant 2024.3.
Since then, I can still read all the sensors, but the controls no longer respond. I can no longer start or pause the mower. There are 404 errors in the log. I have already renewed the complete setup, also in the Husqvarna developer page, without success.
Does anyone else have experience with the integration? Does it work for you? Do you also have problems?
MRobi
(Mike)
May 11, 2024, 8:40pm
2
Updated today and it completely broke everything automower related for me.
Especially the new lawn_mower entity class. Doesn’t work with the custom vacuum cards I had been using with my automower for years. No camera entity either, so that card is broken. Automations don’t work because controls are all different.
It’s cool that it’s now a native integration, but it would have been nice if it could have kept some things the same. Really really not a fan. Guess it’s time to start over with automower and home assistant.
I talked to the developer and the integration doesn’t do more than enabling and disabling the Husqvarna schedule. „Start Mowing“ just enables the schedule. You can’t start the mower directly.
MRobi
(Mike)
May 20, 2024, 4:16pm
4
That explains the issue I’ve been having with service calls. Kind of useless IMO. Hopefully somebody forks the custom component and keeps it going because this official integration doesn’t compare.
Just tell him, I already did. This integration doesn’t work like a lawn mower integration should work at all.
opened 04:06PM - 12 Apr 24 UTC
integration: husqvarna_automower
### The problem
I used the Husqvarna HACS integration before and switched to … the core implementation now.
I can see all sensors and diagnose data, but I can’t start and stop the mower. That makes it quite unusable for me. After pressing „Mähen beginnen“ (don’t know the english original text, „Start mowing“ perhaps) after some time I get an overlay with „Fehler beim Aufrufen des Diensts lawn_mower/start_mowing. Command couldn't be sent to the command queue: Error from API: 404: Not Found“ Doesn't matter if I use the integration UI or the services.
I already deleted the old app on Husqvarna developer page, generated a new one, deleted the integration from Homeassistant and added it again, nothing helps.
### What version of Home Assistant Core has the issue?
core-2024.4.3
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
husqvarna_automower
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/husqvarna_automower
### Diagnostics information
The error log says this:
```
2024-04-12 17:28:43.441 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140480677314880] Command couldn't be sent to the command queue: Error from API: 404: Not Found
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 148, in _raise_for_status
resp.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1070, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://api.amc.husqvarna.dev/v1/mowers/23277a77-6145-449c-aaf1-4eb11e64561d/actions')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/lawn_mower.py", line 86, in async_start_mowing
await self.coordinator.api.resume_schedule(self.mower_id)
File "/usr/local/lib/python3.12/site-packages/aioautomower/session.py", line 164, in resume_schedule
await self.auth.post_json(url, json=body)
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 93, in post_json
resp = await self.post(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 89, in post
return await AbstractAuth._raise_for_status(resp)
^^^^^^^^^^^^^^^^^^^a^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aioautomower/auth.py", line 157, in _raise_for_status
raise ApiException(": ".join(detail)) from err
aioautomower.exceptions.ApiException: Error from API: 404: Not Found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/husqvarna_automower/lawn_mower.py", line 88, in async_start_mowing
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Command couldn't be sent to the command queue: Error from API: 404: Not Found
```
And I have noticed that the schedule button often jumps back to on automatically after setting it to off. I found this in the log, without pressing the schedule button at all. Because this is the reason?
```
2024-04-12 17:28:36.795 DEBUG (MainThread) [aioautomower.auth] response={'data': {'type': 'control', 'id': '73f3239a-47a6-46ee-8f61-01cb2c737256'}}
2024-04-12 17:30:58.368 DEBUG (MainThread) [aioautomower.auth] request[post]=https://api.amc.husqvarna.dev/v1/mowers/23277a77-6145-449c-aaf1-4eb11e64561d/actions None
2024-04-12 17:30:58.368 DEBUG (MainThread) [aioautomower.auth] request[post json]={'data': {'type': 'ResumeSchedule'}}
2024-04-12 17:31:08.921 DEBUG (MainThread) [aioautomower.auth] response={'data': {'type': 'control', 'id': 'de561aac-e4c6-4070-bfe4-8721ea63bfaa'}}
2024-04-12 17:31:22.392 DEBUG (MainThread) [aioautomower.auth] request[post]=https://api.amc.husqvarna.dev/v1/mowers/23277a77-6145-449c-aaf1-4eb11e64561d/actions None
2024-04-12 17:31:22.392 DEBUG (MainThread) [aioautomower.auth] request[post json]={'data': {'type': 'ResumeSchedule'}}
2024-04-12 17:31:31.354 DEBUG (MainThread) [aioautomower.auth] response={'data': {'type': 'control', 'id': 'e897d269-5be4-40b9-8e69-68d40e571613'}}
2024-04-12 17:31:37.668 DEBUG (MainThread) [aioautomower.auth] request[post]=https://api.amc.husqvarna.dev/v1/mowers/23277a77-6145-449c-aaf1-4eb11e64561d/actions None
2024-04-12 17:31:37.668 DEBUG (MainThread) [aioautomower.auth] request[post json]={'data': {'type': 'ParkUntilNextSchedule'}}
2024-04-12 17:31:48.020 DEBUG (MainThread) [aioautomower.auth] response={'data': {'type': 'control', 'id': '4ea33eae-b61d-44a5-a3e7-36fc5faee152'}}
2024-04-12 17:31:54.085 DEBUG (MainThread) [aioautomower.auth] request[post]=https://api.amc.husqvarna.dev/v1/mowers/23277a77-6145-449c-aaf1-4eb11e64561d/actions None
2024-04-12 17:31:54.085 DEBUG (MainThread) [aioautomower.auth] request[post json]={'data': {'type': 'ResumeSchedule'}}
2024-04-12 17:32:02.992 DEBUG (MainThread) [aioautomower.auth] response={'data': {'type': 'control', 'id': '7d4cd734-2dd6-43b0-b647-57d180b7852b'}}
```
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
1 Like