A library to pilot hitachi aircloud AC
Project description
aircloudy
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
import asyncio
from typing import Tuple, Optional
from aircloudy import HitachiAirCloud, InteriorUnit, compute_interior_unit_diff_description
def print_changes(dict: dict[int, Tuple[Optional[InteriorUnit], Optional[InteriorUnit]]]) -> 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_power(unit_bureau, "ON")
await ac.set(unit_bureau.copy(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
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
aircloudy-0.1.2.tar.gz
(45.1 kB
view details)
Built Distribution
aircloudy-0.1.2-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file aircloudy-0.1.2.tar.gz
.
File metadata
- Download URL: aircloudy-0.1.2.tar.gz
- Upload date:
- Size: 45.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35ee8db6b57da1949d85ba799141bf8c44ac589aa7e17efae2d16e5216a6fd15 |
|
MD5 | 034cdec619faf5473389a25c1c58f2f4 |
|
BLAKE2b-256 | 15c0c965d91a671a2aa73c50309238820bb233eed4ac70a117879df565b8ab06 |
File details
Details for the file aircloudy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: aircloudy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 27.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c02f3622303e06ea43b864ad57774bf51954d9251ea40f0186d3b8e04ffc6aa |
|
MD5 | 30a596f40dae8ce2445975b742fa7a1a |
|
BLAKE2b-256 | e0c2a168ba58c28d7dedf817b3d240f355b30e4af7b9f5f3630a97552328dc5b |