An API client for the Airobot Thermostat local API
Project description
Python Airobot API client
A simple Python API client for interacting with Airobot smart thermostats.
Installing
Install with pip
pip install airobot_api_client
Usage
There are two versions of the client available. Synchronous and asynchrounous.
Sync version
from airobot_api_client.api import AirobotAPI
from airobot_api_client.models import ThermostatSettingsUpdateInput
api = AirobotAPI(<THERMOSTAT_IP>, <USERNAME>, <PASSWORD>)
settings = api.get_settings()
status = api.get_status()
new_settings = ThermostatSettingsUpdateInput(BOOST=True)
updated_settings = api.set_settings(new_settings)
Async version
import asyncio
from airobot_api_client.async_api import AsyncAirobotAPI
from airobot_api_client.models import ThermostatSettingsUpdateInput
async def async_main():
async with AsyncAirobotAPI(<THERMOSTAT_IP>, <USERNAME>, <PASSWORD>) as api:
settings = await api.get_settings()
status = await api.get_status()
new_settings = ThermostatSettingsUpdateInput(BOOST=True)
updated_settings = await api.set_settings(new_settings)
asyncio.run(async_main())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airobot_api_client-0.4.1.tar.gz.
File metadata
- Download URL: airobot_api_client-0.4.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6853d96343310aab285952392e43e1ec48aed515ad64e8c948c5398ef9e0716d
|
|
| MD5 |
affcba9019bd8f8a488c1a4f557ea35d
|
|
| BLAKE2b-256 |
c604ceec1c1e246f569b783b7f2084cf1e9c0f2d4f34ca18b32b03e062149312
|
Provenance
The following attestation bundles were made for airobot_api_client-0.4.1.tar.gz:
Publisher:
pip_publish.yml on aparelo/airobot_api_client_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airobot_api_client-0.4.1.tar.gz -
Subject digest:
6853d96343310aab285952392e43e1ec48aed515ad64e8c948c5398ef9e0716d - Sigstore transparency entry: 180707222
- Sigstore integration time:
-
Permalink:
aparelo/airobot_api_client_python@934f48b0757a8f08e5bf62345f092aa32f4ea8cc -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/aparelo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pip_publish.yml@934f48b0757a8f08e5bf62345f092aa32f4ea8cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file airobot_api_client-0.4.1-py3-none-any.whl.
File metadata
- Download URL: airobot_api_client-0.4.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64abaeb3573de203a1f79388f1dce5c6ad4acd28eefb7bac396c062db0e80dab
|
|
| MD5 |
268451edbc5bd6a9df06ee29a679937b
|
|
| BLAKE2b-256 |
b5697080195a51a419d4c8d15b05e5e4702ba4f76ef07ddda4b47ab7e67d9732
|
Provenance
The following attestation bundles were made for airobot_api_client-0.4.1-py3-none-any.whl:
Publisher:
pip_publish.yml on aparelo/airobot_api_client_python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airobot_api_client-0.4.1-py3-none-any.whl -
Subject digest:
64abaeb3573de203a1f79388f1dce5c6ad4acd28eefb7bac396c062db0e80dab - Sigstore transparency entry: 180707226
- Sigstore integration time:
-
Permalink:
aparelo/airobot_api_client_python@934f48b0757a8f08e5bf62345f092aa32f4ea8cc -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/aparelo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pip_publish.yml@934f48b0757a8f08e5bf62345f092aa32f4ea8cc -
Trigger Event:
push
-
Statement type: