Skip to content

Commit

Permalink
[dali] tweak color temperature abs QuantityType fix (openhab#14029)
Browse files Browse the repository at this point in the history
adds an example of usage of the channel to the README, and
simplifies one method call

Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer authored and psmedley committed Feb 23, 2023
1 parent 03bdb95 commit c0d3285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bundles/org.openhab.binding.dali/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@ Bridge dali:daliserver:237dbae7 "Daliserver" [ host="localhost", port=55825] {
```java
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"}
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"}
```
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
logger.warn("Unable to convert command {} to mireks", command);
return;
}
mirek = commandQuantity.toBigDecimal().intValue();
mirek = commandQuantity.intValue();
} else {
logger.warn("Unable to convert command {} to mireks", command);
return;
Expand Down

0 comments on commit c0d3285

Please sign in to comment.