home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.83k forks source link

MiLight becoming unresponsive when grouped with Xiaomi lights. #11913

Closed lrnoble closed 6 years ago

lrnoble commented 6 years ago

Home Assistant release: 0.61.1

Python release: Python 3.5.2

Component/platform: Grouping LimitlessLED with Xiaomi

Description of problem: YLDD01YL - Xiaomi Yeelight LED Strip x 4 YLDP02YL - Xiaomi Yeelight RGB E27 Bulb x 1 FUT039 - Mi-Light RGB CCT (WW + CW) controller x 1 iBox2 - Mi-Light WiFi Controller 5M RGB CCT 24v LED Strip

When grouping both Xiaomi LED strips with a Mi-Light FUT039 controller, I observe an issue where HASS stops controlling the RGB CCT Strip.

The issue seems to occur once I select white in the centre of the RGB colour wheel. Once i have selected this and a colour temperature HASS will stop controlling the RGB CCT strip, the rest of the Xiaomi lights still respond as expected.

4 Things to note:

Expected: To be able to control Xiaomi Yeelights and Mi-Light RGB CCT controller from the same group without malfunction.

Problem-relevant groups.yaml and configuration.yaml entries and steps to reproduce:

  lounge_lights:
    name: Lounge Lights
    entities:
      - light.yeelight_rgb_286c07113910
      - light.yeelight_strip_286c07723322
      - light.yeelight_strip_286c07723f80
      - light.yeelight_strip_286c07727534
      - light.yeelight_strip_286c077237b2
      - light.Loungeled
light:
  platform: limitlessled
  bridges:
    - host: 192.168.0.230
      groups:
      - number: 1
        type: rgbww
        name: Loungeled
  1. Select the light group to bring up the colour wheel
  2. Select a few colours proves that all lights are responding
  3. Select white from the centre of the colour wheel.
  4. Attempt to change colour temperature:
    • Xiaomi lights respond as expected.
    • RGB CCT Strip on the Mi-light controller does not change
  5. Attempt to select other colours or turn off and the RGB CCT strip does not react.
  6. Restarting HASS will turn off the RGB CCT strip whilst it's loading and then a I can control it again until this problem repeats.

I have logs but I cannot see anything blindingly obvious, happy to provide them if anyone want's to look, however it is 700KB of logs, enabled by setting:

Logger:

amelchio commented 6 years ago

This is likely because the Milight supports a smaller Kelvin range than the Yeelight but this is not respected when put in a group.

I will add a clamp to the limitlessled temperature setter to fix this.

lrnoble commented 6 years ago

Thanks, if you need me to test anything just let me know.

I also have a problem where the colour is incorrect in the section pointed out in red, The strip will illuminate green when i select orange/yellow, i think i need to raise this as a different issue though, as I have found that the incorrect colour output also occurs when not in a group.

I thought the 2 issues may be related, but now believe the White setting and incorrect colour setting are 2 separate issues.

broken colours