ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
pylontech_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../pylontech.h"
5
6namespace esphome::pylontech {
7
9 public:
10 PylontechTextSensor(int8_t bat_num);
11 void dump_config() override;
12
13 SUB_TEXT_SENSOR(base_state)
14 SUB_TEXT_SENSOR(voltage_state)
15 SUB_TEXT_SENSOR(current_state)
16 SUB_TEXT_SENSOR(temperature_state)
17
18 void on_line_read(LineContents *line) override;
19
20 protected:
21 int8_t bat_num_;
22};
23
24} // namespace esphome::pylontech
virtual void on_line_read(LineContents *line)
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
const char int line
Definition log.h:74