Hi,
I have the follwing rule which gives me an error in the LSP (VSCode):
rule “WLED: Adapt Color Parameter to WLED Notation”
when
Item WLED_Color received update
then
val HSBType newLEDState = triggeringItem.state
val rgb = 16777215 + newLEDState.getRGB
val mqttActions = getActions(“mqtt”,“mqtt:broker:mosquitto”)
mqttActions.publishMQTT(“wled/wztv/col”,"" + rgb)
end
Error message: Type mismatch: cannot convert from State to HSBType
My item definition is like this:
Color WLED_Color “Farbe” (Group_WLED)
Any ideas what causes the message and how I could prevent it from showing up?