ESPHome  2024.5.0
pylontech_text_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../pylontech.h"
5 
6 namespace esphome {
7 namespace pylontech {
8 
10  public:
11  PylontechTextSensor(int8_t bat_num);
12  void dump_config() override;
13 
14  SUB_TEXT_SENSOR(base_state)
15  SUB_TEXT_SENSOR(voltage_state)
16  SUB_TEXT_SENSOR(current_state)
17  SUB_TEXT_SENSOR(temperature_state)
18 
19  void on_line_read(LineContents *line) override;
20 
21  protected:
22  int8_t bat_num_;
23 };
24 
25 } // namespace pylontech
26 } // namespace esphome
SUB_TEXT_SENSOR(base_state) SUB_TEXT_SENSOR(voltage_state) SUB_TEXT_SENSOR(current_state) SUB_TEXT_SENSOR(temperature_state) void on_line_read(LineContents *line) override
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
virtual void on_line_read(LineContents *line)