API Question Issue | Yeelight Ceiling Lamp


#1

According to the yeelight API there is only three kind of models:

“MODEL”: The product model of a Yeelight smart device. Current it can be “mono”,
“color”, “stripe”. For “mono”, it represents device that only supports brightness
adjustment. For “color”, it represents device that support both color and color
temperature adjustment. “Stripe” stands for Yeelight smart LED stripe. More values may
be added in future.

According to this only color and stripe mode can have temperature control. However, the Yeelight ceiling lamp also has temperature control but it isn’t color nor stripe, right?

So what is the Ceiling Lamp mode in the API and how can I identify that temperature can be changed?

Thanks!


#2

This is the response from Ceiling device, the model is “ceiling”. Color temp can be identify by the support function “set_ct_abx”.

recevice response : HTTP/1.1 200 OK
Cache-Control: max-age=3600
Date:
Ext:
Location: yeelight://192.168.1.111:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x0000000002e3304d
model: ceiling
fw_ver: 168
support: get_prop set_default set_power toggle set_bright set_scene cron_add cron_get cron_del start_cf stop_cf set_ct_abx set_name
power: on
bright: 100
color_mode: 2
ct: 4000
rgb: 0
hue: 0
sat: 0
name:


#3

Thank you so much for this!


#4

Hi to all

I am trying to address a Yeelight ceiling lamp and a Yeelight desk lamp from openhab2. It works perfect with Yeelight RGB (Wonder) and Yeelight stripe.

Switch Yeelight1_Switch “Light Meditation” (gOG) {channel=“yeelight:Wonder:0x00000000034746xx:Brightness”}
Dimmer Yeelight1_Dimmer “Light Meditation Dimmer” (gOG) {channel=“yeelight:Wonder:0x00000000034746xx:Brightness”}
Color Yeelight1_Color “Light Meditation Farbton” (gOG) {channel=“yeelight:Wonder:0x00000000034746xx:Color”}
Dimmer Yeelight1_Color_Dimmer “Light Meditation Farbe Dimmer” (gOG) {channel=“yeelight:Wonder:0x00000000034746xx:Color_Temperature”}

I get no answer from Yeelight Ceiling and Yeelight Desk lamp.

This is what I use for the ceiling lamp:

Switch Yeelight2_Switch “Ceiling Living room” (gEG) {channel=“yeelight:Ceiling:0x0000000047a666xx:Brightness”}
Switch Yeelight2_Switch_brightness “Ceiling Living room on/off”(gEG) {channel=“yeelight:Ceiling:0x0000000047a666xx:Brightness”}
Dimmer Yeelight2_Dimmer “Ceiling Living room Dimmer” (gEG) {channel=“yeelight:Ceiling:0x0000000047a666xx:Brightness”}

For the Yeelight desk lamp I don’t know the name to use in the channel statement, so I tried it like this:

Switch Yeelight4_Switch “Desk Lamp” (gEG) {channel=“yeelight:Ceiling:0x00000000d6367fxx:Brightness”}
Switch Yeelight4_Switch_brightness “Desk Lamp on/off” (gEG) {channel=“yeelight:Ceiling:0x00000000d6367fxx:Brightness”}
Dimmer Yeelight4_Dimmer “Desk Lamp Dimmer” (gEG) {channel=“yeelight:Ceiling:0x00000000d6367fxx:Brightness”}

Any help would be much appreciated - many thanks in advance!


#5

Make sure LAN Control is enabled on both lamp and all firmware are up to date.


#6

LAN control is enabled, FW is 1.4.8_173 on Ceiling, 1.3.0_52 on Desk Lamp.
I think I am missing the identifier of the Desk Lamp, i.e. “Wonder” for RGB, “Stripe” for stripe, but what is it for Desk Lamp?