Husqvarna Automower monitoring

I have been using the automower custom integration made by walthowd for over a year now without any difficulties, but since a reboot due to an upgrade to the latest HA version, it will no longer connect.
Am I the only one facing this issue?
For your convenience, it is this integration that I’m talking about: GitHub - walthowd/ha-automower: Automower Custom Component for Home Assistant.
@walt – any thoughts?

Here’s the log, right after the restart of HA:

This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/automower/__init__.py:217
Integration: automower (documentation)
First occurred: 19:21:49 (1 occurrences)
Last logged: 19:21:49

Error during setup of component automower
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/automower/__init__.py", line 217, in setup
    robots = api.list_robots()
  File "/usr/local/lib/python3.9/site-packages/pyhusmow/husmow.py", line 162, in list_robots
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://amc-api.dss.husqvarnagroup.net/v1/mowers

I checked the swagger from the Husqvarna dev site and noticed something: They refer to api.amc.husqvarna.dev/v1 being the server, whilst the custom integration uses api.dss.husqvarnagroup.net/v1. Am I onto something here?

same here: upgrade to 2022.03 version gave me the same error

What is the difference between
GitHub - walthowd/ha-automower: Automower Custom Component for Home Assistant (apparently without API keys)
GitHub - Thomas55555/husqvarna_automower: Custom component for Home Assistant to monitor and control your Husqvrana Automower (uses API keys)
and others.

What is the best way to integrate an Automower connected to Automower Connect (LTE) as of 2022?

I was using walthowd until it stopped working.

I changed now to Thomas55555 and this is working fine. Same features.

1 Like

Do you get a status from the entity, like blocked, mowing or charging or is it only the default states of a vacuum cleaner?

{{ states('vacuum.automower') }}
returns only
docked /cleaning /idle /paused /returning /error
or more detailed from the API?

(I can’t test it yet)

Is it possible to force mow/charge without setting a duration? Or should I set 999999999 and then just stop when appropriate? I will probably set the schedule of the mower itself to “never” so that HA is always in charge.

service: husqvarna_automower.park_and_start
data:
  command: Start
  duration: 999999999
target:
  entity_id: vacuum.automower_r_315x_haffi

What means pause? Is it just standing still?

What means pause? Is it just standing still? - Yes

1 Like

How often can you poll the mower? Is it possible to poll every minute when needed and not update at other times, such as night time?

i think this is regulated by husqvarna, they have a description. maybe they’ll write more about it here.
https://developer.husqvarnagroup.cloud/

It is regulated but can I refresh the integration manually only when I need an update?

Hi, I have been creating a new integration this week for Robonect Husqvarna, perhaps useful for some of you…

1 Like

So, current status (in dev environment):

  • Config flow working, including setup for MQTT & REST API
  • I have written a Python library, called it aiorobonect (aiorobonect · PyPI) which I am using in the integration, to make it more standard (who know perhaps it will become a standard HA integration)
  • MQTT autodiscovery is working
  • MQTT entities are added. Currently supported: device_tracker (for GPS enabled devices), vacuum, buttons (for the actions) and sensors
  • The REST API sensors are “under construction”

image
image


image

Hi, i have setup the api acces in the husqvarna developers environment, next step is integrate the husvarna integration in HA. but when i load the integration i dont have an device or entities. what is going wrong? Schermafbeelding 2023-06-16 om 14.41.18