Additional special effects for Hue lights#7922
Additional special effects for Hue lights#7922manup merged 15 commits intodresden-elektronik:masterfrom
Conversation
Add support for "sunset" dynamic effect.
Add support for "sunset" dynamic effect.
- Fix/extend support for dynamic effects for Hue lights. - Add support for "sunset" dynamic effect for Hue lights.
Remove values for `state/effect` since these are exposed through `capabilities/color/effect`. Also, none of the other Hue lights have defined these values.
|
Hey @ebaauw, thanks for your pull request! Tip Modified bundles can be downloaded here. DDB changesModified
ValidationTip Everything is fine ! 🕡 Updated for commit 07febed |
Better way to turn off special effect.
Improved handling of "effect": "none": - Don't try to turn off colorloop on lights that don't support it; - Explicitly urn off Hue special effect.
Uncomment Hue-specific _Startup Current X_ and _Startup Current Y_, now that GUI bug has been fixed.
|
@ebaauw - Apologies if this is only tangentially related to the PR. Have you come across any indication in the (extensive!) research you've been doing on the |
|
@hanskroner: No, I have not. The only writeable attributes I've discovered in the Hue Effects cluster are related to gradient lights, and I'm not aware of any additional parameters to the Set Effect command. You can probably simulate sunrise (sunset) by setting |
|
@ebaauw - Thanks for the tip. I've started with a similar approach and then complicated it a bit by adding The Q&A section in the marketing page for the wake-up feature mentions the sunrise duration (and brightness) being configurable through the Hue app: "Use the Hue app to customize how you want to wake up — how long your sunrise lasts, when it rises, and the intensity of the light. It’s a personal wake-up light designed by our lighting experts, and then customized by you." It might just be a separate feature not related to this EDIT: After dusting off my Hue bridge and experimenting a little, it seems that
Is there a better place to discuss this (if there's interest)? |
Demystify the code (at least a bit).
|
Perfect thanks 👍 |
|
This pull request is now merged. The new DDB files have been uploaded to the store. DDB FilesModified
🕜 Updated for commit f601a6c |
With the 1.116.3 / 67.116.3 firmware upgrade from May 2024, most Hue lights get additional special effects (see https://www.philips-hue.com/en-us/support/release-notes/lamps). There's also a new (undocumented) "sunset" effect, which basically is the reverse of the "sunrise" effect.
Most of these changes should be reflected by the API automatically when, the attributes from the Hue Effects cluster are re-read after the firmware update.
This PR adds support for the new "sunset" effect. It also brings the GUI up to date with the API ("opal" and "glisten" were missing and "prism" was still called "loop"). It enables the Hue-specific Startup Current X and Startup Current Y attributes, now that the GUI bug handling attributes with the same ID but different manufacturer codes has been fixed.
Finally, it removes the
valuesforstate/effectfrom the DDFs for the Hue lights, as these are exposed throughcapabilities/color/effects, and as they depend on the firmware revision.While changing the C++ code, I also fixed the handling of special effects for (white and/or white ambiance) lights that don't support
colorloop, see #7451.