python-allnet
Async Python client for ALLNET MSR (Messen Steuern Regeln) devices and JSON-capable ALLNET managed switches.
This library is the external dependency for the Home Assistant allnet integration. It has no Home Assistant imports and can be used standalone.
Supported devices
- ALLNET MSR JSON API devices (ALL3500 and compatible) — sensors, binary sensors, digital actors (relays)
- JSON-capable ALLNET managed switches (planned)
Installation
pip install allnet
Usage
import asyncio
from aiohttp import ClientSession
from allnet import AllnetClient
async def main():
async with ClientSession() as session:
client = AllnetClient(
host="192.168.1.100",
username="xmlrpc", # optional
password="secret", # optional
use_ssl=False,
session=session,
)
# Device information (model, MAC, firmware version)
device_info = await client.async_get_device_info()
print(device_info.model, device_info.sw_version)
# All channels (sensors + actors)
channels = await client.async_get_channels()
for ch in channels:
print(ch.id, ch.name, ch.kind, ch.value, ch.unit)
# Switch a digital actor on/off
await client.async_set_channel_state("6", True)
asyncio.run(main())
Channel kinds
ChannelKind |
Description |
|---|---|
SENSOR |
Continuous measurement (temperature, current, CO₂, …) |
BINARY_SENSOR |
Binary digital input (motion, contact, …) |
SWITCH |
Digital output / relay |
NUMBER |
Analog output (deferred) |
Error handling
from allnet.exceptions import (
AllnetAuthenticationError, # 401/403 — wrong credentials
AllnetConnectionError, # Network unreachable / timeout
AllnetUnsupportedFirmwareError, # 404 — JSON API not available
AllnetCommandError, # Actor command rejected
)
Out of scope
- ALLNET IoT Cloud / MQTT
- SSH / Telnet / SNMP
- Web UI scraping
License
MIT
Metadata
Release files for allnet 0.1.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 |
|---|---|---|---|---|
| allnet-0.1.0.tar.gz | 8.0 kB | Without provenance | Details for allnet-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allnet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for allnet-0.1.0-py3-none-any.whl |
Total release size: 15.4 kB
Release files / allnet-0.1.0.tar.gz
| Download URL | allnet-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49933843fd7906eb7cfe8ed81388d0d9b320f96b674824c346d49bbf1433ff2c
|
|
BLAKE2b-256 checksum How to use checksums |
b2ff5f12019cb6ae2cae4be8117d0fb39896e6081fb60b632380c653ab6161b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / allnet-0.1.0-py3-none-any.whl
| Download URL | allnet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78e88c3fb876033a9febd5a10eaab0dcfe1546f1102dd0034a505375ec2230ae
|
|
BLAKE2b-256 checksum How to use checksums |
78478ac9110ca2db53573ed8617fd0bbfe420fddfe6fc4d8e3529a4a5f33dc41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for allnet 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.