Move vars bms_model & bms_protocol

This commit is contained in:
Sleeper85 committed 2026-11-08 23:08:32 +01:00
1 parent 3394976529
commit fa9f101d1b
50 files changed
+347 -378

No files matched your search

+9 -3
View File
@@ -1,4 +1,4 @@
# Updated : 2026.08.11
# Updated : 2026.08.14
# Version : 1.8.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Unknown"
bms_protocol: "Unknown"
globals:
- id: bms${bms_id}_combined_once
type: bool
@@ -30,8 +34,10 @@ esphome:
on_boot:
- priority: 600
then:
# Shunt counter (total)
- lambda: id(yambms${yambms_id}_var_bms_counter) += 1;
- lambda: |-
id(yambms${yambms_id}_var_bms_counter) += 1;
id(yambms${yambms_id}_var_bms_models) += "${bms_model},";
id(yambms${yambms_id}_var_bms_protocols) += "${bms_protocol},";
binary_sensor:
# Indicates whether the BMS can be combined
@@ -1,5 +1,5 @@
# Updated : 2025.06.17
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/GHswitt/esphome-basen
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "BASEN"
bms_protocol: "RS485"
# +--------------------------------------+
# | Component settings |
# +--------------------------------------+
@@ -1,5 +1,5 @@
# Updated : 2025.10.6
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/GHswitt/esphome-basen
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,8 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "BASEN"
bms_protocol: "RS485"
basen_controller_flow_control_pin: null
# +--------------------------------------+
@@ -1,5 +1,5 @@
# Updated : 2025.06.01
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/GHswitt/esphome-basen
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,4 +19,8 @@
packages:
bms_sensors: !include bms_sensors_BASEN_RS485_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "BASEN"
bms_protocol: "RS485"
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,12 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
packages:
bms_sensors: !include bms_sensors_FAKE.yaml
bms_numbers: !include bms_sensors_FAKE_extended.yaml
bms_demo_cs: !include bms_demo_charge_simulation.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
@@ -1,5 +1,5 @@
# Updated : 2025.06.11
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/GHswitt/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "DEYE"
bms_protocol: "CAN"
packages:
bms_module: !include bms_sensors_DEYE_CAN_module_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "DEYE"
bms_protocol: "CAN"
@@ -1,5 +1,5 @@
# Updated : 2025.06.11
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/GHswitt/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "DEYE"
bms_protocol: "CAN"
packages:
bms_module: !include bms_sensors_DEYE_CAN_module_minimal.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "DEYE"
bms_protocol: "CAN"
@@ -1,5 +1,5 @@
# Updated : 2025.11.23
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,10 +19,10 @@
# RAR PR (https://github.com/RAR)
substitutions:
bms_model: "EG4 LLV2"
bms_protocol: "RS485"
packages:
bms_combine: !include bms_combine.yaml
bms_sensors: !include bms_sensors_EG4_LLV2_RS485_bms_full.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "EG4 LLV2"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2025.12.08
# Version : 2.0.0
# Updated : 2026.08.14
# Version : 2.0.1
# GitHub : https://github.com/RAR/esphome-eg4-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,9 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
# BMS
bms_model: "EG4 LLV2"
bms_protocol: "RS485"
# Modbus
eg4_modbus_id: modbus_eg4
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.0.1
# Updated : 2026.08.14
# Version : 1.0.2
# GitHub : https://github.com/RAR/esphome-ecoworthy-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -31,10 +31,10 @@
# Optional substitutions (have defaults):
# ecoworthy_modbus_id: The ecoworthy_modbus component ID (default: modbus_ecoworthy)
substitutions:
bms_model: "Ecoworthy"
bms_protocol: "RS485"
packages:
bms_combine: !include bms_combine.yaml
bms_sensors: !include bms_sensors_Ecoworthy_RS485_full.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Ecoworthy"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2026.02.08
# Version : 1.0.0
# Updated : 2026.08.14
# Version : 1.0.1
# GitHub : https://github.com/RAR/esphome-ecoworthy-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -38,10 +38,10 @@
# bms_cell_uvp: Cell under-voltage protection in V (default: 2.500)
# bms_balance_trigger_voltage: Balance trigger voltage in V (default: 0.030)
substitutions:
bms_model: "Ecoworthy Secondary"
bms_protocol: "RS485"
packages:
bms_combine: !include bms_combine.yaml
bms_sensors: !include bms_sensors_Ecoworthy_RS485_secondary.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Ecoworthy"
bms_protocol: "RS485"
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2024.12.23
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
packages:
bms_sensors: !include bms_sensors_FAKE.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.11
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,11 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
packages:
bms_sensors: !include bms_sensors_FAKE.yaml
bms_numbers: !include bms_sensors_FAKE_extended.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Fake BMS"
bms_protocol: "DEMO"
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2025.01.28
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JBD"
bms_protocol: "BLE"
packages:
bms_sensors: !include bms_sensors_JBD_BLE_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JBD"
bms_protocol: "BLE"
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2024.12.23
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JBD"
bms_protocol: "UART"
packages:
bms_sensors: !include bms_sensors_JBD_UART_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JBD"
bms_protocol: "UART"
+19 -19
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.22
# Version : 1.3.7
# Updated : 2026.08.14
# Version : 1.3.8
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,13 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "BLE"
packages:
bms_base: !include bms_base.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "BLE"
bms_temperature_sensor: !include bms_temperature_sensor_2.yaml
bms_errors_bitmask: !include bms_errors_bitmask_JK_BLE.yaml
bms_battery_soh: !include bms_base_battery_soh.yaml
@@ -45,18 +45,18 @@ external_components:
esp32_ble_tracker:
scan_parameters:
active: false
on_ble_advertise:
then:
- lambda: |-
if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
ESP_LOGI("ble_adv", "New JK-BMS found");
ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
ESP_LOGD("ble_adv", " Advertised service UUIDs:");
for (auto uuid : x.get_service_uuids()) {
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
}
}
# on_ble_advertise:
# then:
# - lambda: |-
# if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
# ESP_LOGI("ble_adv", "New JK-BMS found");
# ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
# ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
# ESP_LOGD("ble_adv", " Advertised service UUIDs:");
# for (auto uuid : x.get_service_uuids()) {
# ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
# }
# }
ble_client:
- id: ble_client${bms_id}
+19 -19
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.22
# Version : 1.3.7
# Updated : 2026.08.14
# Version : 1.3.8
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,13 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "BLE"
packages:
bms_base: !include bms_base.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "BLE"
bms_temperature_sensor: !include bms_temperature_sensor_2.yaml
bms_errors_bitmask: !include bms_errors_bitmask_JK_BLE.yaml
bms_battery_soh: !include bms_base_battery_soh.yaml
@@ -45,18 +45,18 @@ external_components:
esp32_ble_tracker:
scan_parameters:
active: false
on_ble_advertise:
then:
- lambda: |-
if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
ESP_LOGI("ble_adv", "New JK-BMS found");
ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
ESP_LOGD("ble_adv", " Advertised service UUIDs:");
for (auto uuid : x.get_service_uuids()) {
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
}
}
# on_ble_advertise:
# then:
# - lambda: |-
# if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
# ESP_LOGI("ble_adv", "New JK-BMS found");
# ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
# ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
# ESP_LOGD("ble_adv", " Advertised service UUIDs:");
# for (auto uuid : x.get_service_uuids()) {
# ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
# }
# }
ble_client:
- id: ble_client${bms_id}
@@ -1,5 +1,5 @@
# Updated : 2024.04.01
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "BLE"
packages:
bms_sensors: !include bms_sensors_JK_BLE_standard.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "BLE"
@@ -1,5 +1,5 @@
# Updated : 2026.02.05
# Version : 1.1.9
# Updated : 2026.08.14
# Version : 1.2.0
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,13 +17,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "DISPLAY"
packages:
bms_base: !include bms_base.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "DISPLAY"
bms_temperature_sensor: !include bms_temperature_sensor_2.yaml
bms_battery_soh: !include bms_base_battery_soh.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.04.21
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,4 +19,8 @@
packages:
bms_sensors: !include bms_sensors_JK_RS485_Modbus_JK-B_standard.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2025.04.01
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,4 +19,8 @@
packages:
bms_sensors: !include bms_sensors_JK_RS485_Modbus_bms_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2026.02.05
# Version : 1.3.4
# Updated : 2026.08.14
# Version : 1.3.5
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,7 +19,11 @@
packages:
bms_base: !include bms_base.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "RS485"
bms_temperature_sensor: !include bms_temperature_sensor_5.yaml
bms_errors_bitmask: !include bms_errors_bitmask_JK_RS485_Modbus.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.04.01
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,4 +19,8 @@
packages:
bms_sensors: !include bms_sensors_JK_RS485_Modbus_bms_standard.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2025.12.22
# Version : 1.3.2
# Updated : 2026.08.14
# Version : 1.3.3
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,8 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "RS485"
sniffer_id: "jk_sniffer_1"
sniffer_name: "JK sniffer"
@@ -1,5 +1,5 @@
# Updated : 2025.12.22
# Version : 1.3.2
# Updated : 2026.08.14
# Version : 1.3.3
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,8 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "RS485"
sniffer_id: "jk_sniffer_1"
sniffer_name: "JK sniffer"
@@ -1,5 +1,5 @@
# Updated : 2025.04.01
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK"
bms_protocol: "UART 4G-GPS"
packages:
bms_sensors: !include bms_sensors_JK_UART_4G-GPS_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "JK"
bms_protocol: "UART"
@@ -1,5 +1,5 @@
# Updated : 2025.08.13
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,5 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
packages:
bms_combine: !include bms_combine.yaml
bms_sensors: !include bms_sensors_PACE_RS485_bms_full.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "PACE"
bms_protocol: "RS485"
+37 -40
View File
@@ -1,40 +1,37 @@
# Updated : 2026.08.04
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
# BMS
bms_model: "PACE"
bms_protocol: "RS485"
# Modbus
pace_modbus_id: modbus_pace
pace_modbus_send_wait_time: 250ms # Timeout: max time to wait for the FIRST byte of a response
pace_modbus_turnaround_time: '0ms' # Pause after a completed response before the next command.
# Modbus Controller
pace_modbus_update_interval: '5s' # Frequency with which BMS modbus servers are queried
uart:
- id: !extend ${pace_modbus_uart_id}
baud_rate: ${pace_modbus_baud_rate}
modbus:
- uart_id: ${pace_modbus_uart_id}
id: ${pace_modbus_id}
role: client
send_wait_time: ${pace_modbus_send_wait_time}
turnaround_time: ${pace_modbus_turnaround_time}
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
# Modbus
pace_modbus_id: modbus_pace
pace_modbus_send_wait_time: 250ms # Timeout: max time to wait for the FIRST byte of a response
pace_modbus_turnaround_time: '0ms' # Pause after a completed response before the next command.
# Modbus Controller
pace_modbus_update_interval: '5s' # Frequency with which BMS modbus servers are queried
uart:
- id: !extend ${pace_modbus_uart_id}
baud_rate: ${pace_modbus_baud_rate}
modbus:
- uart_id: ${pace_modbus_uart_id}
id: ${pace_modbus_id}
role: client
send_wait_time: ${pace_modbus_send_wait_time}
turnaround_time: ${pace_modbus_turnaround_time}
@@ -1,5 +1,5 @@
# Updated : 2025.06.16
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-seplos-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -19,4 +19,8 @@
packages:
bms_sensors: !include bms_sensors_SEPLOS_V1_V2_RS485_bms_full.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Seplos V1 V2"
bms_protocol: "RS485"
@@ -1,5 +1,5 @@
# Updated : 2025.11.15
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-seplos-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,8 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Seplos V1 V2"
bms_protocol: "RS485"
# Modbus
seplos_modbus_id: modbus_seplos_v2
seplos_modbus_rx_timeout: '150ms'
@@ -1,5 +1,5 @@
# Updated : 2026.02.13
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-seplos-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -18,5 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
packages:
bms_combine: !include bms_combine.yaml
bms_sensors: !include bms_sensors_SEPLOS_V3_RS485_bms_full.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "Seplos V3"
bms_protocol: "RS485"
@@ -1,45 +1,42 @@
# Updated : 2025.11.14
# Version : 1.1.1
# GitHub : https://github.com/DpunktS/seplos_v3_sniffer
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
# BMS
bms_model: "Seplos V3"
bms_protocol: "RS485"
# Seplos Parser
seplos_parser_id: seplos_parser_1
# +--------------------------------------+
# | Component settings |
# +--------------------------------------+
external_components:
- source:
type: git
url: https://github.com/DpunktS/seplos_v3_sniffer
uart:
- id: !extend ${seplos_uart_id}
baud_rate: ${seplos_baud_rate}
rx_buffer_size: 2048
seplos_parser:
id: ${seplos_parser_id}
uart_id: ${seplos_uart_id}
bms_count: ${seplos_bms_count}
update_interval: ${seplos_update_interval}
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/DpunktS/seplos_v3_sniffer
# YamBMS ( Yet another multi-BMS Merging Solution )
# This YAML is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
# Seplos Parser
seplos_parser_id: seplos_parser_1
# +--------------------------------------+
# | Component settings |
# +--------------------------------------+
external_components:
- source:
type: git
url: https://github.com/DpunktS/seplos_v3_sniffer
uart:
- id: !extend ${seplos_uart_id}
baud_rate: ${seplos_baud_rate}
rx_buffer_size: 2048
seplos_parser:
id: ${seplos_parser_id}
uart_id: ${seplos_uart_id}
bms_count: ${seplos_bms_count}
update_interval: ${seplos_update_interval}
+7 -7
View File
@@ -1,5 +1,5 @@
# Updated : 2026.07.31
# Version : 1.3.1
# Updated : 2026.08.14
# Version : 1.3.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,14 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "YamBMS"
bms_protocol: "Modbus"
packages:
sub_device: !include bms_base_sub_device.yaml
bms_balancer: !include bms_base_balancer.yaml
bms_combine: !include bms_combine.yaml
bms_combine: !include
file: bms_combine.yaml
vars:
bms_model: "YamBMS"
bms_protocol: "Modbus"
# +--------------------------------------+
# | Component settings |
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/GHswitt/esphome-basen
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "BASEN RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_BASEN_RS485_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.3
# Updated : 2026.08.14
# Version : 1.1.4
# GitHub : https://github.com/GHswitt/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "DEYE CAN"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_DEYE_CAN_module_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.3
# Updated : 2026.08.14
# Version : 1.1.4
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "EG4 LLV2 RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_EG4_LLV2_RS485_bms_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.0.0
# Updated : 2026.08.14
# Version : 1.0.1
# GitHub : https://github.com/RAR/esphome-ecoworthy-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Ecoworthy RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_Ecoworthy_RS485_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.0.0
# Updated : 2026.08.14
# Version : 1.0.1
# GitHub : https://github.com/RAR/esphome-ecoworthy-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "Ecoworthy Secondary"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_Ecoworthy_RS485_secondary.yaml
bms_combine: !include bms_modbus_server.yaml
+2 -6
View File
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "YamBMS Demo"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_FAKE.yaml
bms_combine: !include bms_modbus_server.yaml
+2 -6
View File
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JBD BLE"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_JBD_BLE_full.yaml
bms_combine: !include bms_modbus_server.yaml
+2 -6
View File
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JBD UART"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_JBD_UART_full.yaml
bms_combine: !include bms_modbus_server.yaml
+2 -6
View File
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.3
# Updated : 2026.08.14
# Version : 1.1.4
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK BLE"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_JK_BLE_standard.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_JK_RS485_Modbus_bms_standard.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.3
# Updated : 2026.08.14
# Version : 1.1.4
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "JK UART"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_JK_UART_4G-GPS_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.2
# Updated : 2026.08.14
# Version : 1.1.3
# GitHub : https://github.com/syssi/esphome-pace-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "PACE RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_PACE_RS485_bms_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2025.11.25
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-pace-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "SEPLOS V1 V2 RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_SEPLOS_V1_V2_RS485_bms_full.yaml
bms_combine: !include bms_modbus_server.yaml
@@ -1,5 +1,5 @@
# Updated : 2026.02.13
# Version : 1.1.1
# Updated : 2026.08.14
# Version : 1.1.2
# GitHub : https://github.com/syssi/esphome-pace-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -17,10 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
substitutions:
bms_model: "SEPLOS V3 RS485"
bms_protocol: "Multi-node"
packages:
bms_sensors: !include bms_sensors_SEPLOS_V3_RS485_bms_full.yaml
bms_combine: !include bms_modbus_server.yaml
+14 -14
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.22
# Version : 1.3.7
# Updated : 2026.08.14
# Version : 1.3.8
# GitHub : https://github.com/syssi/esphome-jk-bms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -40,18 +40,18 @@ external_components:
esp32_ble_tracker:
scan_parameters:
active: false
on_ble_advertise:
then:
- lambda: |-
if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
ESP_LOGI("ble_adv", "New JK-BMS found");
ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
ESP_LOGD("ble_adv", " Advertised service UUIDs:");
for (auto uuid : x.get_service_uuids()) {
ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
}
}
# on_ble_advertise:
# then:
# - lambda: |-
# if (x.get_name().rfind("JK-", 0) == 0 || x.get_name().rfind("JK_", 0) == 0) {
# ESP_LOGI("ble_adv", "New JK-BMS found");
# ESP_LOGI("ble_adv", " Name: %s", x.get_name().c_str());
# ESP_LOGI("ble_adv", " MAC address: %s", x.address_str().c_str());
# ESP_LOGD("ble_adv", " Advertised service UUIDs:");
# for (auto uuid : x.get_service_uuids()) {
# ESP_LOGD("ble_adv", " - %s", uuid.to_string().c_str());
# }
# }
ble_client:
- id: ble_client${bms_id}
+9 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.08.13
# Updated : 2026.08.14
# Version : 1.8.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -30,6 +30,14 @@ substitutions:
globals:
# BMS
- id: yambms${yambms_id}_var_bms_models
type: std::string
restore_value: no
initial_value: '""'
- id: yambms${yambms_id}_var_bms_protocols
type: std::string
restore_value: no
initial_value: '""'
- id: yambms${yambms_id}_var_bms_counter
type: int
restore_value: no
+4 -4
View File
@@ -1,5 +1,5 @@
# Updated : 2026.08.13
# Version : 1.2.8
# Updated : 2026.08.14
# Version : 1.2.9
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -77,8 +77,8 @@ interval:
root["version"] = "${yambms_version}";
root["board_chip"] = "${board_chip}";
root["board_name"] = "${board_name}";
root["bms_model"] = "${bms_model}";
root["bms_protocol"] = "${bms_protocol}";
root["bms_model"] = id(yambms${yambms_id}_var_bms_models);
root["bms_protocol"] = id(yambms${yambms_id}_var_bms_protocols);
root["bms_count"] = id(yambms${yambms_id}_var_bms_counter);
root["comm_bus"] = id(yambms${yambms_id}_var_communication_bus);
root["comm_protocol"] = id(yambms${yambms_id}_var_communication_protocol);