Hello rlkoshalk, first of all thank you so much for your answer. Yes, I have read all the Beginner’s tutorial as well as the standard documentation provided in the openhab website and GitHub repositories(and of course lots of google searches).
What I don’t fully understand is how the color item “outputs” the command. For example a switch outputs ON or OFF, a dimmer outputs an integer between 0 and 100, etc. But when you say Color outputs HSB, in what format? I mean, it can be 255,122,009 or 255122009 or something like H255S122B009. Which one is it?
And finally, how can I make the MQTT send those commands? Let me explain, for some Test Leds I had to write this:
Switch D1 "Green Light" <light> [ "Switchable" ] {mqtt=">[broker:/HA1/E00/001:command:ON:1],>[broker:/HA1/E00/001:command:OFF:0],<[broker:/HA1/E00/001:state:default]"}
//Where MQTT syntax goes as follows
Item itemName { mqtt="<direction>[<broker>:<topic>:<type>:<trigger>:<transformation>]" }
//And what I may be looking for could look something like this (openhab2 documentation example)
Switch mySwitch {mqtt=">[mybroker:myhouse/office/light:command:ON:1],>[mybroker:myhouse/office/light:command:*:Switch ${itemName} was turned ${command}]"}
Meaning that I had to send manually each command(ON,OFF) individually, what is absolutely no problem and obvious for a switch; But I am sure there is a way in which I don’t have to manually send each HSB combination manually. I don’t know if I have explained myself well enough: What I want is to take the Color Item output and send(publish) that output as a message(I am aware I would have to transform it before to a String, as you said before).
I am sure that I am missing a concept quite important here. I hope you can help me! Tell me if I can thank you other way.
With outdated, I meant some of the info is only for openhab1 and sometimes I struggle finding that documentation for openhab2. Nevertheless, “outdated” is not the main problem; It’s just there is very little info for beginners like me.
Thank you!! Really!