17 void setup()
override;
sensor::Sensor * power_sensor_
sensor::Sensor * voltage_sensor_
sensor::Sensor * energy_sensor_
This class simplifies creating components that periodically check a state.
void set_power_sensor(sensor::Sensor *power_sensor)
sensor::Sensor * current_sensor_
void set_current_sensor(sensor::Sensor *current_sensor)
void set_voltage_sensor(sensor::Sensor *voltage_sensor)
void dump_config() override
Implementation of SPI Controller mode.
Base-class for all sensors.
void write_state_(PZEM004TReadState state)
enum esphome::pzem004t::PZEM004T::PZEM004TReadState DONE
void set_energy_sensor(sensor::Sensor *energy_sensor)