PyAiraHome
PyAiraHome is a comprehensive Python library that provides both cloud-based and Bluetooth Low Energy (BLE) connectivity to Aira Home heat pump systems.
📝 Table of Contents
🧐 About
PyAiraHome is a comprehensive Python library that enables developers to access Aira Home devices. The library provides seamless integration with Aira's cloud infrastructure via secure gRPC services, enabling remote monitoring, control, and data retrieval from anywhere with internet connectivity. Additionally, it offers direct Bluetooth Low Energy (BLE) communication for local device interaction, better data coverage and complete with message encryption for secure data exchange.
PyAiraHome features an intuitive object-oriented API that supports both raw protobuf responses and convenient Python dictionaries, comprehensive error handling, and detailed type annotations.
🏁 Getting Started
These instructions will get you a copy of the project up and running on your local machine for development. If you're looking for a fully-fledged, prebuilt working solution instead, check out ha-airahome, a Home Assistant integration built on top of this library. A standalone dashboard is also available at AiraHome-Dashboard, although it's currently not being further developed and only supports cloud access.
Prerequisites
- Internet connection - Required for cloud-based features and authentication
- Bluetooth Low Energy (BLE) capability - Required for local device communication and full data coverage (ensure you're within range of your Aira Brain)
Installation
Install PyAiraHome directly from PyPI using pip:
$ pip install pyairahome
🎈 Usage
Quick Start
Here's a basic example showing cloud functionality:
from pyairahome import AiraHome
# Initialize the library
aira = AiraHome()
# Cloud authentication
aira.cloud.login_with_credentials("email@example.com", "password")
# Get device information
devices = aira.cloud.get_devices()
device_id = devices["devices"][0]["id"]["value"]
print(f"Found device: {device_id}")
# Get current device state
states = aira.cloud.get_states(device_id)
print(f"Current temperature: {states['heat_pump_states'][0]['current_hot_water_temperature']}")
Cloud API Examples
Authentication and Device Management
# Login with credentials
aira.cloud.login_with_credentials("email@example.com", "password")
# Alternative: Login with existing tokens
# aira.cloud.login_with_tokens("id_token", "access_token", "refresh_token")
# List all devices
devices = aira.cloud.get_devices()
print(f"Found {len(devices['devices'])} devices")
# Get detailed heatpump information
household_id = devices["devices"][0]["device_id"]["household_id"]["value"]
device_details = aira.cloud.get_heatpump_details(household_id)
print(f"DHW Tank Size: {device_details['heat_pump']['tank_size']}")
Monitoring and Control
# Get current device states
device_id = devices["devices"][0]["id"]["value"]
states = aira.cloud.get_states(device_id)
print(states)
# Send commands to device
from pyairahome.commands import Ping
for update in aira.cloud.run_command(device_id, Ping()):
print(f"Command status: {update}")
Bluetooth Low Energy (BLE) Examples
Device Discovery and Connection
# Discover nearby Aira devices
devices = aira.ble.discover(timeout=5)
print(f"Found {len(devices)} BLE devices")
# Connect to a specific device by UUID
connected = aira.ble.connect_uuid("your-device-uuid-here")
if connected:
print("Successfully connected via BLE")
# Get device configuration
config = aira.ble.get_configuration()
print(f"Device configuration: {config}")
else:
print("Failed to connect")
Working with Raw vs Processed Data
# Get processed data (Python dictionaries)
devices = aira.cloud.get_devices(raw=False) # Default
print(type(devices)) # <class 'dict'>
# Get raw protobuf data
devices_raw = aira.cloud.get_devices(raw=True)
print(type(devices_raw)) # <class 'pyairahome.device.v1.devices_pb2.GetDevicesResponse'>
Complete Example
from pyairahome import AiraHome
import time
# Initialize and authenticate
aira = AiraHome()
aira.cloud.login_with_credentials("email@example.com", "password")
# Get device information
devices = aira.cloud.get_devices()
if devices["devices"]:
device_id = devices["devices"][0]["id"]["value"]
print(f"Working with device: {device_id}")
# Try BLE connection for enhanced data
try:
connected = aira.init_ble()
if connected:
print("BLE connection established - enhanced data available")
additional = aira.ble.get_system_check_state()
print(f"Additional system states: {additional}")
except Exception as e:
print(f"BLE connection failed: {e}")
print("Continuing with cloud-only mode...")
# Monitor device state
states = aira.cloud.get_states(device_id)
print(f"Device status: {states}")
else:
print("No devices found")
Note: Replace
"email@example.com"and"password"with your actual Aira Home credentials. For BLE functionality, ensure you're within range of your Aira Brain.
📋 Todo(s)
- Implement BLE commands functionality
- Tests...
- Implement Solar cloud (and ble?) functionality
- Replace short comments with more exhaustive ones
- Create an actual documentation with more examples
Suggestions and contributions are welcome! Feel free to open an issue or pull request with your ideas.
🌐 Community
If you enjoy this project and want to connect with other users, we'd love to see you in our community. Come and join us at airausersforum.com!
☕ Support me
I created and currently mantain this project because I genuinely enjoy doing so. No need to tip — but if you’d still like to show some appreciation you can do it by clicking on the button below, thank you!
⚠️ Disclaimer
PyAiraHome is an independent, open-source software library developed for interacting with Aira Home heat pumps via their app gRPC APIs and Bluetooth Low Energy protocols. This project is not affiliated with, endorsed by, sponsored by, or associated with Aira Home or any of its subsidiaries, affiliates, or partners.
Important Legal Notice
- 🔒 This project is not an official product of Aira Home
- ⚖️ Use of this library does not imply any compatibility, support, or approval from Aira Home
- 🏷️ All trademarks, service marks, and company names mentioned herein are the property of their respective owners
- ⚠️ Use of this library is at your own risk - I'm not responsible for any damages, malfunctions, warranty voids, or issues arising from its use
- 🛡️ This software is provided "AS IS" without warranty of any kind, express or implied
- 🔍 No proprietary code, trade secrets, or copyrighted materials from Aira Home have been used in the development of this library.
By using this library, you acknowledge that you understand and accept these terms and any associated risks.
Metadata
Release files for pyairahome 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyairahome-2.3.0.tar.gz | 127.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyairahome-2.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 462.5 kB
Release files / pyairahome-2.3.0.tar.gz
| Download URL | pyairahome-2.3.0.tar.gz |
|---|---|
| Size | 127.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e3cd6dace2e25c0fae2dd8a8d4b41d0d0cd7dec34a450dc0cb0217dd15657f0
|
|
BLAKE2b-256 checksum How to use checksums |
71b41d875bc3f2954b6f4e337575898f96a6c47cf21be10aac2dc024743a6b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logRelease files / pyairahome-2.3.0-py3-none-any.whl
| Download URL | pyairahome-2.3.0-py3-none-any.whl |
|---|---|
| Size | 334.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a422537c8165fe7a2c3fe64e03311dc044ce3f5a53c2d37387260b571066955f
|
|
BLAKE2b-256 checksum How to use checksums |
f52fcebaeca6d84ae30d43b16cb1aed37d5a1371027ff107e38e65fdf943f2ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency log