Python SDK for AVE DominaPlus home automation systems
Project description
pyavedominaplus
A Python SDK and Home Assistant custom integration for AVE DominaPlus home automation systems. Communicates with the DominaPlus server over WebSocket using the native binary protocol.
AI Disclaimer: This project was built using the assistance of Claude Code
Features
- Async WebSocket client with automatic ping/pong keepalive
- Full binary protocol implementation (STX/ETX framing, CRC validation)
- Push-based real-time device status updates
- Home Assistant integration with config flow UI
Supported devices
| Device type | HA platform | Controls |
|---|---|---|
| Light (type 1, 22) | light |
On/off, toggle |
| Dimmer (type 2) | light |
On/off, toggle, brightness (0-31) |
| Shutter (type 3, 16, 19) | cover |
Open, close |
| Thermostat (type 4) | climate |
Temperature setpoint, season mode, local off |
| Scenario (type 6) | switch |
Activate |
| Energy meter (type 9) | — | Read-only |
Requirements
- Python >= 3.13
- aiohttp >= 3.9
Installation
Python SDK
pip install -e .
# With dev dependencies
pip install -e ".[dev]"
SDK usage
import asyncio
from pyavedominaplus import AVEDominaClient
async def main():
client = AVEDominaClient(host="192.168.1.100", port=14001)
await client.connect()
await client.initialize()
await client.wait_for_initialization(timeout=30.0)
# List discovered devices
for device_id, device in client.devices.items():
print(f"{device.name}: {device.device_type}")
# Control lights (EBI command)
await client.turn_on_light("100")
await client.turn_off_light("100")
await client.toggle_light("100")
# Control dimmers (SIL command for level, EBI for step)
await client.set_dimmer_level("101", 16) # 0-31
await client.step_dimmer("101") # toggle on/off
# Control shutters (EAI command)
await client.open_shutter("102")
await client.close_shutter("102")
# Control thermostats (STS command)
await client.set_thermostat_set_point("103", 21.5)
await client.set_thermostat_season("103", season=1) # 0=summer, 1=winter
await client.toggle_thermostat_local_off("103") # toggle on/off
await client.toggle_thermostat_keyboard_lock("103")
# Activate scenario (ES command via map lookup)
await client.activate_scenario("104")
# Register for real-time updates
def on_update(event_type, data):
print(f"Update: {event_type} - {data}")
client.register_update_callback(on_update)
await asyncio.sleep(60)
await client.disconnect()
asyncio.run(main())
Project structure
pyavedominaplus/ Python SDK
client.py Async WebSocket client
protocol.py Message encoding/decoding, CRC
models.py DominaDevice, DominaThermostat, DominaArea
const.py Protocol constants and device types
tests/ SDK unit tests (158 tests)
Running tests
# All tests
pytest
# With coverage
coverage run -m pytest tests
coverage report
# Specific module
pytest tests/test_client.py -v
Protocol notes
The SDK implements AVE's custom binary WebSocket protocol:
- Framing: STX (0x02) marks message start, ETX (0x03) end, EOT (0x04) end of transmission
- Fields: Separated by GS (0x1D) within a section, RS (0x1E) between sections (records)
- CRC: XOR-based checksum (0xFF minus XOR of all payload bytes)
- Port: Default 14001
- Special devices: RGBW names prefixed with
$, DALI names suffixed with$, VMC Daikin thermostats have IDs offset by 10000000
Command reference
| Command | Direction | Purpose |
|---|---|---|
LM |
→ | List areas/maps |
LMC |
→ | List map commands for an area |
LML |
→ | List map labels for an area |
LDI |
→ | List all devices |
LI2 |
→ | List device AVEbus addresses |
WSF <family> |
→ | Request device statuses for a family (1=light, 2=dimmer, 3=shutter…) |
SU2 / SU3 |
→ | Subscribe to real-time status updates |
WTS <id> |
→ | Request thermostat full status |
GTM |
→ | Request thermostat IR mode list |
GMA |
→ | Request start/stop device list |
GNA |
→ | Request no-action device list |
GSF <family> |
→ | Request sensor family status |
EBI <id>,<cmd> |
→ | Light/energy command: 10=toggle, 11=on, 12=off, 2=dimmer step |
EAI <id>,<cmd> |
→ | Shutter command: 8=open, 9=close |
SIL <id>,<level> |
→ | Set dimmer brightness (0-31) |
STS <id> + record |
→ | Set thermostat (season, mode, setpoint×10) |
ES <cmdId> |
→ | Execute scenario (map command ID) |
TOO <id>,<state> |
→ | Toggle thermostat local off (standard) |
TUU <id>,<state> |
→ | Toggle thermostat local off (TS01 type) |
TTK <id> |
→ | Toggle thermostat keyboard lock |
PONG |
→ | Reply to server ping |
upd WS <type> <id> <val> |
← | Device status update |
upd WT <sub> <id> <val> |
← | Thermostat sub-update (T=temp, S=season, O=offset, L=fan, Z=localOFF) |
upd TP <id> <val> |
← | Thermostat setpoint update |
upd TM <id> <mode> |
← | Thermostat mode update |
upd TK <id> <lock> |
← | Thermostat keyboard lock update |
upd TW <id> <state> |
← | Thermostat window state update |
upd UMI <id> … |
← | Humidity probe update |
upd D <cmdId> <icon> |
← | Map command icon update |
upd GRP … |
← | Group dimmer update |
upd RGB … |
← | RGBW update |
upd epv … |
← | Economizer update |
wts <id> + record |
← | Full thermostat status response |
lm + records |
← | Area list response |
ldi + records |
← | Device list response |
lmc <areaId> + records |
← | Map commands response |
ack |
← | Command acknowledgement |
ping |
← | Keepalive ping |
License
See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyavedominaplus-0.1.6.tar.gz.
File metadata
- Download URL: pyavedominaplus-0.1.6.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f528e830752f76ed92af368a21e778023cd5cf4827f874ee2632beb99e708d79
|
|
| MD5 |
86345b1065187888ba147300e02f09a0
|
|
| BLAKE2b-256 |
c6422479afbf48a5cded0350353a252050d809833d95e45b229a6f890ab9b414
|
Provenance
The following attestation bundles were made for pyavedominaplus-0.1.6.tar.gz:
Publisher:
release.yml on pyavedominaplus/pyavedominaplus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyavedominaplus-0.1.6.tar.gz -
Subject digest:
f528e830752f76ed92af368a21e778023cd5cf4827f874ee2632beb99e708d79 - Sigstore transparency entry: 1006418501
- Sigstore integration time:
-
Permalink:
pyavedominaplus/pyavedominaplus@339175386d35a5e40b7a32e7ac3bfcfc53cb7e2d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyavedominaplus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@339175386d35a5e40b7a32e7ac3bfcfc53cb7e2d -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyavedominaplus-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pyavedominaplus-0.1.6-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
732151161d331d0083a067526d9baf70d2c29e911592df55c1637a4051940296
|
|
| MD5 |
21b5f9753b7c5b181bfb047a9ecccfdb
|
|
| BLAKE2b-256 |
ef6d04fa1aa832f228ed9bb552c74181813975baaba4a5156cd342561963a670
|
Provenance
The following attestation bundles were made for pyavedominaplus-0.1.6-py3-none-any.whl:
Publisher:
release.yml on pyavedominaplus/pyavedominaplus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyavedominaplus-0.1.6-py3-none-any.whl -
Subject digest:
732151161d331d0083a067526d9baf70d2c29e911592df55c1637a4051940296 - Sigstore transparency entry: 1006418507
- Sigstore integration time:
-
Permalink:
pyavedominaplus/pyavedominaplus@339175386d35a5e40b7a32e7ac3bfcfc53cb7e2d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyavedominaplus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@339175386d35a5e40b7a32e7ac3bfcfc53cb7e2d -
Trigger Event:
workflow_dispatch
-
Statement type: