22 float red, green, blue;
23 state->current_values_as_rgb(&red, &green, &blue,
false);
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.
light::LightTraits get_traits() override
output::FloatOutput * blue_
void set_green(output::FloatOutput *green)
output::FloatOutput * green_
void set_blue(output::FloatOutput *blue)
output::FloatOutput * red_
void write_state(light::LightState *state) override
void set_red(output::FloatOutput *red)
Providing packet encoding functions for exchanging data with a remote host.