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 {
BedjetMode mode
BedJet operating mode.
This class is used to represent the capabilities of a light.
ESPDEPRECATED("get_supports_brightness() is deprecated, use color modes instead.", "v1.21") bool get_supports_brightness() const
float get_max_mireds() const
ESPDEPRECATED("get_supports_rgb() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb() const
ESPDEPRECATED("get_supports_color_temperature() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_temperature() const
ESPDEPRECATED("get_supports_rgb_white_value() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb_white_value() const
bool supports_color_mode(ColorMode color_mode) const
const std::set< ColorMode > & get_supported_color_modes() const
ESPDEPRECATED("get_supports_color_interlock() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_interlock() const
void set_min_mireds(float min_mireds)
bool supports_color_capability(ColorCapability color_capability) const
void set_supported_color_modes(std::set< ColorMode > supported_color_modes)
float get_min_mireds() const
std::set< ColorMode > supported_color_modes_
void set_max_mireds(float max_mireds)
ColorMode
Color modes are a combination of color capabilities that can be used at the same time.
@ RGB_WHITE
RGB color output and a separate white output.
@ RGB_COLOR_TEMPERATURE
RGB color output and a separate white output with controllable color temperature.
@ COLOR_TEMPERATURE
Controllable color temperature output.
@ WHITE
White output only (use only if the light also has another color mode such as RGB).
@ COLD_WARM_WHITE
Cold and warm white output with individually controllable brightness.
ColorCapability
Color capabilities are the various outputs that a light has and that can be independently controlled ...
@ BRIGHTNESS
Master brightness of the light can be controlled.
@ RGB
Color can be controlled using RGB format (includes a brightness control for the color).
@ COLOR_TEMPERATURE
Color temperature can be controlled.
Providing packet encoding functions for exchanging data with a remote host.