've implemented a custom Cell_hueLight_Card_1 widget that includes a variety of controls for managing lighting settings, including switch, brightness, scene selection, and a color picker. Despite setting up the oh-colorpicker-item to target the ColorGroupItem, the hue color picker does not seem to respond, and I am unable to select or change colors.
Here’s the relevant configuration for the color picker component:
I’ve specified modules: -hue-slider, expecting it to allow color selection, but it does not appear to function as intended. I’m wondering if there is an additional setting or configuration detail I’m missing for the hue slider to work properly.
Any insights or advice on resolving this color picker issue would be greatly appreciated!
The modules property should be an array. There are two ways you can indicate an array in a widget: the yaml array, or with widget expressions.
The yaml format for an array does, as you have done, start the array element with a -. but that array element has to be on a new line indented from the name of the array object. So:
modules:
- hue-slider
The expression format just allows you to define a javascript array which is comma separated values between square brackets: