6static const char *
const TAG =
"template.number";
32 auto val = this->
f_();
33 if (
val.has_value()) {
48 LOG_NUMBER(
"",
"Template Number",
this);
49 ESP_LOGCONFIG(TAG,
" Optimistic: %s", YESNO(this->
optimistic_));
50 LOG_UPDATE_INTERVAL(
this);
ESPPreferenceObject make_entity_preference(uint32_t version=0)
Create a preference object for storing this entity's state/settings.
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_