46 void play(Ts...
x)
override { this->pzemac_->reset_energy_(); }
void dump_config() override
void set_energy_sensor(sensor::Sensor *energy_sensor)
ResetEnergyAction(PZEMAC *pzemac)
This class simplifies creating components that periodically check a state.
sensor::Sensor * frequency_sensor_
sensor::Sensor * power_sensor_
sensor::Sensor * energy_sensor_
void set_current_sensor(sensor::Sensor *current_sensor)
void on_modbus_data(const std::vector< uint8_t > &data) override
sensor::Sensor * power_factor_sensor_
void play(Ts... x) override
void set_frequency_sensor(sensor::Sensor *frequency_sensor)
void set_voltage_sensor(sensor::Sensor *voltage_sensor)
Implementation of SPI Controller mode.
sensor::Sensor * current_sensor_
void set_power_factor_sensor(sensor::Sensor *power_factor_sensor)
sensor::Sensor * voltage_sensor_
void set_power_sensor(sensor::Sensor *power_sensor)
Base-class for all sensors.