openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

[yeelight] add support for "ceila" model (ceiling light, model C2001) #17722

Open soerenGer opened 2 weeks ago

soerenGer commented 2 weeks ago

I'd like to make a request for support of a ceiling light that itself reports as model "ceila". The light works as all other ceiling lights, discovery works as well, just the model does not seem to be supported. As a guess it could work as "ceiling light with night mode". Actually it's a family of ceiling lights, end user information is provided here: https://en.yeelight.com/product/led-ceiling-light-c2001-series/

Below is the output of the discovery:

Date:
Ext:
Location: yeelight://10.30.255.114:55443
Server: POSIX UPnP/1.0 YGLC/1
id: 0x0000000012345678
model: ceila
fw_ver: 11
support: get_prop set_default set_power toggle set_bright set_scene cron_add cron_get cron_del start_cf stop_cf set_adjust adjust_bright set_name set_ct_abx adjust_ct
power: on
bright: 1
color_mode: 2
ct: 4000
rgb: 0
hue: 0
sat: 0
name:

I would like to note, that the discovery results in an exception currently which is not caught properly. So the "scan" button shows nothing and the exception just pops up in the log file after increasing the loglevel above "info". I would propose to show at least in the log file as "warn" or "info" level a respective message indicating that a device had been found but could not be identified. This would increase the user friendliness a little.