ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
pylontech
text_sensor
pylontech_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "../pylontech.h"
4
#include "
esphome/components/text_sensor/text_sensor.h
"
5
6
namespace
esphome
{
7
namespace
pylontech {
8
9
class
PylontechTextSensor
:
public
PylontechListener
,
public
Component
{
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
esphome::Component
Definition:
component.h:68
esphome::pylontech::PylontechListener::LineContents
Definition:
pylontech.h:15
esphome::pylontech::PylontechTextSensor::SUB_TEXT_SENSOR
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
esphome::pylontech::PylontechTextSensor::PylontechTextSensor
PylontechTextSensor(int8_t bat_num)
Definition:
pylontech_text_sensor.cpp:10
esphome::pylontech::PylontechListener
Definition:
pylontech.h:13
esphome::pylontech::PylontechTextSensor::bat_num_
int8_t bat_num_
Definition:
pylontech_text_sensor.h:22
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::pylontech::PylontechTextSensor::dump_config
void dump_config() override
Definition:
pylontech_text_sensor.cpp:12
esphome::pylontech::PylontechListener::on_line_read
virtual void on_line_read(LineContents *line)
esphome::pylontech::PylontechTextSensor
Definition:
pylontech_text_sensor.h:9
text_sensor.h
Generated by
1.8.13