Yeelight led ceiling light compatible with HA


#156

Anyone can explain me how to use “light.yeelight_set_mode” for set an rgb value to a turned on light?


#157

The turn_on service is what you’re looking for: https://www.home-assistant.io/components/light/


#158

I’m not at home for testing, so I ask: does it work also if light is already turned on?


#159

Yes. You can call turn_on multiple times with different configuratins / data sets.


#160

Could someone post an automation example with:
light.yeelight_set_mode {"mode": 5, "entity_id": "light.ceiling"} ??

:thinking:


#161

It looks like the color temperature range fix won’t be accepted without some changes. Could an owner of a ceiling light (@mouth4war) provide the output of:

$ pip3 install python-yeelight
[...]
$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> from yeelight import discover_bulbs
>>> discover_bulbs()
[{'ip': '192.168.130.45', 'capabilities': {'bright': '1', 'id': '0x00000000035ed44f', 'ct': '6500', 'support': 'get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set', 'color_mode': '1', 'hue': '359', 'sat': '100', 'name': '', 'fw_ver': '61', 'power': 'off', 'rgb': '16777215', 'model': 'color'}, 'port': 55443}]

I would like to know the value of the model key. Thanks!


#162

@syssi
For this model: https://de.gearbest.com/ceiling-lights/pp_596249.html?wid=1640583

[{'ip': '192.168.178.30', 'port': 55443, 'capabilities': {'id': '0x0000000003baXXXX', 'model': 'ceiling1', 'fw_ver': '180', '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 set_adjust set_ps set_wrgb bg_set_wrgb suicide set_test', 'power': 'on', 'bright': '100', 'color_mode': '2', 'ct': '4000', 'rgb': '0', 'hue': '0', 'sat': '0', 'name': ''}}]

#163

model key is ceiling1.

[{'ip': '192.168.31.140', 'port': 55443, 'capabilities': {'id': '0x0000000003ba759d', 'model': 'ceiling1', 'fw_ver': '180', '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 set_adjust set_ps set_wrgb bg_set_wrgb suicide set_test', 'power': 'off', 'bright': '100', 'color_mode': '2', 'ct': '3003', 'rgb': '0', 'hue': '0', 'sat': '0', 'name': ''}}]

#164

Hi, still very new in home assistant.

Just installed the newest version (0.69.0) which came out today but “model:…” is still not working for me.
Is the new ceiling lamp / the menu code still not included?


#165

@lalamite:

  • Have you enabled LAN control within the yeelight app?
  • What exact model do you have

#166

@tomba

Thanks for your quick response.

Yes, I have enabled LAN control (was enabled by default in my case)
I own the Yeelight JIAOYUE 650

If use the “model:” code I always get this error message after checking the config:

Invalid config for [light.yeelight]: [model] is an invalid option for [light.yeelight]. Check: light.yeelight->devices->192.168.1.111->model. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.yeelight/

This is the code I’m using:

light:

  • platform: yeelight
    devices:
    192.168.1.111:
    name: Wohnzimmerlampe
    model: ceiling
    transition: 350
    use_music_mode: False
    save_on_change: False

#167

The model option is not yet available in the current release version. However, your light should already work regardless. Just omit the model option.


#168

Yes it is working but Im not able to change the LED colors.

Ok, then I need to wait for the (hopefully) next release.
Thank you!


#169

Ah, i see. Thought your light wasn’t working all together.


#170

My mistake…I should have made this clear.

I worked but as said Im not able to change the led colors.
I will be patience and wait for the next release - have a nice weekend


#171

@Igor_Jurisic Could you provide the model names of your devices, too?

cp. Yeelight led ceiling light compatible with HA

I’ve seen you own a yeelight strip. It is called “strip1” or “strip” at the capabilities of python-yeelight?


#172

Sure, just let me know where and how to check for the names you want? I’m on Hassio.


#173

Is this what you are looking for?
yeelink-light-ceiling1_mibt77531119
yeelink-light-strip1_miio72697994
yeelink-light-mono1_miio56754700
yeelink-light-color1_miio72941242


#174

No. :slight_smile: Sorry for the late resonse. If you don’t have a python installation around it’s hard to find out.


#176

@syssi

I just received my ceiling light today but in HA I get a color wheel though it’s not an rgb light?

>>> import yeelight
>>> yeelight.discover_bulbs()
[{'ip': '192.168.......', 'port': 55443, 'capabilities': {'id': '0x0000000004a0f3fc', 'model': 'ceiling1', 'fw_ver': '180', '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 set_adjust set_ps set_wrgb bg_set_wrgb suicide set_test', 'power': 'off', 'bright': '92', 'color_mode': '2', 'ct': '2777', 'rgb': '0', 'hue': '0', 'sat': '0', 'name': ''}}]