7static const char *
const TAG =
"template.number";
10 if (this->
f_.has_value())
30 if (!this->
f_.has_value())
33 auto val = (*this->
f_)();
50 LOG_NUMBER(
"",
"Template Number",
this);
51 ESP_LOGCONFIG(TAG,
" Optimistic: %s", YESNO(this->
optimistic_));
52 LOG_UPDATE_INTERVAL(
this);
virtual ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash)=0
uint32_t get_object_id_hash()
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
void publish_state(float state)
float get_min_value() const
optional< std::function< optional< float >()> > f_
Trigger< float > * set_trigger_
void control(float value) override
void dump_config() override
ESPPreferenceObject pref_
Providing packet encoding functions for exchanging data with a remote host.
ESPPreferences * global_preferences