7 static 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);
Trigger< float > * set_trigger_
ESPPreferenceObject pref_
void dump_config() override
void publish_state(float state)
optional< std::function< optional< float >)> > f_
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
ESPPreferences * global_preferences
virtual ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash)=0
Implementation of SPI Controller mode.
float get_min_value() const
void control(float value) override
uint32_t get_object_id_hash()