33 float red, green, blue, cwhite, wwhite;
void current_values_as_rgbww(float *red, float *green, float *blue, float *cold_white, float *warm_white, bool constant_brightness=false)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Interface to write LightStates to hardware.
output::FloatOutput * red_
void set_red(output::FloatOutput *red)
Base class for all output components that can output a variable level, like PWM.
output::FloatOutput * cold_white_
void set_blue(output::FloatOutput *blue)
void set_warm_white(output::FloatOutput *warm_white)
bool constant_brightness_
void set_constant_brightness(bool constant_brightness)
void set_level(float state)
Set the level of this float output, this is called from the front-end.
void set_cold_white(output::FloatOutput *cold_white)
RGB color output, and separate cold and warm white outputs.
light::LightTraits get_traits() override
output::FloatOutput * blue_
Brightness of cold and warm white output can be controlled.
void set_warm_white_temperature(float warm_white_temperature)
void set_green(output::FloatOutput *green)
This class is used to represent the capabilities of a light.
void write_state(light::LightState *state) override
void set_cold_white_temperature(float cold_white_temperature)
output::FloatOutput * warm_white_
float warm_white_temperature_
Implementation of SPI Controller mode.
Color can be controlled using RGB format (includes a brightness control for the color).
float cold_white_temperature_
output::FloatOutput * green_
void set_color_interlock(bool color_interlock)