ESPHome
2024.12.2
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