27 float red, green, blue, white;
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.
void set_blue(output::FloatOutput *blue)
output::FloatOutput * green_
void set_white(output::FloatOutput *white)
output::FloatOutput * red_
output::FloatOutput * blue_
void set_red(output::FloatOutput *red)
light::LightTraits get_traits() override
output::FloatOutput * white_
void write_state(light::LightState *state) override
void set_color_interlock(bool color_interlock)
void set_green(output::FloatOutput *green)
@ RGB_WHITE
RGB color output and a separate white output.
@ WHITE
White output only (use only if the light also has another color mode such as RGB).
Providing packet encoding functions for exchanging data with a remote host.