This class is used to represent the capabilities of a light.
More...
#include <light_traits.h>
|
| LightTraits ()=default |
|
const std::set< ColorMode > & | get_supported_color_modes () const |
|
void | set_supported_color_modes (std::set< ColorMode > supported_color_modes) |
|
bool | supports_color_mode (ColorMode color_mode) const |
|
bool | supports_color_capability (ColorCapability color_capability) const |
|
| ESPDEPRECATED ("get_supports_brightness() is deprecated, use color modes instead.", "v1.21") bool get_supports_brightness() const |
|
| ESPDEPRECATED ("get_supports_rgb() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb() const |
|
| ESPDEPRECATED ("get_supports_rgb_white_value() is deprecated, use color modes instead.", "v1.21") bool get_supports_rgb_white_value() const |
|
| ESPDEPRECATED ("get_supports_color_temperature() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_temperature() const |
|
| ESPDEPRECATED ("get_supports_color_interlock() is deprecated, use color modes instead.", "v1.21") bool get_supports_color_interlock() const |
|
float | get_min_mireds () const |
|
void | set_min_mireds (float min_mireds) |
|
float | get_max_mireds () const |
|
void | set_max_mireds (float max_mireds) |
|
This class is used to represent the capabilities of a light.
Definition at line 11 of file light_traits.h.
◆ LightTraits()
esphome::light::LightTraits::LightTraits |
( |
| ) |
|
|
default |
◆ ESPDEPRECATED() [1/5]
esphome::light::LightTraits::ESPDEPRECATED |
( |
"get_supports_brightness() is |
deprecated, |
|
|
use color modes instead." |
, |
|
|
"v1.21" |
|
|
) |
| const |
|
inline |
◆ ESPDEPRECATED() [2/5]
esphome::light::LightTraits::ESPDEPRECATED |
( |
"get_supports_rgb() is |
deprecated, |
|
|
use color modes instead." |
, |
|
|
"v1.21" |
|
|
) |
| const |
|
inline |
◆ ESPDEPRECATED() [3/5]
esphome::light::LightTraits::ESPDEPRECATED |
( |
"get_supports_rgb_white_value() is |
deprecated, |
|
|
use color modes instead." |
, |
|
|
"v1.21" |
|
|
) |
| const |
|
inline |
◆ ESPDEPRECATED() [4/5]
esphome::light::LightTraits::ESPDEPRECATED |
( |
"get_supports_color_temperature() is |
deprecated, |
|
|
use color modes instead." |
, |
|
|
"v1.21" |
|
|
) |
| const |
|
inline |
◆ ESPDEPRECATED() [5/5]
esphome::light::LightTraits::ESPDEPRECATED |
( |
"get_supports_color_interlock() is |
deprecated, |
|
|
use color modes instead." |
, |
|
|
"v1.21" |
|
|
) |
| const |
|
inline |
◆ get_max_mireds()
float esphome::light::LightTraits::get_max_mireds |
( |
| ) |
const |
|
inline |
◆ get_min_mireds()
float esphome::light::LightTraits::get_min_mireds |
( |
| ) |
const |
|
inline |
◆ get_supported_color_modes()
const std::set<ColorMode>& esphome::light::LightTraits::get_supported_color_modes |
( |
| ) |
const |
|
inline |
◆ set_max_mireds()
void esphome::light::LightTraits::set_max_mireds |
( |
float |
max_mireds | ) |
|
|
inline |
◆ set_min_mireds()
void esphome::light::LightTraits::set_min_mireds |
( |
float |
min_mireds | ) |
|
|
inline |
◆ set_supported_color_modes()
void esphome::light::LightTraits::set_supported_color_modes |
( |
std::set< ColorMode > |
supported_color_modes | ) |
|
|
inline |
◆ supports_color_capability()
bool esphome::light::LightTraits::supports_color_capability |
( |
ColorCapability |
color_capability | ) |
const |
|
inline |
◆ supports_color_mode()
bool esphome::light::LightTraits::supports_color_mode |
( |
ColorMode |
color_mode | ) |
const |
|
inline |
◆ max_mireds_
float esphome::light::LightTraits::max_mireds_ {0} |
|
protected |
◆ min_mireds_
float esphome::light::LightTraits::min_mireds_ {0} |
|
protected |
◆ supported_color_modes_
std::set<ColorMode> esphome::light::LightTraits::supported_color_modes_ {} |
|
protected |
The documentation for this class was generated from the following file: