Yeelight led ceiling light compatible with HA

I’ll try. No they have not the same name, I just removed the last characters. :slight_smile:

I have another Idea but i´m not sure if this works. Try this:

wohnzimmermoon:
  alias: Wohnzimmer Moon Mode
  sequence:
  - service: light.yeelight_set_mode
    data:
       entity_id: light.insertlight1, light.instertlight2, light.insertlight3
       mode: moonlight

Thanks it’s working and this works too:

yeelightmoon:
  alias: Yeelight Moon Mode
  sequence:
  - service: light.yeelight_set_mode
    data:
      entity_id: 
        - light.yeelight_ceiling_7c49ebb38
        - light.yeelight_ceiling_7c49ebb3a
        - light.yeelight_ceiling_7c49ebb39
      mode: moonlight

input_boolean

moonlight_mode:
    name: Ceiling Light moonlight indicator
    icon: mdi:weather-night

switches.yaml

- platform: template
  switches:
    moonlight:
      friendly_name: Moonlight
      value_template: "{{ is_state('light.yeelight_ceiling_34ce00805b11','on') and is_state('input_boolean.moonlight_mode', 'on') }}"
      turn_on:
        - service: light.yeelight_set_mode
          data:
            entity_id: light.yeelight_ceiling_34ce00805b11
            mode: moonlight
        - service: input_boolean.turn_on
          data:
            entity_id: input_boolean.moonlight_mode
  turn_off:
    - service: light.yeelight_set_mode
      data:
        entity_id: light.yeelight_ceiling_34ce00805b11
        mode: normal
    - service: input_boolean.turn_off
      data:
        entity_id: input_boolean.moonlight_mode
    - service: light.turn_off
      data:
        entity_id: light.yeelight_ceiling_34ce00805b11

only issue is the light flashes briefly on turn_off command while it returns to normal mode. i’m not sure there’s an elegant way to prevent that

Hello, is any progress about RBG on jiaoyue 650?

3 Likes

Just got mi led desk lamp but i can’t add it to the ha:disappointed_relieved: log shows yeelight component isn’t load. Can you help me plz thx

2018-12-02 20:22:10 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform yeelight
Traceback (most recent call last):
File “e:\program files (x86)\python\lib\site-packages\homeassistant\helpers\entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “e:\program files (x86)\python\lib\asyncio\tasks.py”, line 400, in wait_for
return fut.result()
File “e:\program files (x86)\python\lib\asyncio\futures.py”, line 293, in result
raise self.exception
File “e:\program files (x86)\python\lib\concurrent\futures\thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “e:\program files (x86)\python\lib\site-packages\homeassistant\components\light\yeelight.py”, line 126, in setup_platform
from yeelight.enums import PowerMode
File "C:\Users\JOY\AppData\Roaming.homeassistant\deps\Python35\site-packages\yeelight_init
.py", line 5, in
from yeelight.main import Bulb, BulbType, BulbException, discover_bulbs
File “C:\Users\JOY\AppData\Roaming.homeassistant\deps\Python35\site-packages\yeelight\main.py”, line 17, in
import win32api as fcntl
ImportError: No module named ‘win32api’

@syssi Any news on the RGB background light function for the 650?

1 Like

No progress here. Sorry.

Garvarma,

Mine works fine. At least it is visible in HA web interface and responds to the on/off commands. Tell me which function you want to test and I will do it for you.

Regards

Hi,

I tried to read and follow this topic, but I’m getting mixed messages.
Does the current state of this component in Hass.io support the moonlight mode for this Yeelight Ceiling light https://www.yeelight.com/en_US/product/luna or not?

I tried:

light:

- platform: yeelight
  devices:
    192.168.2.72:
      name: Kantoor links 1
      model: ceiling1
      transition: 1500
      save_on_change: True
    192.168.2.73:
      name: Kantoor links 2
      model: ceiling1
      transition: 1500
      save_on_change: True
    192.168.2.71:
      name: Kantoor rechts
      model: ceiling1
      transition: 1500
      save_on_change: True

