10namespace total_daily_energy {
24 void setup()
override;
Base-class for all sensors.
float state
This member variable stores the last state that has passed through all filters.
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
time::RealTimeClock * time_
void set_parent(Sensor *parent)
float get_setup_priority() const override
void set_time(time::RealTimeClock *time)
void set_restore(bool restore)
uint16_t last_day_of_year_
void set_method(TotalDailyEnergyMethod method)
void publish_state_and_save(float state)
void process_new_state_(float state)
void dump_config() override
TotalDailyEnergyMethod method_
ESPPreferenceObject pref_
const float DATA
For components that import data from directly connected sensors like DHT.
@ TOTAL_DAILY_ENERGY_METHOD_TRAPEZOID
@ TOTAL_DAILY_ENERGY_METHOD_LEFT
@ TOTAL_DAILY_ENERGY_METHOD_RIGHT
Providing packet encoding functions for exchanging data with a remote host.