[Yeelight] How to set rules

Hello, i have problem. I’ trying to set automatic light when (MotionSensor_MotionStatus.state == ON). I dont know how turn od yeelight and change Temperature to 30%. I hava:

Switch Yeelight_Kitchen_Status “Status” { channel=“yeelight:stripe:3:color” }
Color Yeelight_Kitchen_Color “Kolor” { channel=“yeelight:stripe:3:color” }
Dimmer Yeelight_Kitchen_Temperature “Temperatura” { channel=“yeelight:stripe:3:colorTemperature” }

And rules:

rule "Mijia & Aqara Motion Sensor"
when
    Item MotionSensor_MotionStatus changed
then
    if (MotionSensor_MotionStatus.state == ON) 
    	{
    	Yeelight_Kitchen_Status.status(ON)
    	Yeelight_Kitchen_Temeprature.sendCommand(30)
    	}
    }
end

That line doesn’t make much sense, just take that one out. Find openhab.log file to see error messages

Now work but i dont know how change brightness, now work only Status/Temperature

rule "Mijia & Aqara Motion Sensor"
when
    Item MotionSensor_MotionStatus changed to ON
then
    Yeelight_Kitchen_Status.sendCommand(ON)
    Yeelight_Kitchen_Brightness.sendCommand(1)
    Yeelight_Kitchen_Temperature.sendCommand(50)

    Yeelight_Living_Room_Status.sendCommand(ON)
    Yeelight_Living_Room_Brightness.sendCommand(1)
    Yeelight_Living_Room_Temperature.sendCommand(50)
end

Switch Yeelight_Living_Room_Status “Status” { channel=“yeelight:stripe:2:color” }
Color Yeelight_Living_Room_Color “Kolor” { channel=“yeelight:stripe:2:color” }
Dimmer Yeelight_Living_Room_Temperature “Temperatura” { channel=“yeelight:stripe:2:colorTemperature” }
Dimmer Yeelight_Living_Room_Brightness “Temperatura” { channel=“yeelight:stripe:2:brightness” }

Switch Yeelight_Kitchen_Status “Status” { channel=“yeelight:stripe:3:color” }
Color Yeelight_Kitchen_Color “Kolor” { channel=“yeelight:stripe:3:color” }
Dimmer Yeelight_Kitchen_Temperature “Temperatura” { channel=“yeelight:stripe:3:colorTemperature” }
Dimmer Yeelight_Kitchen_Brightness “Temperatura” { channel=“yeelight:stripe:3:brightness” }

OpenHab dont see (Dimmer Yeelight_Living_Room_Brightness) , i dont have this Dimmer in Control too

Hello,

look at the dokumentation.

brightness Dimmer This channel supports adjusting the brightness value, it is available on dolphin and ceiling .

Do you have a dolphin or a ceiling lamp?

For my Yeelights i take this AddOn.

Then only thing that you need is a token.

I’m trying Xiaomi Mi IO bot i don’t know how get “TOKEN”.

Here a link. Maybe to the solution.