Closed Xinayder closed 50 minutes ago
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!
My notifications were off for some reason, I am terribly sorry for forgetting about this PR. I'm happy that it was merged!
Thanks for your contribution 👍
This PR adds support for Shelly Duo RGBW light bulbs. Currently only tested with a GU10.
KEY_EFFECT_TEMPLATE
was 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_TEMPLATE
toKEY_BRIGHTNESS_TEMPLATE
for the same reason previously described. The light bulb only supports 4 effects, including "Off" (no effect).To turn on the light bulb, the
effect
field 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 https://github.com/bieniu/ha-shellies-discovery/issues/588