A previous release had provenance metadata, but this release does not. View details.
aerosmart-modbus
A typed, async Python model of an aerosmart ventilation/heat-pump unit's Modbus registers. Backend-neutral: built on modbus-connection, so it runs over pymodbus, tmodbus, or an in-memory mock -- no Home Assistant dependency. A Home Assistant integration that consumes this library lives in a separate repository.
Features
- 137 registers across 16 sub-systems, transcribed 1:1 from a live installation's Modbus register map (address, scale, unit).
- Two Modbus units modelled as one device: unit 1 (ventilation controller,
which also aggregates most fault/request flags) and unit 2 (heat pump /
domestic hot water), read together via one
AerosmartDeviceobject. - Neutral per-field metadata (
value_kind,writable,description,source_key) -- no Home Assistant concepts leak into this layer. - Pooled block reads per unit (
ComponentGroup), not one Modbus round-trip per register. - A regression test that re-parses the original source YAML and checks every Python field's address/scale still matches it (see "Development", below -- there is no manufacturer register manual to check against instead).
Device structure
| Attribute | Unit | Sub-system |
|---|---|---|
general |
ventilation | weekday, time/date, software version, device type |
outside_temperature |
ventilation | outside air temperature + thresholds |
room_temperature |
ventilation | room air temperature + setpoint |
fans |
ventilation | fan speeds, run hours, faults |
ventilation |
ventilation | operating mode, airflow, shading/frost/de-icing |
cooling |
ventilation | cooling thresholds |
summer_bypass |
ventilation | summer bypass automation |
carbon_dioxide |
ventilation | CO2 sensor |
fine_dust_filter / coarse_dust_filter |
ventilation | filter run time / change flags |
fire_alarm |
ventilation | fire alarm system contact |
aggregate_fault |
ventilation | summary fault flags |
boost_functions_ventilation |
ventilation | HEIZUNG+ boost function (ventilation-side registers) |
hot_water_ventilation |
ventilation | hot water fault/request flags (as seen from the controller) |
utility_lockout |
heat pump | utility (EVU) lockout signals |
heat_pump |
heat pump | compressor, pressures, run hours, status |
boost_functions_heat_pump |
heat pump | BAD+ boost function (heat-pump-side registers) |
hot_water_heat_pump |
heat pump | boiler temperatures, hot water setpoint |
Basic usage
import asyncio
from modbus_connection.pymodbus import connect_tcp
from aerosmart_modbus import AerosmartDevice
async def main():
connection = await connect_tcp("192.0.2.10", port=8899)
device = AerosmartDevice(
connection.for_unit(1), # ventilation
connection.for_unit(2), # heat pump
)
await device.async_update()
print(device.outside_temperature.temp_aussenluft, "°C outside")
print(device.heat_pump.wp_status)
asyncio.run(main())
Known hardware quirk: request pacing
Live-tested against a real unit: this device sits behind a slow
RS232-to-Modbus-TCP gateway. Issuing requests back-to-back with no pacing at
all made the gateway return responses under stale/mismatched transaction IDs,
and most reads timed out. AerosmartDevice therefore asks the shared Modbus
transport for 300ms of quiet before and after either unit's requests and a
one-second settle delay after connecting. Consumers do not need to add sleeps
or configure connection timing themselves.
The device exposes async_update_readings() and async_update_settings() so
consumers can poll operating data and the controller clock frequently while
reading filter counters and slow-changing settings on a longer interval.
async_update() still refreshes everything. Each returns an UpdateReport,
allowing one failed sub-system to become unavailable without discarding fresh
data from the others.
Metadata and writes
Every field carries a DatapointMetadata (see metadata.py):
value_kind ("number", "boolean", or "enum"), writable,
verified_writable, description (the original German label), source_key
(the original Home Assistant entity id it was transcribed from, for
traceability), and the matching value metadata.
meta = device.hot_water_heat_pump.require_metadata_for("wp_brauchwasser_soll_temp")
meta.writable # True
meta.verified_writable # True
meta.source_key # "aerosmartm_wp_brauchwasser_soll_temp"
actual = await device.async_write_verified(
"hot_water_heat_pump", "wp_brauchwasser_soll_temp", 52.0
)
Use async_write_verified() for consumer-facing controls. It only accepts
registers whose write semantics and limits are confirmed by the manufacturer
documentation, serializes writes across both controller units, validates the
value, and reads the register back immediately. writable=True without
verified_writable=True remains an unverified transcription and is rejected
by this safe API.
Command-line query tool
python -m pip install -e ".[cli]"
python script/query.py tcp 192.0.2.10 --port 8899
Prints every sub-system's current values, plus how many Modbus reads it took. Not used by CI -- a manual diagnostic tool for probing a real unit.
Development
uv sync
uv run pytest
uv run ruff check .
uv run ruff format .
Tests run against modbus_connection's in-memory mock (no real device
needed) plus a YAML consistency check (tests/test_yaml_consistency.py)
against the original source fragments under tests/fixtures/aerosmartm/.
Tested against modbus-connection 4.12.x. Project metadata accepts compatible
releases from 4.12 up to, but excluding, 5.
Releases
Gitea is the authoritative forge. Create the version tag without a v prefix
(for example 0.3.9) and publish the matching Gitea release. The release event
runs the complete test suite, builds the wheel and source distribution, and
publishes both to PyPI with the repository-scoped Actions secret.
The Publish to PyPI workflow can also be started manually with an existing
tag. A manual run builds and validates the distributions but never uploads
them; only a published Gitea release may publish to PyPI.
Metadata
Release files for aerosmart-modbus 0.3.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aerosmart_modbus-0.3.9.tar.gz | 38.6 kB | Without provenance | Details for aerosmart_modbus-0.3.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aerosmart_modbus-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for aerosmart_modbus-0.3.9-py3-none-any.whl |
Total release size: 67.9 kB
Release files / aerosmart_modbus-0.3.9.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | aerosmart_modbus-0.3.9.tar.gz |
|---|---|
| Size | 38.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7237c975c4d5fd9c7129d3216fe819967b706213fbac12db98e8739bee94812a
|
|
BLAKE2b-256 checksum How to use checksums |
cb98924d5d33b17190360b4f90f3a6283b1d19603ef0d9c5e7eee0db5698d087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / aerosmart_modbus-0.3.9-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | aerosmart_modbus-0.3.9-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2171de7c9304917d573a78570156fc2560630c78ec7166dc8a3734c4aacde5e
|
|
BLAKE2b-256 checksum How to use checksums |
cd99187ff3a0a12af963ec81c1ec01023ef56dc46142d45c2c991f3d2909742c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for aerosmart-modbus 0.3.9
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.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.8 2 files With provenance
- Added 0.3.9 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.