Skip to main content

Async Python client for the Husqvarna Automower Connect API v1

Project description

aiohusqvarna

Async Python client for the Husqvarna Automower Connect API v1.

Built for and maintained alongside the gardena_smart_system_ng Home Assistant integration, which uses it together with its sibling library aiogardenasmart (GARDENA smart system API v2). It shares the GARDENA OAuth2 authentication layer, so a single Husqvarna developer application can drive both Automower and GARDENA devices.

Not to be confused with aioautomower. That is a separate, unrelated project by Thomas55555, used by Home Assistant's built-in husqvarna_automower integration. The two libraries have different APIs and are not drop-in replacements for each other. This package was renamed from an internal aioautomower module precisely to remove that collision.

Installation

pip install aiohusqvarna

Usage

import aiohttp
from aiogardenasmart.auth import GardenaAuth
from aiohusqvarna import AutomowerClient

async with aiohttp.ClientSession() as session:
    auth = GardenaAuth(client_id, client_secret, session)
    client = AutomowerClient(auth, session)

    mowers = await client.async_get_mowers()
    for mower in mowers:
        print(mower.name, mower.state)

A WebSocket client for real-time status updates is available via aiohusqvarna.websocket.

Features

  • Automower Connect REST API v1 (mower list, status, commands)
  • Real-time updates over the Automower Connect WebSocket
  • Typed models (py.typed, mypy strict)
  • Shared OAuth2 auth with aiogardenasmart

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiohusqvarna-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiohusqvarna-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file aiohusqvarna-0.1.0.tar.gz.

File metadata

  • Download URL: aiohusqvarna-0.1.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aiohusqvarna-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ddb9084c8f3d5ebab86ac3bdc56b0303b3ac1123a79aae68bcbffdfef390cdf2
MD5 4b0af9279d952fbfcdb62e5fd61fb339
BLAKE2b-256 4e5b6828dc94d3f75040f6abf67d2067f12f2862543b3f7581a24eab4b5d5fbf

See more details on using hashes here.

File details

Details for the file aiohusqvarna-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiohusqvarna-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aiohusqvarna-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a138619be5d1f2d7fbe0f7774e7cb17a3744ef4db63193cc7ed795cbee61d30
MD5 9f70f6ae355cdaea4c97b9496fbb6570
BLAKE2b-256 60f63ce957a715860f7593b94e8a1a84570659cb2532d6a94e05f3686d39162b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page