This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Interface to write LightStates to hardware.
bool constant_brightness_
Base class for all output components that can output a variable level, like PWM.
float warm_white_temperature_
float cold_white_temperature_
output::FloatOutput * cold_white_
void set_warm_white(output::FloatOutput *warm_white)
void write_state(light::LightState *state) override
void set_level(float state)
Set the level of this float output, this is called from the front-end.
output::FloatOutput * warm_white_
Brightness of cold and warm white output can be controlled.
void set_cold_white(output::FloatOutput *cold_white)
void set_cold_white_temperature(float cold_white_temperature)
void set_warm_white_temperature(float warm_white_temperature)
void current_values_as_cwww(float *cold_white, float *warm_white, bool constant_brightness=false)
This class is used to represent the capabilities of a light.
Implementation of SPI Controller mode.
light::LightTraits get_traits() override
void set_constant_brightness(bool constant_brightness)