Revisiting this thread after some time, needed to make a minor fixes anyway, so I added the setEffectCustom function for use with WebCORE. Thanks for looking into that. Technically it works with setEffect and passing only a single parameter but you won't be able to control the other settings (speed, intensity, palette).
I was looking at the Hypercubes after seeing them on Paul Hibbert's tech channel. Pretty nice looking, so I reached out. It turns out that these support WLED so it should be possible to integrate them readily with Hubitat.
I am actually not that familiar with WLED. When I made my own WS2812-based lights a couple years ago I wrote my own code for it and created my own Hubitat drivers. They work well for the Christmas lights I made them as.
Anyways, my HyperCube arrived so I wrote a driver for it. I tried one of the WLED drivers I found on the forum but it was a bit old and most things did not quite work. So I just pulled up the WLED docs, found out about the JSON API, and then just reworked one of my other drivers for it instead last night. Considering I have a bunch of API drivers and it is so simple... it was pretty easy to do.
I'm having some problems with Hubitat's color picker popup.
Installed and configured the WLED driver no problem, and the commands all work perfectly from the devices page, but the trouble is on the dashboard. When I adjust the color (on the dashboard) it works great while I'm making the adjustment, however, the moment I close Hubitat's color selector popup, Hubitat sends 255,255,255 (white) to the WLED driver.
Here is the Log where I set the color: dev:122024-01-07 11:14:33.809 PMdebugSetting RGB Color to [53,25,229]
And here is what happens when I close the color selector popup: dev:122024-01-07 11:14:36.960 PMdebugSetting RGB Color to [255,255,255]
I have 2 segments....
I can select a segment 1 and turn on and off and select segment 2 and turn off and on #1. did anyone find a way to turn off and on multiple at the same time ? #2. is there a way to turn on and off in Rules machine?
Thx
Tim
In the wled gui, tap the power button to turn off all segments at once. If all segments were on and turned off this way, I don't remember if they all turn back on with the power button. Can't verify - my setup is down at the moment...
Which driver are you using? From a brief review of the thread, it sounds like the joyfulhouse/WLED driver is the go-to.
Driver Technical Review
From a brief review, it seems like it declares that it supports the required capabilities like Color Control and Color Mode but it does not seem to fully implement them.
It looks like the command for setColor() is there, but the driver does not track the state of the color related attributes like hue and saturation.
And it looks like the declaration for Color Mode is just a stub as it doesn't actually report the colorMode attribute from what I can tell.
Implication
So I suspect you could add the device to your dashboard and you might be able to manually change it to the Color Control Tile Layout (reference) and you might be able to long-press on the tile to get the Color Picker so you could send the setColor() command.
But it absolutely does not implement the capabilities fully and does not report the color related attributes so you would not be able to see the updated color state reflected properly on the tile.
Workaround(s)
And if manually setting the tile layout to Color Control and long-pressing on the tile to get the color picker isn't an option, as a workaround you could create a SharpTools Rule that would send the appropriate setColor() command to the device.
You could then add a few of your favorite colors as tiles to a dashboard using the SharpTools Rule you created.
It's a bit of an advanced approach, but you can even stub a single SharpTools rule with the setColor() command and then use the special $.runRule("RULEID", {"parameter": "xxxx" })hyperlink syntax to dynamically call that rule with the different colors you wanted.
You could even make that a separate dashboard with your favorite color options, then use the Dashboard Overlay feature. So your main dashboard could just have the critical details like the on/off state of that device along with your other devices... then you would configure one of the tiles on the 'main' dashboard to open the overlay and it would feel like a pop-up menu just for picking colors for that device.