MPython module to talk to Husqvarna Automower.
Project description
Aioautomower
Asynchronous library to communicate with the Automower Connect API
To use this library, you need to register on the Husqvarna Developers Portal.
And connect your account to the Authentication API
and the Automower Connect API
.
Quickstart
In order to use the library, you'll need to do some work yourself to get authentication credentials. This depends a lot on the context (e.g. redirecting to use OAuth via web) but should be easy to incorporate using Husqvarna's authentication examples. See Husqvarna's Authentication API for details.
You will implement AbstractAuth
to provide an access token. Your implementation
will handle any necessary refreshes. You can invoke the service with your auth implementation
to access the API.
You need at least:
- Python 3.11+
- Poetry
For a first start you can run the example.py
, by doing the following steps
git clone https://github.com/Thomas55555/aioautomower.git
cd aioautomower
poetry install
- Enter your personal
client_id
andclient_secret
in the_secrets.yaml
and rename it tosecrets.yaml
- Run with
poetry run ./example.py
Contributing
This is an active open-source project. We are always open to people who want to use the code or contribute to it. This Python project is fully managed using the Poetry dependency manager.
As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:
poetry run pre-commit run --all-files
To run just the Python tests:
poetry run pytest
To update snapshots:
poetry run pytest --snapshot-update
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aioautomower-2024.10.0b0.tar.gz
.
File metadata
- Download URL: aioautomower-2024.10.0b0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69746b5c6900e1703e64615d0bba0c836fa4b8b392be5c673d383b0f70a4b744 |
|
MD5 | ffbe62f5608b84591fc89cd40678944f |
|
BLAKE2b-256 | 774b4ddce63a4dfe77c963a474c2b14e9516165c0514febdfd13ea3b70ecd6f9 |
File details
Details for the file aioautomower-2024.10.0b0-py3-none-any.whl
.
File metadata
- Download URL: aioautomower-2024.10.0b0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d27f2520159a2e6e391cceab36698ead556562101943e547df499bb9828dce |
|
MD5 | 782da1db98cc53bf288d95dcf70d208c |
|
BLAKE2b-256 | a601b35fc368424c5dff2a762bcdf9583c4ea5ba4dedf09e3cb0f4459a764766 |