Skip to main content

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

airobot_api_client-0.4.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

airobot_api_client-0.4.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for airobot_api_client-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6853d96343310aab285952392e43e1ec48aed515ad64e8c948c5398ef9e0716d
MD5 affcba9019bd8f8a488c1a4f557ea35d
BLAKE2b-256 c604ceec1c1e246f569b783b7f2084cf1e9c0f2d4f34ca18b32b03e062149312

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file airobot_api_client-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for airobot_api_client-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64abaeb3573de203a1f79388f1dce5c6ad4acd28eefb7bac396c062db0e80dab
MD5 268451edbc5bd6a9df06ee29a679937b
BLAKE2b-256 b5697080195a51a419d4c8d15b05e5e4702ba4f76ef07ddda4b47ab7e67d9732

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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