20 void on_energy(uint16_t *gate_energy,
size_t size)
override {
21 for (
size_t active = 0; active < size; active++) {
30 std::vector<sensor::Sensor *>
energy_sensors_ = std::vector<sensor::Sensor *>(LD2420_TOTAL_GATES);
void on_distance(uint16_t distance) override
void publish_state(float state)
Publish a new state to the front-end.
void set_distance_sensor(sensor::Sensor *sensor)
std::vector< sensor::Sensor * > energy_sensors_
void dump_config() override
float get_state() const
Getter-syntax for .state.
Implementation of SPI Controller mode.
Base-class for all sensors.
sensor::Sensor * distance_sensor_
void on_energy(uint16_t *gate_energy, size_t size) override
esphome::sensor::Sensor * sensor