ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::pylontech::PylontechTextSensor Class Referencefinal

#include <pylontech_text_sensor.h>

Inheritance diagram for esphome::pylontech::PylontechTextSensor:
esphome::pylontech::PylontechListener

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_
 

Detailed Description

Definition at line 8 of file pylontech_text_sensor.h.

Constructor & Destructor Documentation

◆ PylontechTextSensor()

esphome::pylontech::PylontechTextSensor::PylontechTextSensor ( uint8_t bat_num)
inlineexplicit

Definition at line 10 of file pylontech_text_sensor.h.

Member Function Documentation

◆ dump_config()

void esphome::pylontech::PylontechTextSensor::dump_config ( )
overridevirtual

Implements esphome::pylontech::PylontechListener.

Definition at line 9 of file pylontech_text_sensor.cpp.

◆ SUB_TEXT_SENSOR()

esphome::pylontech::PylontechTextSensor::SUB_TEXT_SENSOR ( base_state )
override

The documentation for this class was generated from the following files: