3 #ifdef USE_DATETIME_DATE 10 static const char *
const TAG =
"template.date";
13 if (this->
f_.has_value())
40 if (!this->
f_.has_value())
43 auto val = (*this->
f_)();
103 LOG_DATETIME_DATE(
"",
"Template Date",
this);
104 ESP_LOGCONFIG(TAG,
" Optimistic: %s", YESNO(this->
optimistic_));
105 LOG_UPDATE_INTERVAL(
this);
111 #endif // USE_DATETIME_DATE
Trigger< ESPTime > * set_trigger_
A more user-friendly version of struct tm from time.h.
ESPPreferenceObject pref_
void control(const datetime::DateCall &call) override
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
optional< uint8_t > get_day() const
ESPPreferences * global_preferences
optional< uint16_t > get_year() const
virtual ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash)=0
Implementation of SPI Controller mode.
void dump_config() override
uint8_t month
month; january=1 [1-12]
optional< uint8_t > get_month() const
void apply(DateEntity *date)
uint32_t get_object_id_hash()
uint8_t day_of_month
day of the month [1-31]
optional< std::function< optional< ESPTime >)> > f_