[dali] tweak color temperature abs QuantityType fix (#14029)

adds an example of usage of the channel to the README, and
simplifies one method call

Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
Cody Cutrer 2022-12-21 12:21:53 -07:00 committed by GitHub
parent a0c2c76fd0
commit df8e0bb15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -82,5 +82,6 @@ Bridge dali:daliserver:237dbae7 "Daliserver" [ host="localhost", port=55825] {
```java ```java
Dimmer WarmWhiteLivingRoom "Warm White Living Room" {channel="dali:device:237dbae7:995e16ca-07c4-4111-9cda-504cb5120f82:dimImmediately"} Dimmer WarmWhiteLivingRoom "Warm White Living Room" {channel="dali:device:237dbae7:995e16ca-07c4-4111-9cda-504cb5120f82:dimImmediately"}
Color ColorLivingRoom "Light Color Living Room" {channel="dali:device:237dbae7:87bf0403-a45d-4037-b874-28f4ece30004:color"} Color ColorLivingRoom "Light Color Living Room" {channel="dali:device:237dbae7:87bf0403-a45d-4037-b874-28f4ece30004:color"}
Number:Temperature ColorTemperatureLivingRoom "Light Color Temperature Living Room [%d K]" {channel="dali:device:237dbae7:87bf0403-a45d-4037-b874-28f4ece30004:color-temperature-abs"}
Switch LightsLivingRoom "Lights Living Room On/Off" {channel="dali:device:237dbae7:31da8dac-8e09-455a-bc7a-6ed70f740001:dimImmediately"} Switch LightsLivingRoom "Lights Living Room On/Off" {channel="dali:device:237dbae7:31da8dac-8e09-455a-bc7a-6ed70f740001:dimImmediately"}
``` ```

View File

@ -76,7 +76,7 @@ public class DaliDt8DeviceHandler extends DaliDeviceHandler {
logger.warn("Unable to convert command {} to mireks", command); logger.warn("Unable to convert command {} to mireks", command);
return; return;
} }
mirek = commandQuantity.toBigDecimal().intValue(); mirek = commandQuantity.intValue();
} else { } else {
logger.warn("Unable to convert command {} to mireks", command); logger.warn("Unable to convert command {} to mireks", command);
return; return;