Home Assistant Integration for Sengled Bulbs. This is a custom component to allow control of Sengled Bulbs in Homeassistant using the unofficial Sengled API. Please note this mimics the Sengled app and therefore Sengled may cut off access at anytime.
Apache License 2.0
104
stars
34
forks
source link
Update supported_features and add supported_color_modes to use new colormodes while maintaining backward compatibility. #87
Currently the supported_features function returns a ColorMode enum where HA expects binary flags. This was added here https://github.com/jfarmer08/ha-sengledapi/commit/fa42052d375294dfa558b51e846df15a57c554cb
I made this pull request after encountering the same issue as @ryanwaldron in issue #81
After reading the docs here: https://developers.home-assistant.io/docs/core/entity/light/
Implementing supported_features as binary flags and adding supported_color_modes to return the corresponding set of ColorMode enums is working for me.