How should a RGBWW light be set up in OH?

I’m trying out the new HA-autodiscovery from zigbee2mqtt with a single RGBWW lightbulb to start with. I tried both OH 4.3.3 release and OH 5.0M1 milestone. The bulb advertises like this from z2m:

{
  "availability": [
    {
      "topic": "zigbee2mqtt/bridge/state",
      "value_template": "{{ value_json.state }}"
    },
    {
      "topic": "zigbee2mqtt/0xb0ce181400182529/availability",
      "value_template": "{{ value_json.state }}"
    }
  ],
  "availability_mode": "all",
  "brightness": true,
  "brightness_scale": 254,
  "command_topic": "zigbee2mqtt/0xb0ce181400182529/set",
  "device": {
    "hw_version": 1,
    "identifiers": [
      "zigbee2mqtt_0xb0ce181400182529"
    ],
    "manufacturer": "Sengled",
    "model": "Smart LED multicolor A19 bulb",
    "model_id": "E21-N1EA",
    "name": "0xb0ce181400182529",
    "via_device": "zigbee2mqtt_bridge_0x00124b00214f43b9"
  },
  "max_mireds": 500,
  "min_mireds": 154,
  "name": null,
  "object_id": "0xb0ce181400182529",
  "origin": {
    "name": "Zigbee2MQTT",
    "sw": "2.1.1",
    "url": "https://www.zigbee2mqtt.io"
  },
  "schema": "json",
  "state_topic": "zigbee2mqtt/0xb0ce181400182529",
  "supported_color_modes": [
    "xy",
    "color_temp"
  ],
  "unique_id": "0xb0ce181400182529_light_zigbee2mqtt"
}

It shows up in the OH inbox with these channels:

I can create items for those three channels and link them up, and it gives me control of the RGB portion of the light (with a colorpicker control), but how can I control the colortemperature or even put it in that (“white”) mode? My office is now exclusively disco-themed :slight_smile:

Thanks!

Just try commanding the color temperature. Depending on the light it may take a value of 0…100% or a temperature value between about 2000 K and 6500 K

Ok, that worked, at least to get me to the next stage! The item for color temperature seemed “read only” because it doesn’t accept input via the “Model” page, or what I think is called MainUI. Instead, I created an old school sitemap, put a slider control linked to the color temp item, and it works! However, I still don’t have on/off or intensity control for the “white” (color temperature) mode. But that was a helpful clue, thanks!

Edit: on/off control is available via the colorpicker connected to the Color item. Intensity control is also there, but if I adjust it, the mode goes back to xy (RGB – disco office again!). The new intensity actually remains in effect if I then choose a color_temp, but that’s awkward.

If the item is of type Number:Temperature then you can link it to a Colortemperaturepicker control in the sitemap. But if it is just a number then you need a Dimmer control.

Thanks for the clue! I’m using MQTT auto-detect (HA) so the Thing and Item are automatically created and typed. Here’s the Thing Channel and Item link:


So it looks like the Channel is just a Number but the linked Item is a Number:Temperature, if I read that correctly. I attached a Colortemperaturepicker to the Item and it looks like this in Basic UI:
image
It displays the color temp but I can’t interact with it; there’s no control. A Slider control actually does work!
image
When I move it back & forth the color temp of the lights responds correctly. I assume a Switch type would also work with pre-defined setpoints. So that’s effective, but I wonder if it’s still not “correct,” especially as the Main UI control for Color Temperature is read-only: