Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controle two lights of the same ceiling light #40

Closed
trineu opened this issue Aug 2, 2019 · 8 comments
Closed

Controle two lights of the same ceiling light #40

trineu opened this issue Aug 2, 2019 · 8 comments

Comments

@trineu
Copy link

trineu commented Aug 2, 2019

Hello! First of all, thanks for the great plugin!

There are some Yelight ceiling lights that have two lights. One with temperature control and one with RGB color control.

Could this plugin control these two lights of the same equipment?

The model I own is this:
https://www.banggood.com/Yeelight-LED-Smart-Meteorite-Chandelier-Pendant-Light-For-Restaurant-Dinner-Room-Xiaomi-Ecosystem-Product-p-1416328.html?akmClientCountry=BR&rmmds=search&cur_warehouse=CN

But I know that there is this too:
https://www.banggood.com/Yeelight-JIAOYUE-YLXD02YL-650-Surrounding-Ambient-Lighting-LED-Ceiling-Light-WiFi-bluetooth-Xiaomi-Ecosystem-Product-p-1362173.html?rmmds=search&ID=557324&cur_warehouse=CN

@trineu trineu changed the title Two lights in the ceiling light Controle two lights of the same ceiling light Aug 2, 2019
@alialrahma
Copy link

Any HomeKit lightbulb can be grouped and controlled together. That is through Home > select Settings to accessory > then Group.

@jakaZ0806
Copy link

That's not what he's talking about. This is one lamp, reachable at one single IP-Adress, that has a downward-facing white light with color temperature and one upward-facing "ambient" light with rgb colors; these can be controlled individually.
I'm not sure which commands control which part of the light, but i'd be willing to help test it out.

@alialrahma
Copy link

My bad, I didn’t go through the photos fully and thought he meant to control both lights from the links he posted.

Very interesting lights - look forward to see you helping him make it work and maybe I’ll grab one then for my kitchen.

@jakaZ0806
Copy link

jakaZ0806 commented Aug 8, 2019

Hi! I found out all commands to control the background light. But I don't have much time on my hands right now and I'm switching to openHAB anyways. I'm in the process of adding support to their yeelight plugin if anyone is interested. The openHAB items can be imported in homebridge as well. The basic features are (almost all) working. Repository Link
Meanwhile, I'll share my findings here if anyone (or me in the future) is starting to implement direct support for homebridge:

  • Yeelight API Doc
  • basically, all methods and params of the ambient light are prefixed with bg_
  • Homekit does not support custom devices, so the light has to be configured as two lights in homekit (one with color temperature and one with colors)
  • As of now, as I got from quickly glancing at the code, the connection handler of this addon can't connect to the same device twice. So in case there also will be two separate instances in this addon, the connection handler has to be rewritten (maybe as external service and not in each device's code). Or a new device type has to be created which registers as two homekit devices. Someone should look at this closer though, as I only looked briefly.

@boro55
Copy link

boro55 commented Sep 5, 2019

@jakaZ0806 Hi! Any chance you made any progress with direct support for the Yeelight Meteorite?

@jpawlowski
Copy link

+1

@jakaZ0806
Copy link

@jakaZ0806 Hi! Any chance you made any progress with direct support for the Yeelight Meteorite?

I did not (and do not intend to in the future) continue investigating this since the light is working perfectly with the updated openHAB yeelight plugin and the openHAB-homebridge-complete plugin for homebridge support.
Sorry for all that were hoping for an update here.

@vieira
Copy link
Owner

vieira commented Aug 24, 2023

Initial support for controlling power, brightness and the color of the backlight (also known as ambilight) of devices that have it is now in 3.0.0-beta.0. 🎉

As I don't have a lamp that supports it I would be relying on you to let me know if everything is working as expected!

Please note that 3.x requires node >= 16.16 and homebridge >= 1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants