The slider tool is an input tool with configurable track, active track, thumb and label position and styling.
The slider can possibly also be configured as state value output in the future...
And used as a very compact sort of "gauge", if you look at the second example with in this case a (for lights) color temperature gradient fill on the track. Adding colorlist or colorstop functionality would be a nice feature too!
→ TODO: find out if there is a simple, basic usage...
12345
-type:'slider'# tooltype is 'slider'position:# Position on (100x100) canvascx:50# cx=50 is center positioncy:50# cy=50 is center positionentity_index:1
-type:sliderposition:cx:40cy:81capture:width:80height:15track:width:70height:2radius:1thumb:width:5height:10radius:1label:# placement can be none, thumb, position (cx,cy)placement:positioncx:95# Place value right from slidercy:81orientation:horizontal# default, other is verticalentity_index:1# The brightness attribute## Extra:# Convert brightness value (0..255) to 0..100%derived_entity:input :'[[[returnstate]]]'state:>[[[if (typeof(entity) === 'undefined') return;if (typeof(state) === 'undefined') return;var bri = Math.round(state / 2.55);return (bri ? bri : '0');]]]unit:>[[[if (typeof(state) === 'undefined') return undefined;return '%';]]]## The action for the slider if value has changedslider_action:update_interval:200# Update every 200 ms while draggingservice:light.turn_onparameter:brightness_pctscale:# Min/Max slider valuemin:1max:100step:1styles:label:text-anchor:endfont-size:10emfont-weight:600# track:thumb:stroke-width:0.5emstroke:var(--md--primary-fg-color)stroke-opacity:0.8
-type:'slider'position:cx:50cy:50entity_index:1classes:track:# Track selector<...>active:# Active track selector<...>thumb:# Thumb selector<...>label:# Label selector<...>uom:# Unit of label selector<...>styles:track:# Track selector<...>active:# Active track selector<...>thumb:# Thumb selector<...>label:# Label selector<...>uom:# Unit of label selector<...>