7static const char *
const TAG =
"template.number";
33 auto val = this->
f_();
34 if (
val.has_value()) {
49 LOG_NUMBER(
"",
"Template Number",
this);
50 ESP_LOGCONFIG(TAG,
" Optimistic: %s", YESNO(this->
optimistic_));
51 LOG_UPDATE_INTERVAL(
this);
virtual ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash)=0
uint32_t get_preference_hash()
Get a unique hash for storing preferences/settings for this entity.
bool has_value() const
Check if a lambda is set.
void trigger(const Ts &...x)
Inform the parent automation that the event has triggered.
void publish_state(float state)
float get_min_value() const
Trigger< float > * set_trigger_
void control(float value) override
void dump_config() override
TemplateLambda< float > f_
ESPPreferenceObject pref_
Providing packet encoding functions for exchanging data with a remote host.
ESPPreferences * global_preferences