Skip to main content

A library to pilot hitachi aircloud AC

Project description

aircloudy

PyPI - Version PyPI - Python Version

Aircloudy is an unofficial python library that allow management of RAC (Room Air Conditioner) compatible with Hitachi Air Cloud.

This project IS NOT endorsed by Hitachi and is distributed as-is without warranty.


Table of Contents

Installation

pip install aircloudy

Usage

from __future__ import annotations
import asyncio
from aircloudy import HitachiAirCloud, InteriorUnit, compute_interior_unit_diff_description


def print_changes(dict: dict[int, tuple[InteriorUnit|None, InteriorUnit|None]]) -> None:
    for (id, change) in dict.items():
        print(f"Change on interior unit {id}: "+compute_interior_unit_diff_description(change[0], change[1]))

async def main() -> None:
    async with HitachiAirCloud("your@email.com", "top_secret") as ac:
        ac.on_change = print_changes

        unit_bureau = next((iu for iu in ac.interior_units if iu.name == "Bureau"), None)
        if unit_bureau is None:
            raise Exception("No unit named `Bureau`")

        await ac.set(unit_bureau.id, "ON")
        await ac.set(unit_bureau.id, requested_temperature=21, fan_speed="LV3")

        await asyncio.sleep(30)


asyncio.run(main())

License

aircloudy is distributed under modified HL3 license. See LICENSE.txt.

Development

poetry run task lint
poetry run task check
poetry run task test
poetry run task coverage

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

aircloudy-0.1.6.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

aircloudy-0.1.6-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file aircloudy-0.1.6.tar.gz.

File metadata

  • Download URL: aircloudy-0.1.6.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for aircloudy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 da8070ad6f9a5fa9ee471ae1ce79e84b06cc57a82a3bbc012bb8ea152fc8cfb5
MD5 98877406fc8fefc80558efff6efefb17
BLAKE2b-256 b2082c3b21b0a160b49698bf04507a47941e40cf45ecfbd3e96142cea24f4e10

See more details on using hashes here.

File details

Details for the file aircloudy-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: aircloudy-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for aircloudy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8c0ae8aaa14c3434542cdbf2a8dec60846c71b9cc311c040fe240a5bdec802d2
MD5 509f2c2b88d116795e6a8d06f1d1a57f
BLAKE2b-256 d5f5b3cffdcf5fe536e216d67948817011f51da90b0250956df77f33dbaab262

See more details on using hashes here.

Supported by

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