28 void setup()
override;
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.
void output_state_(bool state)
light::LightTraits get_traits() override
void set_output(output::BinaryOutput *output)
output::BinaryOutput * output_
float get_loop_priority() const override
void set_pin(GPIOPin *pin)
void write_state(light::LightState *state) override
void dump_config() override
light::LightState * lightstate_
float get_setup_priority() const override
void setup_state(light::LightState *state) override
@ ON_OFF
Only on/off control.
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Providing packet encoding functions for exchanging data with a remote host.