ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::rgbw::RGBWLightOutput Class Reference

#include <rgbw_light_output.h>

Inheritance diagram for esphome::rgbw::RGBWLightOutput:
esphome::light::LightOutput

Public Member Functions

void set_red (output::FloatOutput *red)
 
void set_green (output::FloatOutput *green)
 
void set_blue (output::FloatOutput *blue)
 
void set_white (output::FloatOutput *white)
 
void set_color_interlock (bool color_interlock)
 
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::FloatOutputred_
 
output::FloatOutputgreen_
 
output::FloatOutputblue_
 
output::FloatOutputwhite_
 
bool color_interlock_ {false}
 

Detailed Description

Definition at line 10 of file rgbw_light_output.h.

Member Function Documentation

◆ get_traits()

light::LightTraits esphome::rgbw::RGBWLightOutput::get_traits ( )
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 17 of file rgbw_light_output.h.

◆ set_blue()

void esphome::rgbw::RGBWLightOutput::set_blue ( output::FloatOutput blue)
inline

Definition at line 14 of file rgbw_light_output.h.

◆ set_color_interlock()

void esphome::rgbw::RGBWLightOutput::set_color_interlock ( bool  color_interlock)
inline

Definition at line 16 of file rgbw_light_output.h.

◆ set_green()

void esphome::rgbw::RGBWLightOutput::set_green ( output::FloatOutput green)
inline

Definition at line 13 of file rgbw_light_output.h.

◆ set_red()

void esphome::rgbw::RGBWLightOutput::set_red ( output::FloatOutput red)
inline

Definition at line 12 of file rgbw_light_output.h.

◆ set_white()

void esphome::rgbw::RGBWLightOutput::set_white ( output::FloatOutput white)
inline

Definition at line 15 of file rgbw_light_output.h.

◆ write_state()

void esphome::rgbw::RGBWLightOutput::write_state ( light::LightState state)
inlineoverridevirtual

Implements esphome::light::LightOutput.

Definition at line 26 of file rgbw_light_output.h.

Field Documentation

◆ blue_

output::FloatOutput* esphome::rgbw::RGBWLightOutput::blue_
protected

Definition at line 38 of file rgbw_light_output.h.

◆ color_interlock_

bool esphome::rgbw::RGBWLightOutput::color_interlock_ {false}
protected

Definition at line 40 of file rgbw_light_output.h.

◆ green_

output::FloatOutput* esphome::rgbw::RGBWLightOutput::green_
protected

Definition at line 37 of file rgbw_light_output.h.

◆ red_

output::FloatOutput* esphome::rgbw::RGBWLightOutput::red_
protected

Definition at line 36 of file rgbw_light_output.h.

◆ white_

output::FloatOutput* esphome::rgbw::RGBWLightOutput::white_
protected

Definition at line 39 of file rgbw_light_output.h.


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