ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
homeassistant_text.h
Go to the documentation of this file.
1#pragma once
2
6
8
9class HomeassistantText final : public text::Text, public Component {
10 public:
11 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
12
13 void setup() override;
14 void dump_config() override;
15 float get_setup_priority() const override;
16
17 protected:
19 void min_retrieved_(StringRef min);
20 void max_retrieved_(StringRef max);
22
23 void control(const std::string &value) override;
24
25 const char *entity_id_{nullptr};
26};
27
28} // namespace esphome::homeassistant
BedjetMode mode
BedJet operating mode.
StringRef is a reference to a string owned by something else.
Definition string_ref.h:31
void control(const std::string &value) override
Base-class for all text inputs.
Definition text.h:21
std::string state
Definition text.h:23