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