- Platform information:
- openHAB version: running docker container openhab/openhab:3.2.0
- Issue of the topic:
I added a zigbee RGB spot light by zigbee2mqtt.
Here a link to all the MQTT topics: Lidl HG06106A control via MQTT | Zigbee2MQTT
I am having troubles with configuring the color. (I know the LED has the colorspace CIE 1931 which means I need to add some kind of transformation from the RGB values to the colorspace of the device. But I am not even able to create a proper configuration which could send simple RGB colors to any device.)
I would have expected the integration of a RGB LED would be quite easy and the internet would be full with good examples.
But the stuff I am finding is not really helping me:
- sitemap: Sitemaps | openHAB
- ok, this is easy.
Colorpicker item=LR_LEDLight_Color label="LED Light Color" icon="colorwheel"
But what kind of thing configuration do I need to receive/send the commands?
- ok, this is easy.
- I found a component which is kind of useless for me because I do not know what this is.
oh-colorpicker-item - Color Picker List Item | openHAB
I guess this is a custom thing you can install additionally if you do not like the preinstalled colorpicker? In this case I prefer to stick to the most simple configuration of the colorpicker at the moment. - Old forum discussion: Colorpicker and Color item Pushstart (Please help)
But I cannot see anything useful for me. - Even older post which is probably not even working in OH3?
Colorpicker List Item with separate items for OnOff and Power
I appreciate every useful link or sample to learn how to add a LED RGB light with MQTT to OpenHAB.
- Please post configurations (if applicable):
- Items configuration related to the issue
Switch HG06106A_State "State" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:StateGet"} Number HG06106A_Brightness "Brightness" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:Brightness"} Number HG06106A_ColorTemp "ColorTemp" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:ColorTemp"} Number HG06106A_ColorX "ColorX" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:ColorX"} Number HG06106A_ColorY "ColorY" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:ColorY"} Number HG06106A_Effect "Effect" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:Effect"} Number HG06106A_Linkquality "Linkquality [%d / 255 LQI]" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:Linkquality"} Number HG06106A_Transition "Transition" (zigbee) {channel="mqtt:topic:zigbee:Lidl_GU10_HG06106A:Transition"}
- Things configuration related to the issue
Thing mqtt:topic:zigbee:Lidl_GU10_HG06106A "Livarno Lux GU10 spot RGB" (mqtt:broker:myMQTTBroker) @ "TODO" { Channels: Type switch : StateGet [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.state", on="ON", off="OFF"] Type number : Brightness [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.brightness"] Type number : ColorTemp [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.color_temp"] Type number : ColorX [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.color_xy.x"] Type number : ColorY [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.color_xy.y"] Type number : Effect [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.effect"] Type number : Linkquality [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.linkquality"] Type number : Transition [stateTopic="zigbee2mqtt/XX", transformationPattern="JSONPATH:$.transition"] }
- Sitemap configuration related to the issue
sitemap mqtt_zigbee2mqtt_GU10 label="mqtt_zigbee2mqtt_GU10" { // device specific properties Switch item=HG06106A_State icon="light" Text item=HG06106A_Brightness Text item=HG06106A_ColorTemp Text item=HG06106A_ColorX Text item=HG06106A_ColorY Text item=HG06106A_Effect Text item=HG06106A_Transition // Diagnostics Text item=HG06106A_Linkquality icon="qualityofservice" }
- Rules code related to the issue
nothing yet - Services configuration related to the issue
addons.cfgbinding = mqtt transformation = jsonpath
- Items configuration related to the issue