Add support for Shelly Duo RGBW light bulbs#585
Merged
bieniu merged 3 commits intobieniu:masterfrom Nov 4, 2024
Merged
Conversation
Thanks to @tc-maxx for providing a MQTT discovery payload for this light bulb, check bieniu#424
bieniu
requested changes
Aug 3, 2024
Owner
bieniu
left a comment
There was a problem hiding this comment.
Please fix lint errors. My RGBW2 died so I need a while to get a new one to test this. Thanks!
Contributor
|
Stale pull request message |
|
Hi @Xinayder, it looks like there are still some requested changes for this PR. Would you be able to take a look and help implement the necessary adjustments? Let me know if there's anything I can assist with to move this forward. Thanks for your work on this! |
bieniu
approved these changes
Nov 4, 2024
Contributor
Author
|
My notifications were off for some reason, I am terribly sorry for forgetting about this PR. I'm happy that it was merged! |
Owner
|
Thanks for your contribution 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for Shelly Duo RGBW light bulbs. Currently only tested with a GU10.
KEY_EFFECT_TEMPLATEwas added for Lovelace to properly display what effect is currently selected. I used the Shelly RGBW2 as a base, but had to changeKEY_BRIGHTNESS_VALUE_TEMPLATEtoKEY_BRIGHTNESS_TEMPLATEfor the same reason previously described. The light bulb only supports 4 effects, including "Off" (no effect).To turn on the light bulb, the
effectfield must be present on the MQTT payload, thus if you only want to turn on the light and not use any effects, just set the field to 0.Thanks to @tc-maxx for providing a MQTT discovery payload for this light bulb (#424)
This is the YAML generated by the Python script:
Closes #588