Hi everyone,
I fiddle around for a few hours now - and fail to set the color of my WLED strip…
Item definition:
Color LED_TV_WZ_Farbe "Farbe" ["Lighting"] {channel="wled:wled:001:wztv:colour"}
Rule:
rule "LED TV Startup Color"
when Item CUL_WZ_LED_TV received command "ON"
then
LED_TV_WZ_Farbe.sendCommand(HSBType.fromRGB(230,100,50))
logInfo("RULE:LED TV Startup Color", "[INFO]: Die Farbe wird auf Blau gesetzt")
end
The rule fires when the trigger is recognised (I can see the log entry in the logfile), but the color is not set by the sendCommand command.
Man, that’s super-ugly…I’ve got things, items and a nice color picker in the sitemap - and then I publish some value directly into the MQTT path on the broker? That might be working but I’m sure that’s not the way it’s supposed to be. Besides that I need to install and configure MQTTAction which I’m currently not using. Is there no better solution for it?