ESPHome 2025.5.0
Loading...
Searching...
No Matches
homeassistant_number.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5
8
9namespace esphome {
10namespace homeassistant {
11
13 public:
14 void set_entity_id(const std::string &entity_id) { this->entity_id_ = entity_id; }
15
16 void setup() override;
17 void dump_config() override;
18 float get_setup_priority() const override;
19
20 protected:
21 void state_changed_(const std::string &state);
22 void min_retrieved_(const std::string &min);
23 void max_retrieved_(const std::string &max);
24 void step_retrieved_(const std::string &step);
25
26 void control(float value) override;
27
28 std::string entity_id_;
29};
30} // namespace homeassistant
31} // namespace esphome
void set_entity_id(const std::string &entity_id)
Base-class for all numbers.
Definition number.h:39
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7