ESPHome  2021.11.3
Public Member Functions | Protected Attributes
esphome::color_temperature::CTLightOutput Class Reference

#include <ct_light_output.h>

Inheritance diagram for esphome::color_temperature::CTLightOutput:
esphome::light::LightOutput

Public Member Functions

void set_color_temperature (output::FloatOutput *color_temperature)
 
void set_brightness (output::FloatOutput *brightness)
 
void set_cold_white_temperature (float cold_white_temperature)
 
void set_warm_white_temperature (float warm_white_temperature)
 
light::LightTraits get_traits () override
 
void write_state (light::LightState *state) override
 
- Public Member Functions inherited from esphome::light::LightOutput
virtual std::unique_ptr< LightTransformercreate_default_transition ()
 Return the default transformer used for transitions. More...
 
virtual void setup_state (LightState *state)
 
virtual void update_state (LightState *state)
 Called on every update of the current values of the associated LightState, can optionally be used to do processing of this change. More...
 

Protected Attributes

output::FloatOutputcolor_temperature_
 
output::FloatOutputbrightness_
 
float cold_white_temperature_
 
float warm_white_temperature_
 

Detailed Description

Definition at line 10 of file ct_light_output.h.

Member Function Documentation

◆ get_traits()

light::LightTraits esphome::color_temperature::CTLightOutput::get_traits ( )
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 16 of file ct_light_output.h.

◆ set_brightness()

void esphome::color_temperature::CTLightOutput::set_brightness ( output::FloatOutput brightness)
inline

Definition at line 13 of file ct_light_output.h.

◆ set_cold_white_temperature()

void esphome::color_temperature::CTLightOutput::set_cold_white_temperature ( float  cold_white_temperature)
inline

Definition at line 14 of file ct_light_output.h.

◆ set_color_temperature()

void esphome::color_temperature::CTLightOutput::set_color_temperature ( output::FloatOutput color_temperature)
inline

Definition at line 12 of file ct_light_output.h.

◆ set_warm_white_temperature()

void esphome::color_temperature::CTLightOutput::set_warm_white_temperature ( float  warm_white_temperature)
inline

Definition at line 15 of file ct_light_output.h.

◆ write_state()

void esphome::color_temperature::CTLightOutput::write_state ( light::LightState state)
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 23 of file ct_light_output.h.

Field Documentation

◆ brightness_

output::FloatOutput* esphome::color_temperature::CTLightOutput::brightness_
protected

Definition at line 32 of file ct_light_output.h.

◆ cold_white_temperature_

float esphome::color_temperature::CTLightOutput::cold_white_temperature_
protected

Definition at line 33 of file ct_light_output.h.

◆ color_temperature_

output::FloatOutput* esphome::color_temperature::CTLightOutput::color_temperature_
protected

Definition at line 31 of file ct_light_output.h.

◆ warm_white_temperature_

float esphome::color_temperature::CTLightOutput::warm_white_temperature_
protected

Definition at line 34 of file ct_light_output.h.


The documentation for this class was generated from the following file: