ESPHome  2024.11.1
homeassistant_number.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 #include <string>
5 
8 
9 namespace esphome {
10 namespace 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
Base-class for all numbers.
Definition: number.h:39
void set_entity_id(const std::string &entity_id)
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7