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.
bool read_command_(uint8_t *cmd, size_t &len)
void set_max_value(const uint8_t max_value)
void process_command_(const uint8_t *cmd, size_t len)
uint8_t calc_checksum_(const uint8_t *cmd, size_t len)
bool control_dimmer_(bool binary, uint8_t brightness)
void populate_checksum_(uint8_t *cmd, size_t len)
void set_use_rm433_remote(const bool use_rm433_remote)
void set_min_value(const uint8_t min_value)
void dump_config() override
light::LightState * light_state_
void write_state(light::LightState *state) override
void publish_state_(bool is_on, uint8_t brightness)
float get_setup_priority() const override
void setup_state(light::LightState *state) override
bool read_ack_(const uint8_t *cmd, size_t len)
light::LightTraits get_traits() override
bool write_command_(uint8_t *cmd, size_t len, bool needs_ack=true)
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.