Skip to main content

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 network
  • connection - Connect to discovered gateway
  • version - Get gateway firmware version
  • devices - Discover connected DALI devices
  • readdev - Read device status via MQTT
  • devparam - Get device parameters
  • groups - Discover DALI groups
  • scenes - Discover DALI scenes
  • reconnection - Test disconnect/reconnect cycle

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

pysrdaligateway-0.6.5.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysrdaligateway-0.6.5-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pysrdaligateway-0.6.5.tar.gz.

File metadata

  • Download URL: pysrdaligateway-0.6.5.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

Hashes for pysrdaligateway-0.6.5.tar.gz
Algorithm Hash digest
SHA256 cff6b7fde82e2c52826618d000d691c573789c397221b399cfb4dd5d01f20076
MD5 c9e4cfb7f53cce1671dbc3ee5a9100d9
BLAKE2b-256 6a3c4c12cf2ebb554dc460c52758bb1344c3e95b235eedc4e23dbee96951ee00

See more details on using hashes here.

File details

Details for the file pysrdaligateway-0.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pysrdaligateway-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 974b009be3eae00a4ad87e19f2c203f954e56540399d174050bf8b122e799a77
MD5 de4011de62bdc94c32bb10b631638f08
BLAKE2b-256 bba1d8421651b1fa5f3e9bbe674b39a1e76c0542fae8b209b601d4d5e5b5bb58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page