23 if (
mode & color_capability)
29 ESPDEPRECATED(
"get_supports_brightness() is deprecated, use color modes instead.",
"v1.21")
31 ESPDEPRECATED(
"get_supports_rgb() is deprecated, use color modes instead.",
"v1.21")
33 ESPDEPRECATED(
"get_supports_rgb_white_value() is deprecated, use color modes instead.",
"v1.21")
34 bool get_supports_rgb_white_value()
const {
38 ESPDEPRECATED(
"get_supports_color_temperature() is deprecated, use color modes instead.",
"v1.21")
39 bool get_supports_color_temperature()
const {
42 ESPDEPRECATED(
"get_supports_color_interlock() is deprecated, use color modes instead.",
"v1.21")
43 bool get_supports_color_interlock()
const {
ColorMode
Color modes are a combination of color capabilities that can be used at the same time.
std::set< ColorMode > supported_color_modes_
ESPDEPRECATED("get_supports_color_interlock() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_interlock() const
float get_min_mireds() const
RGB color output and a separate white output.
Color temperature can be controlled.
ESPDEPRECATED("get_supports_color_temperature() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_temperature() const
void set_max_mireds(float max_mireds)
ESPDEPRECATED("get_supports_brightness() is deprecated, use color modes instead.", "v1.21") bool get_supports_brightness() const
void set_min_mireds(float min_mireds)
Brightness of cold and warm white output can be controlled.
const std::set< ColorMode > & get_supported_color_modes() const
BedjetMode mode
BedJet operating mode.
bool supports_color_capability(ColorCapability color_capability) const
RGB color output and a separate white output with controllable color temperature. ...
Master brightness of the light can be controlled.
White output only (use only if the light also has another color mode such as RGB).
This class is used to represent the capabilities of a light.
bool supports_color_mode(ColorMode color_mode) const
ColorCapability
Color capabilities are the various outputs that a light has and that can be independently controlled ...
ESPDEPRECATED("get_supports_rgb() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb() const
Implementation of SPI Controller mode.
Color can be controlled using RGB format (includes a brightness control for the color).
float get_max_mireds() const
void set_supported_color_modes(std::set< ColorMode > supported_color_modes)
ESPDEPRECATED("get_supports_rgb_white_value() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb_white_value() const