36 float red, green, blue, color_temperature, white_brightness;
38 state->current_values_as_rgbct(&red, &green, &blue, &color_temperature, &white_brightness);
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_cold_white_temperature(float cold_white_temperature)
void set_warm_white_temperature(float warm_white_temperature)
float warm_white_temperature_
void write_state(light::LightState *state) override
output::FloatOutput * color_temperature_
output::FloatOutput * white_brightness_
void set_color_temperature(output::FloatOutput *color_temperature)
void set_color_interlock(bool color_interlock)
void set_white_brightness(output::FloatOutput *white_brightness)
float cold_white_temperature_
void set_blue(output::FloatOutput *blue)
output::FloatOutput * green_
output::FloatOutput * blue_
void set_red(output::FloatOutput *red)
void set_green(output::FloatOutput *green)
output::FloatOutput * red_
light::LightTraits get_traits() override
@ RGB_COLOR_TEMPERATURE
RGB color output and a separate white output with controllable color temperature.
@ COLOR_TEMPERATURE
Controllable color temperature output.
Providing packet encoding functions for exchanging data with a remote host.