Skip to content

Commit

Permalink
Add unit hint to color-temperature-abs system channel type
Browse files Browse the repository at this point in the history
Discussed in openhab/openhab-addons#17638.

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo committed Nov 16, 2024
1 parent 31d3434 commit 56f3cb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ public class DefaultSystemChannelTypeProvider implements ChannelTypeProvider {
*/
public static final ChannelType SYSTEM_COLOR_TEMPERATURE_ABS = ChannelTypeBuilder
.state(SYSTEM_CHANNEL_TYPE_UID_COLOR_TEMPERATURE_ABS, "Color Temperature", "Number:Temperature")
.withDescription("Controls the color temperature of the light in Kelvin").withCategory("ColorLight")
.isAdvanced(true)
.withUnitHint("K").withDescription("Controls the color temperature of the light in Kelvin")
.withCategory("ColorLight").isAdvanced(true)
.withStateDescriptionFragment(StateDescriptionFragmentBuilder.create().withMinimum(new BigDecimal(1000))
.withMaximum(new BigDecimal(10000)).withPattern("%.0f K").build())
.withTags(List.of("Control", "ColorTemperature")).build();
Expand Down

0 comments on commit 56f3cb0

Please sign in to comment.