I have the following configuration in the item
Switch PowerLED "BED LIGHT" {mqtt=">[broker:openhab/bedlight/setpower:command:ON:ON], >[broker:openhab/bedlight/setpower:command:OFF:OFF], <[broker:openhab/bedlight/setpowerstate:state:*:default]"}
Color TVLedLight "Bed Color" <colorlight> (All)
String TVLedLightColor (All) {mqtt=">[broker:openhab/bedlight/setcolor:command:*:default]"}
In the ESP8266 code whenever the color is set i do this
client.publish("openhab/bedlight/setpowerstate", "ON");
The color setting, powering on, powering off works fine. But whenever i set the color to the light, i was hoping that the openhab would read the incoming message on the state topic from MQTT and set the power button to on automatically. But it does not. Does it not work that way? or is something wrong in my setup