[dali] Implement DT8 (single-channel RGB & color temperature) device type (#12955)
* DALI: Implement DT8 (single-channel RGB & color temperature) device type, fix device and group addressing * dali: Store BridgeHandler in a local variable instead of retrieving it over and over again. * dali: Follow logging guidelines. Signed-off-by: Sebastian Philipp <github-ebqurd@s3lph.me>
This commit is contained in:
@@ -13,6 +13,8 @@ Currently, these things are supported:
|
||||
- device (single device/ballast on the DALI bus)
|
||||
- group (group of DALI devices)
|
||||
- rgb (virtual device consisting of three directly addressed devices that represent r/g/b (LED) color channels)
|
||||
- device-dt8 (single device/ballast supporting DT8 (single-channel RGB & color temperature control))
|
||||
- group-dt8 (group of DALI devices supporting DT8)
|
||||
|
||||
This binding was tested on a DALI 1 bus with daliserver 0.2.
|
||||
|
||||
@@ -37,9 +39,10 @@ Automatic device discovery is not yet implemented.
|
||||
|
||||
### group
|
||||
|
||||
| Parameter | Parameter ID | Required/Optional | description |
|
||||
|-------------|--------------|-------------------|----------------------------------------|
|
||||
| Group ID | targetId | Required | Address of group in the DALI bus |
|
||||
| Parameter | Parameter ID | Required/Optional | description |
|
||||
|----------------|--------------------|-------------------|----------------------------------------------------------------------------------------------|
|
||||
| Group ID | targetId | Required | Address of group in the DALI bus |
|
||||
| Read Device ID | readDeviceTargetId | Optional | If reading values from this group fails, you can choose to read from a single device instead |
|
||||
|
||||
### rgb
|
||||
|
||||
@@ -49,6 +52,19 @@ Automatic device discovery is not yet implemented.
|
||||
| G Device ID | targetIdG | Required | Address of device in the DALI bus |
|
||||
| B Device ID | targetIdB | Required | Address of device in the DALI bus |
|
||||
|
||||
### device-dt8
|
||||
|
||||
| Parameter | Parameter ID | Required/Optional | description |
|
||||
|-------------|--------------|-------------------|----------------------------------------|
|
||||
| Device ID | targetId | Required | Address of device in the DALI bus |
|
||||
|
||||
### group-dt8
|
||||
|
||||
| Parameter | Parameter ID | Required/Optional | description |
|
||||
|----------------|--------------------|-------------------|----------------------------------------------------------------------------------------------|
|
||||
| Group ID | targetId | Required | Address of group in the DALI bus |
|
||||
| Read Device ID | readDeviceTargetId | Optional | If reading values from this group fails, you can choose to read from a single device instead |
|
||||
|
||||
## Full Example
|
||||
|
||||
.things file
|
||||
@@ -57,7 +73,7 @@ Automatic device discovery is not yet implemented.
|
||||
Bridge dali:daliserver:237dbae7 "Daliserver" [ host="localhost", port=55825] {
|
||||
Thing rgb 87bf0403-a45d-4037-b874-28f4ece30004 "RGB Lights" [ targetIdR=0, targetIdG=1, targetIdB=2 ]
|
||||
Thing device 995e16ca-07c4-4111-9cda-504cb5120f82 "Warm White" [ targetId=3 ]
|
||||
Thing group 31da8dac-8e09-455a-bc7a-6ed70f740001 "Living Room Lights" [ targetId=0 ]
|
||||
Thing group 31da8dac-8e09-455a-bc7a-6ed70f740001 "Living Room Lights" [ targetId=0, readDeviceTargetId=3 ]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user