Xiaomi Yeelight LED strip

hi dmiddlet2005,

thanks for your suggestions

Yes - in the Yeelight app, the developer mode is enabled and I can change the colour and/or brightness

http://i.imgur.com/kJvmx8W.png

it is v strange that i can’t control the RGB strip as I can control my Yeelight bulbs in HA

I think I understand what you are encountering. I am able to perform all controls from the popup, but not set any settings from the yaml file other than on and off and transition. Maybe I am doing something wrong also. What I am working on is using an led strip to light up RED in the front hallway when the alarm is on. This “should” prevent my family from just running out the front door without turning off the alarm.

What I had to do for that instance was turn on the yeelight, set the color I wanted, then turn it off. It will remember the last color. Would love to get it to flash green for a few seconds when the alarm is turned off. I’ll keep playing with it.

Here is my automation section referring to this action.

  • alias: ‘Alarm_Armed_Home’
    trigger:
    entity_id: alarm_control_panel.alarmcom
    platform: state
    to: ‘armed_home’
    action:
    service: light.turn_on
    entity_id: light.alarmstatus

  • alias: ‘Alarm_Disarmed’
    trigger:
    entity_id: alarm_control_panel.alarmcom
    platform: state
    to: ‘disarmed’
    action:
    service: light.turn_off
    entity_id: light.alarmstatus

Hello, my yeelight strip lights work except for the “effect”. If I choose any effect, the light becomes unavailable.

Besides that, I am getting this warning:

2017-08-30 21:07:16 WARNING (Thread-9) [root] Unknown miio device found: ServiceInfo(type='_miio._udp.local.', name='yeelink-light-strip1_miio56728920._miio._udp.local.', address=b'\xx0\xx8\xx1\xx7', port=54321, weight=0, priority=0, server='yeelink-light-strip1_miio56728920.local.', properties={b'mac': b'xxxxxxxxxx', b'epoch': b'1'})

How can this be fixed?

1 Like

Which version of HA are you using?

I am using the latest version: 0.52.1.

I thought the “unknown device” problem was already fixed, apparently not. More info:

I’ve set them using the ip’s. They are working, even they were working before setting up ip’s.

So this is just a matter of unwanted warnings in the log.

To get rid of the error you can manually add the two lines of code to the yeelight.py But as @abmantis wrote it’s safe to ignore the warning.

hi all, not sure if my issue is related to this component and to the fix suggested above:

I have a white yeelight connected to HASS - before updating from 0.50.1, I had the effects dropdown available and had no issues using the toggle button to switch on and off the yeelight.

since updating to 0.52.1, I no longer have the effects option and the only way to switch off the light is to move the brightness slider back to the zero position.

any advice?

Rebooting the raspberry pi and power cycling the light fixed the same problem for me.

1 Like

ah - ok, will try it out.

i’ve rebooted the pi a number of times as thought that there was an issue with the way i’d setup the config.yaml

haven’t cycled the light yet… :wink:

Not sure if it will help but just in case, use the yeelight app to make sure the lights are running the latest firmware.

thanks, checked that too.

they are up-to-date.

when in doubt - reboot… :man_facepalming:

thanks for the help all!

Hi Guys!

I want to swich off my yeelight LED strip with my Xiaomy wireless switch.
Can you help me what is the action? I have the trigger:

 - alias: Stairs LED off
  trigger:
    platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.switch_15xxxxxxxce
      click_type: single

But… I don’t know what is the correct action for Turning off my Yeelight LED strip. Can you help me?

Hi,
Sorry i don’t have yeelight led strip.

But must be something like this:

action:
  - service: light.turn_on
    entity_id: light.gateway_light_f0b4XXXXXX
    data:
      brightness: 255
      rgb_color: [4,26,255]

But to be sure, i recomend you enter to your home assistant options and go to state and see what you see in your yeelight led strip, and change the entity_id of my example by yours

imagen

1 Like

Thank you!
I think this will work for me than:

- alias: Stairs LED off
  trigger:
    platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.switch_15xxxxxxxxce
      click_type: single
  action:
    service: light.turn_off
    entity_id: light.yeelight_strip_28xxxxxxxxca
    data:
      transition: 5

Hello,

Did you figured what the problem was with your LED strip?
I’m having the same issue as I can turn on/off and even can set an effect however, I can’t control the colors of the LEDs.

I’m getting frustrated for a while now trying to figure this out…!

1 Like

I have the same problems

Hi! In the configuration.yaml add the model to the yeelight config. If the strip is the version 2, add as it was the version 1. It worked for me

1 Like