I have a bunch of RGG + color Temp bulbs I’ve flashed with Tasmota. I’m easily able to control power with generic MQTT Item binding, but am struggling with attaching a Color item and using a colorpicker. I’m using the main UI to set things up, but considering going the filesystem route as most (all?) examples I’ve found here on the forums seem to be in that format.
Here’s What I’ve attempted:
Created a generic MQTT thing for my bulb with a color channel. Since my bulb accepts color commands on cmnd/my-bulb/Color, and reports state on stat/my-bulb/RESULT, my configuration ends up looking like this:
Since the RESULT contains JSON, I added the JSONPATH transformation to access the color string. here’s what the result looks like in MQTT:
{
"POWER":"ON",
"Color":"0,0,0,0,128"
}
Finally, I link the channel to a Color item in my model.
The issue comes when I attempt to test the color channel by inserting a colorpicker cell in my overview, add a colorwheel module for instance, and select the aforementioned Color item.
When I test this colorpicker in run mode, I see nothing but a blank space, which leads me to believe that the state topic or transformation is not working.
What am I missing? What are the steps to debugging state transformations? Should I jump in to defining this stuff in item files etc?
Good analysis. The colorpicker requires a valid starting Item state, NULL won’t do.
Confirm by checking Item state directly - API Explorer perhaps.
That’s just too many parts for RGB, so the colorMode cannot digest it. I think you’ll need a custom transformation for whatever that means; or at least pre-process the RGB part out, if there is one.