basic.rgb
Displays a rgb-selector
Parameters
{{basic.rgb(id, gad_r, gad_g, gad_b, min, max, step, colors) }}
id
unique id for this widget
gad_r
a gad/item for the r - value (0-255)
gad_g
a gad/item for the g - value (0-255)
gad_b
a gad/item for the b - value (0-255)
min
the minimum value if the light is off (optional, for future use)
max
the maximum value if the light is full on (optional, default 255)
step
step (for future use)
colors
the number of colors (default 10)
Examples
Select your color! If you have finised the rgb values will be send.
{{ basic.rgb('rgb1', 'bath_color_r', 'bath_color_g', 'bath_color_b') }}