8namespace color_temperature {
24 float color_temperature, brightness;
25 state->current_values_as_ct(&color_temperature, &brightness);
float warm_white_temperature_
void set_cold_white_temperature(float cold_white_temperature)
void set_color_temperature(output::FloatOutput *color_temperature)
light::LightTraits get_traits() override
output::FloatOutput * brightness_
void write_state(light::LightState *state) override
void set_warm_white_temperature(float warm_white_temperature)
void set_brightness(output::FloatOutput *brightness)
float cold_white_temperature_
output::FloatOutput * color_temperature_
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.
@ COLOR_TEMPERATURE
Controllable color temperature output.
Providing packet encoding functions for exchanging data with a remote host.