Yeelight binding power channel

  • Platform information:
    • Hardware:64 bit/32gb
    • OS: Windows 11
    • Java Runtime Environment:17.0.8
    • openHAB version: 4.0.3
  • Issue of the topic:

The official yeelight binding doesn’t have a power channel.
How do I create a power switch from the command channel?

There are different ways to achieve this.
First of all, the color or brightness channels can be linked to Switch Item, cause both channels accept ON/OFF commands as well.

If you really want to use the command channel, you need a so called proxy Item (with no linked channel) and the rule examplae from the binding docs. Trigger for the rule would then be the proxy item.

I didn’t know the brightness channel could also be linked to the switch item and accept on/off commands.
Thanks, This solves my problem.