17 traits.set_min_mireds(153);
18 traits.set_max_mireds(500);
42 float new_pina, new_pinb;
43 state->current_values_as_cwww(&new_pina, &new_pinb,
false);
48 if (new_pina != 0.0f && new_pinb != 0.0f) {
This class simplifies creating components that periodically check a state.
output::FloatOutput * pina_pin_
void set_pinb_pin(output::FloatOutput *pinb_pin)
void write_state(light::LightState *state) override
light::LightTraits get_traits() override
float get_setup_priority() const override
void set_pina_pin(output::FloatOutput *pina_pin)
output::FloatOutput * pinb_pin_
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.
@ COLD_WARM_WHITE
Cold and warm white output with individually controllable brightness.
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.