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 device callbacks specifically
python script/test_discovery_to_connect.py --tests callbacks
# 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 MQTTcallbacks- Test device status callbacks (light, motion, illuminance, panel)devparam- 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.8.0.tar.gz
(25.7 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.8.0.tar.gz.
File metadata
- Download URL: pysrdaligateway-0.8.0.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
174ef8a544dcc8e4ae08b7ff8e9472d9b94e17977b4835b07a00098bf9f29540
|
|
| MD5 |
d3c3b8de851a8e10c9df490869407f1d
|
|
| BLAKE2b-256 |
84109138b1e39149029341457100d145d5823ec3fe538092c6d53a1a53eda2e8
|
File details
Details for the file pysrdaligateway-0.8.0-py3-none-any.whl.
File metadata
- Download URL: pysrdaligateway-0.8.0-py3-none-any.whl
- Upload date:
- Size: 25.7 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 |
9dd4f85bacd7f92e80e3b1e46350cee39f420561d953751fddca4967ad8d8e75
|
|
| MD5 |
e8bac7bfd5e63f8ce09a32adfc0621e1
|
|
| BLAKE2b-256 |
fd6ee3e6517c787feb15165801dec656f6d4d27d1416b5901a2858d8b2c0a060
|