This class is used to represent the capabilities of a light.
More...
#include <light_traits.h>
This class is used to represent the capabilities of a light.
Definition at line 17 of file light_traits.h.
◆ LightTraits()
| esphome::light::LightTraits::LightTraits |
( |
| ) |
|
|
default |
◆ 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()
| ColorModeMask 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() [1/2]
| void esphome::light::LightTraits::set_supported_color_modes |
( |
ColorModeMask | supported_color_modes | ) |
|
|
inline |
◆ set_supported_color_modes() [2/2]
| void esphome::light::LightTraits::set_supported_color_modes |
( |
std::initializer_list< ColorMode > | 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_
| ColorModeMask esphome::light::LightTraits::supported_color_modes_ {} |
|
protected |
The documentation for this class was generated from the following file: