ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
pylontech_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../pylontech.h"
5
6namespace esphome::pylontech {
7
9 public:
10 PylontechSensor(int8_t bat_num);
11 void dump_config() override;
12
13 SUB_SENSOR(voltage)
14 SUB_SENSOR(current)
16 SUB_SENSOR(temperature_low)
17 SUB_SENSOR(temperature_high)
18 SUB_SENSOR(voltage_low)
19 SUB_SENSOR(voltage_high)
20
21 SUB_SENSOR(coulomb)
22 SUB_SENSOR(mos_temperature)
23
24 void on_line_read(LineContents *line) override;
25
26 protected:
27 int8_t bat_num_;
28};
29
30} // namespace esphome::pylontech
virtual void on_line_read(LineContents *line)
SUB_SENSOR(voltage) SUB_SENSOR(current) SUB_SENSOR(temperature) SUB_SENSOR(temperature_low) SUB_SENSOR(temperature_high) SUB_SENSOR(voltage_low) SUB_SENSOR(voltage_high) SUB_SENSOR(coulomb) SUB_SENSOR(mos_temperature) void on_line_read(LineContents *line) override
const char int line
Definition log.h:74
uint16_t temperature
Definition sun_gtil2.cpp:12