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
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
poetry --build publish
Notes
Not read/used field from notification :
iduFrostWashStatus: IduFrostWashStatus
active: bool
priority: int
astUpdatedA: int
subCategory = None
errorCode = None
specialOperationStatus: SpecialOperationStatus
active: bool
priority: int
lastUpdatedAt: int
subCategory = None
errorCode = None
errorStatus: ErrorStatus
active: bool
priority: int
lastUpdatedAt: int
subCategory: str
errorCode = None
cloudId: str
opt4: int
holidayModeStatus: HolidayModeStatus
active: bool
priority: int
lastUpdatedAt: int
subCategory = None
errorCode = None
SysType: int
Not read/used field from API:
userId: str
iduFrostWash: bool
specialOperation: bool
criticalError: bool
zoneId: str
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.10.tar.gz
(55.6 kB
view details)
Built Distribution
File details
Details for the file aircloudy-0.1.10.tar.gz
.
File metadata
- Download URL: aircloudy-0.1.10.tar.gz
- Upload date:
- Size: 55.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c76fdc2409111bdc41cdf767771ac6c969bd4584a63f1ca660032b80f8a2c8 |
|
MD5 | 423be010747160aa644f70f407188ad5 |
|
BLAKE2b-256 | 7e0d673bd32c3a0e53cce27655ffa177ee318abe34f95784ea6c91bcfe132c87 |
File details
Details for the file aircloudy-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: aircloudy-0.1.10-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614684b67f7d76ef45668c32f15091244afba419da67b5f6d46ceb60f9c5289e |
|
MD5 | 24697676c7424a754af273e3de119cbc |
|
BLAKE2b-256 | 78fb7e9e26fc9c76c5ecc83d9fa8ee52ea869109713a30e4206592f7f5b60aa9 |