Group:

office:
 name: Kantoor
 entities:
   - light.kantoor_rechts
   - light.kantoor_links_1
   - light.kantoor_links_2

automation:

  - service: light.yeelight_set_mode
    data:
      mode: moonlight
      entity_id:
        - group.office

But no luck :frowning:

Did you try to enable the moonlight mode for a single light entity? Your automation is incomplete. You’ve posted the action only, right? Please remove the list just for testing and use:

  - service: light.yeelight_set_mode
    data:
      mode: moonlight
      entity_id: group.office

May be the component lacks some code to handle groups properly.

Managed to get it working:

Groups don’t work:

LIght:

- platform: yeelight
  devices:
    192.168.2.72:
      name: Kantoor links 1
      use_music_mode: False
      model: ceiling1
      transition: 1000
    192.168.2.73:
      name: Kantoor links 2
      use_music_mode: False
      model: ceiling1
      transition: 1000
    192.168.2.71:
      name: Kantoor rechts
      use_music_mode: False
      model: ceiling1
      transition: 1000

Automation:

- id: Kantoorverlichting_aan_bij_beweging
  alias: Kantoorverlichting aan bij beweging
  hide_entity: true
  trigger:
  - platform: state
    entity_id: sensor.kantoor_motion_sensor
    to: 'on'
  condition:
  - condition: numeric_state
    entity_id: sensor.kantoor_lux
    below: 8
  action:
  - service: light.yeelight_set_mode
    data:
      mode: normal
      entity_id:
        - light.yeelight_ceiling_34ce00865540
        - light.yeelight_ceiling_34ce0086b290
        - light.yeelight_ceiling_7811dca1c734
  - service: light.turn_on
    data:
      brightness: 20
      color_temp: 340
      entity_id:
        - light.yeelight_ceiling_34ce00865540
        - light.yeelight_ceiling_34ce0086b290
        - light.yeelight_ceiling_7811dca1c734
        
- id: Kantoorverlichting_uit_na_beweging
  alias: Kantoorverlichting uit na beweging
  trigger:
    platform: state
    entity_id: sensor.kantoor_motion_sensor
    to: 'off'
    for:
      minutes: 2
  action:
  - service: light.yeelight_set_mode
    data:
      mode: moonlight
      entity_id:
        - light.yeelight_ceiling_34ce00865540
        - light.yeelight_ceiling_34ce0086b290
        - light.yeelight_ceiling_7811dca1c734
  - delay: 60
  - service: light.turn_off
    data:
      entity_id: group.office
1 Like

Is there support for the Yeelight JIAOYUE 650 and the additional ambient LEDs?
Gearbest-Link

I would call it “basic support”. You can control the light and there is a service to change the mode (enable the moonlight mode f.e.). The control of the ambient light isn’t implemented right now.

1 Like

Is there a chance in the future that we will be able to activate ambient light for the 650 lamp?

It’s no problem in general. It just needs to be implemented. :wink:

Since i have enabled lan control with my Yeelight Ceiling Lights to control them with hassio i have a problem with my yeelight 650. The ambilight automaticly turns on when i power the lamp via hassio on my Browser. With the yeelight app, you could Power on the ambilight and the normal Light seperately and when you did not turn the ambilight on this state was “saved” and after turning it on and off, ambilight stayed off. Now even in the yeelight App the ambilight turns on when i Power on the Ceiling Light. Does anybody know how to fix this without disabling LAN-control (which fixes it but then i cant control the Lights with hassio).

Is there a way to get the ceiling effects to work as well? For example Flash Notify, Tea Time, Candle Flicker etc… And what does the ‘color flow’ mode do?

Would you be able to implement this easily if this PR is merged?

1 Like

Cool! If the PR gets merged I will extend the HA component!

2 Likes