hey @Wolfgang_S , long time ago , i had some time to setup openhab, with a lot of working mqtt entities now, the only one i have issues with is this one, can you help me with it?
The on/off is wortking, as well the brightness, but the color one is giving me an headache, not sure how i can fix it… I can send the color, that works, but the problem is receiving the state, that gives me this issue…
2024-11-07 20:19:59.627 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '{h=120, s=100, x=0.172, y=0.747, r=0, g=255, b=0}' from channel 'mqtt:topic:ha_mqtt_broker:verlichting_slaapkamers:led_alessioc' not supported by type 'ColorValue': {h=120, s=100, x=0.172, y=0.747, r=0, g=255, b=0} is not a valid string syntax
Below is the mqtt thing, the first 2 one are working, the 3th one partiallly (only receiving state issue)
Type switch : led_alessio "Led Alessio" [ stateTopic="openhab/light/led_alessio/state",
commandTopic="openhab/light/led_alessio/set_light",
transformationPattern="JSONPATH:$.state",
formatBeforePublish="{\"state\":\"%s\"}",
on="ON",
off="OFF" ]
Type dimmer : led_alessiob "Led Alessio" [ stateTopic="openhab/light/led_alessio/state",
commandTopic="openhab/light/led_alessio/set_light",
transformationPattern="JS:brightness2.js∩JSONPATH:$.brightness",
formatBeforePublish="{\"brightness\":%s,\"state\":\"ON\"}",
min=0, max=255, step=25 ]
Type color : led_alessioc "Led Alessio" [ stateTopic="openhab/light/led_alessio/state",
commandTopic="openhab/light/led_alessio/set_light",
colorMode="RGB",
transformationPattern="JS:color2.js∩JSONPATH:$.color",
formatBeforePublish="{\"state\": \"ON\",\"color\": {\"r\": %1$d,\"g\": %2$d,\"b\": %3$d}}" ]