10 namespace integration {
28 void setup()
override;
40 switch (this->
time_) {
44 return 1.0f / 1000.0f;
46 return 1.0f / 60000.0f;
48 return 1.0f / 3600000.0f;
50 return 1.0f / 86400000.0f;
59 float result_f = result;
79 void play(Ts...
x)
override { this->parent_->reset(); }
const float DATA
For components that import data from directly connected sensors like DHT.
void play(Ts... x) override
float get_setup_priority() const override
ESPPreferenceObject pref_
void publish_and_save_(double result)
void set_restore(bool restore)
void dump_config() override
IntegrationSensorTime time_
void process_sensor_value_(float value)
void publish_state(float state)
Publish a new state to the front-end.
IntegrationMethod method_
IntegrationSensor * parent_
void set_time(IntegrationSensorTime time)
void set_method(IntegrationMethod method)
Implementation of SPI Controller mode.
void set_sensor(Sensor *sensor)
Base-class for all sensors.
esphome::sensor::Sensor * sensor
ResetAction(IntegrationSensor *parent)