ESPHome 2025.5.0
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 {
7namespace 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
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
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7