This is great! It didn’t work at the beginning since it needed a * wildcard after state:
It looks like this now:
Items
Color myColorTest "Color test" {mqtt=">[broker:/HA1/colortest:state:*:default]"}
Sitemap
Frame label="Colortest"
{
Colorpicker item=myColorTest
Switch item=myColorTest
Slider item=myColorTest
}
I now receive the MQTT messages separated by commas and no leading zeros; For example 35,23,67 or 255,100,0
At the same time, slider outputs a single value between 0 and 100 and the switch ON or OFF, as usual.
Now that I have this, I can use rules to transform it(so my arduino code handles it correctly). I took a quick look at a few interesting topics. Someone may find them useful too:
How to convert colorpicker to RGB values
Thank you so much for your help! Really appreciate it! Now let’s see if I can actually manage to make my LED strip work
.
IMPORTANT EDIT: I was confused! HSB stands for Hue(from 0 to 360), Saturation(0 to 100) and Brightness(0 to 100). It’s RGB which goes from 0 to 255! Important to keep in mind!