39 void play(Ts...
x)
override { this->pzemdc_->reset_energy(); }
void dump_config() override
sensor::Sensor * power_sensor_
void set_power_sensor(sensor::Sensor *power_sensor)
ResetEnergyAction(PZEMDC *pzemdc)
void set_voltage_sensor(sensor::Sensor *voltage_sensor)
void set_current_sensor(sensor::Sensor *current_sensor)
void play(Ts... x) override
sensor::Sensor * current_sensor_
This class simplifies creating components that periodically check a state.
void set_energy_sensor(sensor::Sensor *energy_sensor)
sensor::Sensor * energy_sensor_
Implementation of SPI Controller mode.
void on_modbus_data(const std::vector< uint8_t > &data) override
Base-class for all sensors.
sensor::Sensor * voltage_sensor_