|
ESPHome 2026.11.0-dev
|
#include <pylontech_text_sensor.h>
Public Member Functions | |
| PylontechTextSensor (uint8_t bat_num) | |
| void | dump_config () override |
| 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 | |
Public Member Functions inherited from esphome::pylontech::PylontechListener | |
| PylontechListener (uint8_t bat_num) | |
| uint8_t | get_battery () const |
| virtual void | on_line_read (LineContents *line)=0 |
| Called only with records for this listener's battery. | |
| virtual void | on_cells_read (const CellArray &cells, cell_mask_t read) |
| Called with the cells of this listener's battery after a "bat N" reply; bit c of read is set when cell c was in the reply. | |
Additional Inherited Members | |
Public Types inherited from esphome::pylontech::PylontechListener | |
| using | CellArray = std::array<CellContents, MAX_CELLS> |
Protected Attributes inherited from esphome::pylontech::PylontechListener | |
| uint8_t | bat_num_ |
Definition at line 8 of file pylontech_text_sensor.h.
|
inlineexplicit |
Definition at line 10 of file pylontech_text_sensor.h.
|
overridevirtual |
Implements esphome::pylontech::PylontechListener.
Definition at line 9 of file pylontech_text_sensor.cpp.
|
override |