8namespace monochromatic {
20 state->current_values_as_brightness(&bright);
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.
light::LightTraits get_traits() override
void set_output(output::FloatOutput *output)
output::FloatOutput * output_
void write_state(light::LightState *state) override
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.
@ BRIGHTNESS
Dimmable light.
Providing packet encoding functions for exchanging data with a remote host.