77 bool read_ack_(
const uint8_t *cmd,
size_t len);
78 bool write_command_(uint8_t *cmd,
size_t len,
bool needs_ack =
true);
bool control_dimmer_(bool binary, uint8_t brightness)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
const float DATA
For components that import data from directly connected sensors like DHT.
Interface to write LightStates to hardware.
bool read_command_(uint8_t *cmd, size_t &len)
uint8_t calc_checksum_(const uint8_t *cmd, size_t len)
void publish_state_(bool is_on, uint8_t brightness)
void set_min_value(const uint8_t min_value)
void process_command_(const uint8_t *cmd, size_t len)
void set_max_value(const uint8_t max_value)
bool write_command_(uint8_t *cmd, size_t len, bool needs_ack=true)
void dump_config() override
light::LightTraits get_traits() override
This class is used to represent the capabilities of a light.
bool read_ack_(const uint8_t *cmd, size_t len)
float get_setup_priority() const override
void populate_checksum_(uint8_t *cmd, size_t len)
Implementation of SPI Controller mode.
light::LightState * light_state_
void set_use_rm433_remote(const bool use_rm433_remote)
void setup_state(light::LightState *state) override
void write_state(light::LightState *state) override