Skip to content

Yeelight Binding ​

This binding integrates the Yeelight Lighting Product.

Supported Things ​

DeviceThing type IDDevice model
Yeelight LED Ceiling Lightceilingceiling, ceiling3
Yeelight LED Ceiling Lightceiling1ceiling1, ceiling11, ceil26
Yeelight LED Ceiling Lightceiling4ceiling4
Yeelight LED Color Bulbwondercolor, color4
Yeelight LED White Bulbdolphinmono
Yeelight LED White Bulb v2ct_bulbct_bulb
Yeelight LED Color Stripestripestripe, strip6
Yeelight Mi LED Desk Lampdesklampdesklamp

Preconditions ​

To control Yeelight devices with this binding, you need to connect the device to your local network first using the Yeelight app. This app is available in the iOS App Store and on Google Play.

Then you need to activate LAN control mode by enabling Developer Mode in device settings, after which it will become discoverable by openHAB.

Discovery ​

Yeelight smart LED devices announce themselves on the network through UPnP, so that they can be discovered.

Thing Configuration ​

All Yeelight things require the deviceId from the device as a configuration parameter. This table shows all available parameters:

ParameterValuesMandatory
deviceIdID of the Yeelight deviceYes
durationDuration for transition between different statesNo

Channels ​

All devices support some of the following channels:

ChannelItem TypeDescription
brightnessDimmerThis channel supports adjusting the brightness value; it is available on dolphin and ceiling.
colorColorThis channel supports color control; it is available on wonder and stripe.
colorTemperatureDimmerThis channel supports adjusting the color temperature; it is available on wonder, stripe, and ceiling.
commandStringThis channel sends a command directly to the device; it is available on all Yeelight things.
backgroundColorColor or DimmerThis channel supports color control for the ambient light; it is available on ceiling4.
nightlightSwitchThis channel supports switching to nightlight mode; it is available on ceiling1 and ceiling4.

Full Example ​

Things:

dsl
Thing yeelight:stripe:1 [ deviceId="0x000000000321a1bc", duration=1000 ]

Items:

dsl
Color YeelightLEDColor { channel="yeelight:stripe:1:color" }
Switch YeelightLEDSwitch { channel="yeelight:stripe:1:color" }
String YeelightLEDCommand { channel="yeelight:stripe:1:command" }

Rules:

rules
rule "Yeelight Custom Command"
when
        Time is noon
then
        YeelightLEDCommand.sendCommand("set_power;\"on\",\"smooth\",2000")
end

Note that set_power is the command, then a separator ; must be used. \"on\",\"smooth\",2000 are the parameters.

The full list of commands can be found in the Yeelight Inter-Operation Specification PDF.