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

Release 3.0.0 - Backlight/Ambilight Support #116

Merged
merged 6 commits into from
Nov 10, 2023
Merged

Release 3.0.0 - Backlight/Ambilight Support #116

merged 6 commits into from
Nov 10, 2023

Conversation

vieira
Copy link
Owner

@vieira vieira commented Aug 24, 2023

This PR introduces initial support for controlling the power, brightness and color of the backlight (also known as ambilight) of YeeLight devices that have support for it. 🎉

It also changes the way moonlight mode is detected to not depend on model names, instead looking for the presence of the property active_mode, which should only exist in devices supporting moonlight, according to the spec. This also allows the feature to be blacklisted in config.json in case you don't want it (see README on how to blacklist features).

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

Related issues: #102, #81, #78, #65, #51, #40, #108

Not seeing the new features?
Your device might be cached. Edit the config.json and add the following block (replace 5c4bc1 with the id of your device) and restart homebridge.

"platforms": [
  {
    "platform": "yeelight",
    "name": "Yeelight",
    "defaultValue": {
      "5c4bc1": {
        "blacklist": true
      }
    }
  }
]

Your device will disappear from the Home app.

After that you can revert back your config.json (removing "blacklist": true) and restart homebridge.

Older versions of node are no longer maintained and homebridge 1.3
introduced adaptive lightning and child bridges which are both relevant
to this plugin.
- Have devices with different limits than those specified in the
  YeeLight specification in a `devices.json` file to allow for a cleaner
  way of adding them in the future.
- Improve moonlight feature detection by detecting the presence of
  `active_mode` which should be present only in devices with moonlight
  support.
@vieira vieira merged commit a44be2c into master Nov 10, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant