Python library for Sunricher DALI Gateway (EDA)
Project description
PySrDaliGateway
Python library for Sunricher DALI Gateway (EDA) integration with Home Assistant.
Features
- Async/await support for non-blocking operations
- Device discovery and control (lights, sensors, panels)
- Group and scene management
- Real-time status updates via MQTT
- Energy monitoring support
- Full Type Support: Complete type hints for mypy, Pylance, and pyright
- IDE integration with auto-completion and error checking
Installation
pip install PySrDaliGateway
Device Types Supported
- Lighting: Dimmer, CCT, RGB, RGBW, RGBWA
- Sensors: Motion, Illuminance
- Panels: 2-Key, 4-Key, 6-Key, 8-Key
Requirements
- Python 3.8+
- paho-mqtt>=2.0.0
CLI Testing Tool
Testing script located at script/test_discovery_to_connect.py for hardware validation:
# Run all tests
python script/test_discovery_to_connect.py
# Run specific tests
python script/test_discovery_to_connect.py --tests discovery connection devices
# List available tests
python script/test_discovery_to_connect.py --list-tests
# Test with specific gateway
python script/test_discovery_to_connect.py --gateway-sn "YOUR_GATEWAY_SN"
# Limit device operations for faster testing
python script/test_discovery_to_connect.py --device-limit 5
Available tests:
discovery- Discover DALI gateways on networkconnection- Connect to discovered gatewayversion- Get gateway firmware versiondevices- Discover connected DALI devicesreaddev- Read device status via MQTTdevparam- Get device parametersgroups- Discover DALI groupsscenes- Discover DALI scenesreconnection- Test disconnect/reconnect cycle
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysrdaligateway-0.7.0.tar.gz
(22.8 kB
view details)
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 pysrdaligateway-0.7.0.tar.gz.
File metadata
- Download URL: pysrdaligateway-0.7.0.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51425b6f7e47c29f4786676acdc45b155ba9caea6178f32f02b30e88d10e7f30
|
|
| MD5 |
719cb6ce6e7a5a9ab8161ffae71c1e59
|
|
| BLAKE2b-256 |
1f5860cf10b6c14cd591b5fe93aabd5cfc86d08faba02ca3b67b4f4147d0b454
|
File details
Details for the file pysrdaligateway-0.7.0-py3-none-any.whl.
File metadata
- Download URL: pysrdaligateway-0.7.0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd2b46a8d7488b05ba0fe20788e663cd305e224efba8dfeb7c173cb24e20aa6
|
|
| MD5 |
897c13e73b1dc9e6529be9c983679450
|
|
| BLAKE2b-256 |
b8e3456f10d856042e7eb04bf77c771f60b8feddddb8baa6034f6748efe23219
|