smartbox 3.0
Python library for Smartbox heating systems (Helki and its resellers: Elnur, Haverland, Climastar, Technotherm, HJM, …).
This is the 3.0 rewrite. It exposes the protocol and domain layers that the
Home Assistant integration uses, without importing Home Assistant. The 2.7
API remains available on the main branch and the v2.7.0 tag.
Install
From the tagged source:
pip install "smartbox @ https://github.com/jandado/smartbox/archive/refs/tags/v3.0.0.tar.gz"
With the optional command line tool:
pip install "smartbox[cli] @ https://github.com/jandado/smartbox/archive/refs/tags/v3.0.0.tar.gz"
For development:
uv sync --all-extras --dev
Library
SmartboxClient owns the REST API and the token lifecycle. smartbox.core
contains the Home Assistant-free state engine, write confirmation and feed
supervision.
import asyncio
from smartbox.core import SmartboxEngine
from smartbox.protocol import API_HOST, AuthConfig, ManagedTokenSource, SmartboxClient
CONFIG = AuthConfig(
api_host=API_HOST,
basic_auth_creds="<reseller Basic auth>",
serial_id="1",
username="you@example.com",
password="secret",
referer="https://app.helki.com/",
)
async def main() -> None:
client = SmartboxClient(CONFIG)
try:
print(await client.get_devices())
finally:
await client.close()
The lower layers are Home Assistant-free and are tested without the HA test harness.
CLI
The CLI is an optional extra; the base package only depends on aiohttp.
Authentication options are -a/--api-name, -b/--basic-auth-creds,
-u/--username, -p/--password, -r/--x-referer, -i/--x-serial-id.
They also resolve from SMARTBOX_* environment variables, and the script
loads the nearest .env file. Command line values win over the environment,
which wins over .env.
smartbox -a api -u you@example.com -p secret devices
smartbox -a api -u you@example.com -p secret nodes
smartbox -a api -u you@example.com -p secret status
smartbox -a api -u you@example.com -p secret set-status -d DEV -n 0 --mode auto
smartbox -a api -u you@example.com -p secret set-boost-mode -d DEV -n 0 \
--active --mode runback --temperature 21 --time-minutes 60
smartbox -a api -u you@example.com -p secret listen
smartbox --help lists every command. Reads print the raw wire payloads;
writes print the posted path and body. listen follows the shared ws_user
feed and can filter updates with --device-id.
Layout
smartbox.protocol— auth, REST client,ws_usertransport, wire values and named writes.smartbox.core— versioned state store, merges, write confirmation, deadlines and feed supervision.smartbox.cli— the optional debugging CLI.
The canonical wire record lives in the sibling hass-smartbox repository
under docs/ (api-contract.md, api-ws-user.md, webapi-spec.md);
webapi-spec.md in this repo is a pointer.
Development
uv run pytest
uv run ruff check src tests
uv run mypy src
uv run tox
Credits
The original library and the 2.7.x line are by Alberto Tudela, Delmael, graham33 and the upstream contributors. This fork carries the 3.0 rewrite; upstream collaboration is welcome.
Metadata
Release files for smartbox 3.0.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 | Provenance | Actions |
|---|---|---|---|---|
| smartbox-3.0.0.tar.gz | 157.6 kB | With provenance | Details for smartbox-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smartbox-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for smartbox-3.0.0-py3-none-any.whl |
Total release size: 242.3 kB
Release files / smartbox-3.0.0.tar.gz
| Download URL | smartbox-3.0.0.tar.gz |
|---|---|
| Size | 157.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7214bda14cc7bc93806055f871c6805830914e2e555c2f04ae4e85685013f7d
|
|
BLAKE2b-256 checksum How to use checksums |
7efda39d76875626139d8efc72a3685d8dc06ae6f43160d508589a22edac2c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / smartbox-3.0.0-py3-none-any.whl
| Download URL | smartbox-3.0.0-py3-none-any.whl |
|---|---|
| Size | 84.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f09062aeb6f2fcb02c2edfab7c8321242b1742b6b98c78b4b5a29502d313eab0
|
|
BLAKE2b-256 checksum How to use checksums |
93ca3e754942f40167b7e48b85275a7c9ffa44bfd9501802d0ecf5464194fd79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logSecurity for smartbox 3.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for smartbox-3.0.0.tar.gz
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 Nov 14, 2026.
Transparency logA 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.