Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esphome/components/pylontech/pylontech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void PylontechListener::dump_config() {}
PylontechComponent::PylontechComponent() {}

void PylontechComponent::dump_config() {
this->check_uart_settings(115200, 1, esphome::uart::UART_CONFIG_PARITY_NONE, 8);
this->check_uart_settings(9600, 1, esphome::uart::UART_CONFIG_PARITY_NONE, 8);
ESP_LOGCONFIG(TAG, "pylontech:");
if (this->is_failed()) {
ESP_LOGE(TAG, "Connection with pylontech failed!");
Expand Down
4 changes: 3 additions & 1 deletion esphome/components/pylontech/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
CONF_CELLS = "cells"
CONF_CELL = "cell"

NUM_CELLS = 15
NUM_CELLS = 16

# Sensors from the "pwr" command
TYPES: dict[str, cv.Schema] = {
Expand Down Expand Up @@ -100,11 +100,13 @@
unit_of_measurement=UNIT_VOLT,
accuracy_decimals=3,
device_class=DEVICE_CLASS_VOLTAGE,
state_class=STATE_CLASS_MEASUREMENT,
),
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
unit_of_measurement=UNIT_CELSIUS,
accuracy_decimals=1,
device_class=DEVICE_CLASS_TEMPERATURE,
state_class=STATE_CLASS_MEASUREMENT,
),
}
)
Expand Down