mpuff
(Martin Puff)
December 15, 2020, 4:47pm
1
i will create a slider with a number thing, i have a lightbulb and the brightness value is from 0-254.
Thing topic osram_e27_multicolor_livingroom "OSRAM E27 Wohnzimmer" {
Channels:
Type switch : power "Power" [ stateTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/state", commandTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/set/", on="ON", off="OFF" ]
Type color : color "Color" [stateTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/color-hsb", commandTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/color-hsb/", formatBeforePublish="{\"color\":{\"hsb\": \"%s, %s, %s\"}}" ]
Type number : brightness "Dimmen" [ stateTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/brightness", commandTopic="zigbee2mqtt/osram_e27_multicolor_livingroom/set/brightness", min=0, max=254, step=1]
}
when i create it with category slider, i get no slider in the gui, ii only see the value
when i create it with type dimmer, i can only use the slider until 100, after that no value will be send
rlkoshak
(Rich Koshak)
December 15, 2020, 7:27pm
2
You’ll have to define a custom card and configure that to be how you want it. Click on “Add Metadata”, select “Custom card widget” and create a Slider widget. What ever you configure there will be used at the top of the Item’s page and elsewhere where the default card widget is used for that Item.
mpuff
(Martin Puff)
December 15, 2020, 10:24pm
3
i cant find the custome card widget
rlkoshak
(Rich Koshak)
December 15, 2020, 10:30pm
4
It’s the “Default Standalone Widget”
Don’t be afraid to click on stuff and try it out.
1 Like
denominator
(James Bowler)
December 16, 2020, 11:35am
5
It looks like you have the correct widget and just needed to adjust the max value to 255
mpuff
(Martin Puff)
December 16, 2020, 12:09pm
6
Correct, because after 100 it stops sending a value
You need to tell the widget what the max is.
It looks like a bug or unsupported feature when you set the Category to slider.
In your second pick in the model window select add metadata and change the default widget.
1 Like
mpuff
(Martin Puff)
December 17, 2020, 10:22am
8
Only for information, this is only working if the thing is created as an number.
When it is created as dimmer, I can add in metadate the min and max value, but than the value 255 will be send at the 100, and the slider goes to 255, but the max value is at the point 100 of the slider