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):
|
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:
|
| ZU |
State |
Operating state of the mower:
|
| 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. |
|