mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Add unit hint to color-temperature-abs system channel type (#4451)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
31d3434893
commit
be003029b0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user