ESPHome 2026.12.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 {
10 public:
11 void set_entity_id(const char *entity_id) { this->entity_id_ = entity_id; }
12
13 void subscribe();
14 void dump_config();
15
16 protected:
18 optional<int> parse_length_(const char *name, StringRef value);
20
21 void control(const std::string &value) override;
22
23 const char *entity_id_{nullptr};
24};
25
26} // namespace esphome::homeassistant
BedjetMode mode
BedJet operating mode.
StringRef is a reference to a string owned by something else.
Definition string_ref.h:31
optional< int > parse_length_(const char *name, StringRef value)
void control(const std::string &value) override
Base-class for all text inputs.
Definition text.h:20
std::string state
Definition text.h:22
static void const char * entity_id
uint32_t value
Definition hal.cpp:59