Overview Husqvarna Automower



This function block controls a Husqvarna robotic mower via the official Automower Connect API (cloud). The mower can be started, paused and parked, and its status (activity, state, battery, error) is shown on the outputs. One block controls one mower; if there are several mowers, create one block per mower (all blocks use the same credentials).

The mower requires a Connect module or a built-in cellular connection and must be set up in the Husqvarna Automower Connect app.

Credentials (one-time setup):
  • Sign in at developer.husqvarnagroup.cloud with the existing Husqvarna account (Automower Connect app).
  • Create a new application under "My applications" (any name, the redirect URL can be left empty or set to a placeholder).
  • Connect both APIs "Authentication API" and "Automower Connect API" to the application (Connect new API).
  • Enter the displayed Application key and Application secret in the block parameters.
Important: The API is limited to 10,000 requests per month per application key. The block therefore polls the status cyclically at most every 300 seconds. Status changes (e.g. a start via the app) additionally arrive in real time through a permanent WebSocket connection, which does not count towards the limit. Commands always take effect immediately.



Inputs

ST
Start
Positive edge: the mower starts and mows for the duration from the input Mowing time min (0 or not connected = parameter Start duration). The schedule is overridden for this duration.
PA
Pause
Positive edge: the mower stops at its current position.
PK
Park
Positive edge: the mower returns to the charging station and stays parked until further notice (the schedule is overridden until Resume schedule is triggered).
PZ
Park until schedule
Positive edge: the mower returns to the charging station and resumes operation with the next scheduled mowing session.
ZP
Resume schedule
Positive edge: an active override (start, park) is cancelled and the mower follows its schedule again.
MD
Mowing time min
Mowing duration in minutes for the Start input. 0 or not connected = the parameter Start duration is used.


Outputs

ER
Communication error
1 = the connection to the Husqvarna API is disturbed (wrong credentials or cloud not reachable).
VB
Connected
1 = the mower is connected to the Husqvarna cloud. 0 = the mower is offline (e.g. no cellular reception), commands are not possible.
MA
Mowing
1 = the mower is currently mowing (activity = 1).
AK
Activity
Current activity of the mower:
  • 0=Unknown
  • 1=Mowing
  • 2=Going to charging station
  • 3=Charging
  • 4=Leaving charging station
  • 5=Parked in charging station
  • 6=Stopped in garden (intervention required)
  • 7=Not applicable
ZU
State
Operating state of the mower:
  • 0=Unknown
  • 1=In operation
  • 2=Paused
  • 3=Restricted (e.g. parked by schedule)
  • 4=Off
  • 5=Stopped
  • 6=Error
  • 7=Fatal error
  • 8=Error at power up
  • 9=Waiting for update
  • 10=Waiting for power up
  • 11=Not applicable
BA
Battery %
Current battery charge level in percent.
FC
Error code
Error code of the mower, 0 = no error. The meaning of the codes is described in the Husqvarna documentation (e.g. 1 = Outside working area).
NS
Next start
Time of the next scheduled start as text in the mower's local time, format DD.MM.YYYY hh:mm (e.g. "21.07.2026 08:15"). Empty = no start scheduled.


Parameters

Application Key
Application key from the Husqvarna developer portal (see above). Also used as the API key for every request.
Application Secret
Application secret from the Husqvarna developer portal.
Mower (name or index)
Selects the mower if the account contains several mowers. Empty = first mower. Enter the name from the Automower app (case-insensitive) or the index starting at 0.
Poll interval
Cycle for the full status synchronisation in seconds (minimum 300, default 300). Do not set it lower because of the API limit of 10,000 requests per month. Status changes arrive in real time through the WebSocket connection regardless of this setting.
Start duration
Default mowing duration in minutes for the Start input if the input Mowing time min is not used (default 180).
Debug
On = extended trace output for troubleshooting.