Homey Community Forum

[APP] Husqvarna Automower Connect

Athom Homey app to control any Husqvarna Automower equipped with Automower Connect.

Currently available in the Community App Store (Thanks @MaxvandeLaar) Homey Community Store.
And also in the official store:
https://homey.app/sv-se/app/com.husqvarna.automower/Husqvarna-Automower-Connect

SDK
SDK3 (Homey V5)

Capabilities

  • Activity
  • State
  • Mode
  • Errorcode
  • Batery level

Triggers

  • Activity changed
  • State changed
  • Mode changed
  • Errorcode changed
  • Battery level changed

Conditons

  • Activity is
  • State is

Actions

  • Pause
  • Park
  • Park for duration
  • Park until scheduled start
  • Resume
  • Start for duration

Device settings

  • Polling enabled
  • Polling interval

App settings

  • Username
  • Password
  • Appkey

Installation

  • Register for a (free) account on Husqvarna developer portal Husqvarna Group Cloud - Developer Portal
  • Create an ‘application’ in the developer portal to get an appkey
  • Install app in Homey
  • Configure credentials in Homey App settings. You need. 1. Your Husqvarna developer username. 2.
    The password and 3. An app key.
  • Add your mower as an device in Homey
  • Use triggers, conditions or actions in your Homey flows or check status in the device overview.

How do i get the ‘app key’?
Go to Husqvarna Developer Portal and create a new app.
Connect the two APIs:

  • Authentication API
  • Automower Connect API

Where do i enter the credentials?

Rate limitations
Note that the Husqvarna API currently has an rate limitation of 10,000 calls per month and account. By default this homey app poll the Husqvarna Automower Connect API every 10 minutes. You can change this in app settings. Note - if your main usage is flow actions to control the mower, you do not need polling and it can be disabled.

Screenshots

[details screen - example where mower power is not on]

2 Likes

Changelog

  • 1.0.1 minor changes during Athom certification. Updated flow card titles, app image, description, readme
  • 1.0.0 first version available for testing in the Homey Community Store

Thanks very much for developing this!

I’m still on firmware 4.2.0 version on Homey, so I won’t be testing until a stable v5 is released. But I’ll definitely use this app.
At the moment I have my Automower connected via IFTTT that pauses my mowing schedule when the temperature reaches 4 degrees C or lower. Should be easy to build that into a flow with this app. :+1:

Hi, fantastic initiative!
My Homey Pro 4.2.0 will not accept the Husqvarna app for testing the 430x mower.
Can’t wait…:slightly_smiling_face:
Succes with development.

Perhaps premature or over-demanding…My wish is to have a GPS-position trigger of the Husqvarna 430x.

I have three main areas to mow and the 430x only has two connections for lead wires. For example, I want to make two guide wires switchable with a (Tasmota Sonoff 4ch) circuit and let Homey control it with a flow (GPS trigger) when the mower reaches one or another area.
Thx

Yes, that would likely work great. Let me know when you have tested it :slight_smile:

Yes, its v5.0 only as that likely will be out soon. Actually i have been running the 5.0 RC releases for quite some time now with zero issues so far. Let’s hope for a release soon so that we can get you to test the Husqvarna app.

The (official) Husqvarna API does not currently provide access to the mower GPS-position. But i guess if you could find another way of getting the position into Homey or maybe some other way of triggering when it enters a specific area it could be done.

I’ve tested the Husqvarna Automower Connect app ver1.0.1 with my 430X mower. Starting via a Homey flow mowing ( command resume) works, but the other commands did not work ( for testing: polling interval 1 minute). So pauze, park gave no reaction.
Once given the start mowing via Homey the original Husqvarna app did not work anymore.

That sounds strange that one command works and not another. The polling-interval is only related to updating the status in the Homey app. If you send command ‘park’ it send that to the Husqvarna API immediately regardless of the polling-interval. Also, using the mobile-Husqvarna app should not affect the Homey app at all. If i send park from on, the other will reflect this after x minutes. They both use the same API.

If you press test on a simple flow with ‘park’ - do you get a red ‘!’ next to the ‘park’ action or is it green? If it is green then the Husqvarna API should have accepted it.

As soon as the spring is here and i get mine out on the lawn i will help you troubleshoot this :slight_smile:

I discovered the problem.
If you use the command “park” in the Homey flow than the STATE is changed on the Husqvarna server into parked.
So in the Husqvarna app you’ll see the mower is parked and so the park-button in not showed in the app. And so the given pard command will not result in a park action and the mower keeps mowing.
My advise:
Remove all STATe commands from the homey app.
Greetings and thanks for your efforts

Hi Bol, and thanks for trying out the app :slight_smile:

I am not 100% sure i follow. If possible please describe in more detail on what you are trying to accomplish and what you are doing in both Homey and in the Husqvarna app. Could you do a screenshot? When you say that the state is changed to Parked i guess you mean the activity and not state right?

In the mean time it might help for me to explain some more on the Homey implementation.

The ‘actions’ are separated from triggers and ‘display of capabilities’ which both rely on the API-polling. You can use the actions even if you disable polling.

If you send an action (like ‘Park’) the capability activity will (if polling is enabled) change to ‘Going home’ on the next poll followed by a ‘Parked’ x minutes after that. The capability state should not change, it should remain ‘In operation’ the whole time. The triggers and capabilities are not updated based on the actions being done from the Homey app itself, they are only based on changes when polling the API.

The Homey app does not set ‘State’ or ‘Activity’ in the Husqvarna API, that is not possible or allowed. It can only send ‘actions’ to the API.