33 float red, green, blue, cwhite, wwhite;
Interface to write LightStates to hardware.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
This class is used to represent the capabilities of a light.
Base class for all output components that can output a variable level, like PWM.
void set_level(float state)
Set the level of this float output, this is called from the front-end.
output::FloatOutput * green_
void set_warm_white(output::FloatOutput *warm_white)
void set_constant_brightness(bool constant_brightness)
bool constant_brightness_
light::LightTraits get_traits() override
void set_cold_white(output::FloatOutput *cold_white)
output::FloatOutput * blue_
void set_cold_white_temperature(float cold_white_temperature)
float warm_white_temperature_
void set_blue(output::FloatOutput *blue)
void set_color_interlock(bool color_interlock)
float cold_white_temperature_
void set_green(output::FloatOutput *green)
output::FloatOutput * red_
void write_state(light::LightState *state) override
void set_warm_white_temperature(float warm_white_temperature)
output::FloatOutput * cold_white_
void set_red(output::FloatOutput *red)
output::FloatOutput * warm_white_
@ RGB_COLD_WARM_WHITE
RGB color output, and separate cold and warm white outputs.
@ COLD_WARM_WHITE
Cold and warm white output with individually controllable brightness.
Providing packet encoding functions for exchanging data with a remote host.