Xiaomi Yeelight E27 bulb component

Ahh ok, it’s a white bulb, I don’t know how to check the model number

white bulb can be controlled via automation without any issue. only problem is you cannot control it on the frontend.

ahhh, yes I tried to control it with frontend. Now will try automation, thanks

another user suggested this

use this code: https://github.com/mxtra/yeelight-ha1 for Yeelights.

EDIT Tried, works very well!

I can confirm this one works perfectly with all yeelights, even the white ones. Can someone add that to HA and update the old one that breaks the white lights.
Thanks

It has a minor bug. Sometimes it shows the light is on, while in reality is off.

For the rest is working

Yeah, just noticed that now it doesn’t read the status of the light. If I turn the light off/on on the Yeelight APP it doesn’t update the status :frowning:

What are the values you put for a warm whit light?

Is there anyway to add support for the Xiaomi Philips Eyecare light?

where is the folder of custom_components? i can’t find it in my home assistant folder?

Just create it on the homeassistant root folder

not working,

What not work @kornfool? Because i have 6 yeelight bulbs and all works with the custom component

@mxtra Thank you for yeelight-ha !!

Here are some bugs I found:

  1. Customizations don’t seem to work with yeelight platform when imported from yeelight.py (ex. I can’t change the friendly_name or set a custom icon)
  2. I can’t set the default brightness
  3. HA GUI doesn’t change state if light bulb changes state (by hand or via yeelight app)

Would it be possible to address this issues?
Also, is there a plan to merge this into HA?

i create custom components folder but don’t seem it working.

The state of the bulb it’s bad :frowning: can’t use or rely on it atm because of it… hope it gets fixed soon

Hello,

i have https://www.aliexpress.com/item/Original-For-Xiaomi-Yeelight-E27-Led-Adjustable-Brightness-Wifi-Remote-Control-Smart-LED-Bulb-8W-600/32708909107.html?ws_ab_test=searchweb0_0,searchweb201602_5_10065_10068_10000009_10084_10083_10080_10082_10081_10060_10062_10056_10055_10054_10033_10059_10099_10078_10079_10000012_10103_10073_10102_10000015_10096_10052_10053_10050_10107_10106_10051,searchweb201603_3,afswitch_5_afChannel,single_sort_0_default&btsid=eea0b4c4-6103-40c7-91e7-8b7dd43be1a3

this still can work? i try to add the line to the my HA but this is not working.

i be happy to help,

via telnet the lamp is off on via command
{“id”:1,“method”:“set_power”,“params”:[“off”, “smooth”, 2000]}
work fine,

but with HA i cannot get it to work, i try all step user add here, non of this work for me.

any one can tell me what i need to do exactly?

Big Thanks!

Yanir

The following presumes that you are running Linux (and probably works on MacOS) and that you have installed home assistant to run as “hass” user:

sudo su -s /bin/bash hass
mkdir -p /home/hass/.homeassistant/custom_components/light
cd /home/hass/.homeassistant/custom_components/light
wget https://raw.githubusercontent.com/mxtra/yeelight-ha/master/yeelight.py

Then in HA configuration.yaml:

lights:
    - platform: yeelight
      devices:
        10.0.0.51:
          name: Living Room Light
          transition: 600

NOTE: Substitute 10.0.0.51 with the ip address of your yeelight light bulb
IMPORTANT: You need to enable developer support on the light bulb using the yeelight app.

Restart HA and test

Will this override the existing yeelight component that is currently in HA?