CRLF to LF conversion

This commit is contained in:
Sleeper85 committed 2026-11-08 23:08:33 +01:00
1 parent 415f12d04f
commit e78df61e6f
10 files changed
+489 -489

No files matched your search

+73 -73
View File
@@ -1,73 +1,73 @@
# Updated : 2025.12.22
# Version : 1.1.6
# 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>.
debug:
update_interval: ${debug_update_interval}
text_sensor:
- platform: debug
device:
name: ${debug_name} Device info
id: esp32_device_info
device_id: ${board_id}
reset_reason:
name: ${debug_name} Reset reason
id: esp32_reset_reason
device_id: ${board_id}
sensor:
- platform: debug
free:
name: ${debug_name} Heap free
id: esp32_heap_free
device_id: ${board_id}
block:
name: ${debug_name} Heap max block
id: esp32_heap_max_block
device_id: ${board_id}
loop_time:
name: ${debug_name} Loop time
id: esp32_loop_time
device_id: ${board_id}
- platform: template
name: ${debug_name} Heap free percent
id: esp32_heap_free_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
- platform: template
name: ${debug_name} Heap max block percent
id: esp32_heap_max_block_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_max_block).state * 100 / 327680 );
# Updated : 2026.08.26
# Version : 1.1.6
# 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>.
debug:
update_interval: ${debug_update_interval}
text_sensor:
- platform: debug
device:
name: ${debug_name} Device info
id: esp32_device_info
device_id: ${board_id}
reset_reason:
name: ${debug_name} Reset reason
id: esp32_reset_reason
device_id: ${board_id}
sensor:
- platform: debug
free:
name: ${debug_name} Heap free
id: esp32_heap_free
device_id: ${board_id}
block:
name: ${debug_name} Heap max block
id: esp32_heap_max_block
device_id: ${board_id}
loop_time:
name: ${debug_name} Loop time
id: esp32_loop_time
device_id: ${board_id}
- platform: template
name: ${debug_name} Heap free percent
id: esp32_heap_free_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
- platform: template
name: ${debug_name} Heap max block percent
id: esp32_heap_max_block_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_max_block).state * 100 / 327680 );
+88 -88
View File
@@ -1,88 +1,88 @@
# Updated : 2025.12.22
# Version : 1.1.6
# 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>.
debug:
update_interval: ${debug_update_interval}
text_sensor:
- platform: debug
device:
name: ${debug_name} Device info
id: esp32_device_info
device_id: ${board_id}
reset_reason:
name: ${debug_name} Reset reason
id: esp32_reset_reason
device_id: ${board_id}
sensor:
- platform: debug
free:
name: ${debug_name} Heap free
id: esp32_heap_free
device_id: ${board_id}
block:
name: ${debug_name} Heap max block
id: esp32_heap_max_block
device_id: ${board_id}
psram:
name: ${debug_name} Free PSRAM
id: esp32_free_psram
device_id: ${board_id}
loop_time:
name: ${debug_name} Loop time
id: esp32_loop_time
device_id: ${board_id}
- platform: template
name: ${debug_name} Heap free percent
id: esp32_heap_free_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
- platform: template
name: ${debug_name} Heap max block percent
id: esp32_heap_max_block_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_max_block).state * 100 / 327680 );
- platform: template
name: ${debug_name} Free PSRAM percent
id: esp32_free_psram_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
lambda: return ( id(esp32_free_psram).state * 100 / ${debug_psram_size} ); // 8388608
# Updated : 2026.08.26
# Version : 1.1.6
# 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>.
debug:
update_interval: ${debug_update_interval}
text_sensor:
- platform: debug
device:
name: ${debug_name} Device info
id: esp32_device_info
device_id: ${board_id}
reset_reason:
name: ${debug_name} Reset reason
id: esp32_reset_reason
device_id: ${board_id}
sensor:
- platform: debug
free:
name: ${debug_name} Heap free
id: esp32_heap_free
device_id: ${board_id}
block:
name: ${debug_name} Heap max block
id: esp32_heap_max_block
device_id: ${board_id}
psram:
name: ${debug_name} Free PSRAM
id: esp32_free_psram
device_id: ${board_id}
loop_time:
name: ${debug_name} Loop time
id: esp32_loop_time
device_id: ${board_id}
- platform: template
name: ${debug_name} Heap free percent
id: esp32_heap_free_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
- platform: template
name: ${debug_name} Heap max block percent
id: esp32_heap_max_block_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
# 524288 B (SRAM total)
# 327680 B (DRAM usable)
lambda: return ( id(esp32_heap_max_block).state * 100 / 327680 );
- platform: template
name: ${debug_name} Free PSRAM percent
id: esp32_free_psram_percent
device_id: ${board_id}
unit_of_measurement: '%'
accuracy_decimals: 2
icon: mdi:percent
update_interval: ${debug_update_interval}
entity_category: diagnostic
lambda: return ( id(esp32_free_psram).state * 100 / ${debug_psram_size} ); // 8388608
+28 -28
View File
@@ -1,28 +1,28 @@
# Updated : 2026.02.05
# Version : 1.1.1
# 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:
i2c_id: 'i2c_bus'
i2c_frequency: '100kHz'
i2c:
- id: ${i2c_id}
sda: ${i2c_sda}
scl: ${i2c_scl}
frequency: ${i2c_frequency}
# Updated : 2026.08.26
# Version : 1.1.1
# 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:
i2c_id: 'i2c_bus'
i2c_frequency: '100kHz'
i2c:
- id: ${i2c_id}
sda: ${i2c_sda}
scl: ${i2c_scl}
frequency: ${i2c_frequency}
@@ -1,26 +1,26 @@
# Updated : 2026.02.05
# Version : 1.1.1
# 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:
one_wire_id: 'one_wire_bus'
one_wire:
- platform: gpio
id: ${one_wire_id}
pin: ${one_wire_pin}
# Updated : 2026.08.26
# Version : 1.1.1
# 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:
one_wire_id: 'one_wire_bus'
one_wire:
- platform: gpio
id: ${one_wire_id}
pin: ${one_wire_pin}
+27 -27
View File
@@ -1,27 +1,27 @@
# Updated : 2026.02.05
# Version : 1.1.1
# 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:
spi_id: 'spi_bus'
spi:
- id: ${spi_id}
mosi_pin: ${spi_mosi_pin}
miso_pin: ${spi_miso_pin}
clk_pin: ${spi_clk_pin}
# Updated : 2026.08.26
# Version : 1.1.1
# 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:
spi_id: 'spi_bus'
spi:
- id: ${spi_id}
mosi_pin: ${spi_mosi_pin}
miso_pin: ${spi_miso_pin}
clk_pin: ${spi_clk_pin}
+39 -39
View File
@@ -1,39 +1,39 @@
# Updated : 2026.07.31
# Version : 1.1.5
# 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:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: '1'
modbus_send_wait_time: '200ms' # Timeout: max time to wait for the FIRST byte of a response
modbus_turnaround_time: '0ms' # Pause after a completed response before the next command.
# Modbus Controller
modbus_update_interval: '5s' # Frequency with which BMS/Balancer/Shunt (modbus servers) are queried
uart:
- id: !extend ${modbus_uart_id}
baud_rate: ${modbus_baud_rate}
modbus:
- uart_id: ${modbus_uart_id}
id: modbus_${modbus_role}_${modbus_id}
role: ${modbus_role}
send_wait_time: ${modbus_send_wait_time}
turnaround_time: ${modbus_turnaround_time}
# Updated : 2026.08.26
# Version : 1.1.5
# 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:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: '1'
modbus_send_wait_time: '200ms' # Timeout: max time to wait for the FIRST byte of a response
modbus_turnaround_time: '0ms' # Pause after a completed response before the next command.
# Modbus Controller
modbus_update_interval: '5s' # Frequency with which BMS/Balancer/Shunt (modbus servers) are queried
uart:
- id: !extend ${modbus_uart_id}
baud_rate: ${modbus_baud_rate}
modbus:
- uart_id: ${modbus_uart_id}
id: modbus_${modbus_role}_${modbus_id}
role: ${modbus_role}
send_wait_time: ${modbus_send_wait_time}
turnaround_time: ${modbus_turnaround_time}
@@ -1,35 +1,35 @@
# Updated : 2026.07.31
# Version : 1.1.5
# 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:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: '1'
modbus_send_wait_time: '200ms' # Timeout: max time to wait for the FIRST byte of a response
modbus_turnaround_time: '0ms' # Pause after a completed response before the next command
# Modbus Controller
modbus_update_interval: '5s' # Frequency with which BMS/Balancer/Shunt (modbus servers) are queried
modbus:
- uart_id: ${modbus_uart_id}
id: modbus_${modbus_role}_${modbus_id}
role: ${modbus_role}
send_wait_time: ${modbus_send_wait_time}
turnaround_time: ${modbus_turnaround_time}
# Updated : 2026.08.26
# Version : 1.1.5
# 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:
# UART
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
# Modbus
modbus_id: '1'
modbus_send_wait_time: '200ms' # Timeout: max time to wait for the FIRST byte of a response
modbus_turnaround_time: '0ms' # Pause after a completed response before the next command
# Modbus Controller
modbus_update_interval: '5s' # Frequency with which BMS/Balancer/Shunt (modbus servers) are queried
modbus:
- uart_id: ${modbus_uart_id}
id: modbus_${modbus_role}_${modbus_id}
role: ${modbus_role}
send_wait_time: ${modbus_send_wait_time}
turnaround_time: ${modbus_turnaround_time}
@@ -1,35 +1,35 @@
# Updated : 2026.02.05
# Version : 1.1.1
# 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>.
sx1509:
- id: sx1509_hub0
address: 0x3E
i2c_id: ${i2c_id}
- id: sx1509_hub1
address: 0x3F
i2c_id: ${i2c_id}
# - id: sx1509_hub2
# address: 0x70
# i2c_id: ${i2c_id}
# - id: sx1509_hub3
# address: 0x71
# i2c_id: ${i2c_id}
# Updated : 2026.08.26
# Version : 1.1.1
# 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>.
sx1509:
- id: sx1509_hub0
address: 0x3E
i2c_id: ${i2c_id}
- id: sx1509_hub1
address: 0x3F
i2c_id: ${i2c_id}
# - id: sx1509_hub2
# address: 0x70
# i2c_id: ${i2c_id}
# - id: sx1509_hub3
# address: 0x71
# i2c_id: ${i2c_id}
@@ -1,67 +1,67 @@
# Updated : 2026.02.05
# 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:
uart_hub_bus: 'i2c'
wk2168_i2c_id: 'wk2168_i2c_bus'
i2c:
- id: ${wk2168_i2c_id}
sda: ${wk2168_i2c_sda}
scl: ${wk2168_i2c_scl}
frequency: 800kHz
wk2168_i2c:
- address: 0x10
id: uart_bridge0
i2c_id: ${wk2168_i2c_id}
uart:
- id: uart_i2c_0
channel: 0
baud_rate: ${uart0_baudrate}
# parity: even
- id: uart_i2c_1
channel: 1
baud_rate: ${uart1_baudrate}
- id: uart_i2c_2
channel: 2
baud_rate: ${uart2_baudrate}
# parity: even
- id: uart_i2c_3
channel: 3
baud_rate: ${uart3_baudrate}
- address: 0x70
id: uart_bridge1
i2c_id: ${wk2168_i2c_id}
uart:
- id: uart_i2c_4
channel: 0
baud_rate: ${uart4_baudrate}
# parity: even
- id: uart_i2c_5
channel: 1
baud_rate: ${uart5_baudrate}
- id: uart_i2c_6
channel: 2
baud_rate: ${uart6_baudrate}
# parity: even
- id: uart_i2c_7
channel: 3
baud_rate: ${uart7_baudrate}
# Updated : 2026.08.26
# 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:
uart_hub_bus: 'i2c'
wk2168_i2c_id: 'wk2168_i2c_bus'
i2c:
- id: ${wk2168_i2c_id}
sda: ${wk2168_i2c_sda}
scl: ${wk2168_i2c_scl}
frequency: 800kHz
wk2168_i2c:
- address: 0x10
id: uart_bridge0
i2c_id: ${wk2168_i2c_id}
uart:
- id: uart_i2c_0
channel: 0
baud_rate: ${uart0_baudrate}
# parity: even
- id: uart_i2c_1
channel: 1
baud_rate: ${uart1_baudrate}
- id: uart_i2c_2
channel: 2
baud_rate: ${uart2_baudrate}
# parity: even
- id: uart_i2c_3
channel: 3
baud_rate: ${uart3_baudrate}
- address: 0x70
id: uart_bridge1
i2c_id: ${wk2168_i2c_id}
uart:
- id: uart_i2c_4
channel: 0
baud_rate: ${uart4_baudrate}
# parity: even
- id: uart_i2c_5
channel: 1
baud_rate: ${uart5_baudrate}
- id: uart_i2c_6
channel: 2
baud_rate: ${uart6_baudrate}
# parity: even
- id: uart_i2c_7
channel: 3
baud_rate: ${uart7_baudrate}
@@ -1,71 +1,71 @@
# Updated : 2026.02.05
# 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:
uart_hub_bus: 'spi'
spi_data_rate: '4Mhz'
wk2168_spi_id: 'wk2168_spi_bus'
spi:
- id: ${wk2168_spi_id}
mosi_pin: ${wk2168_spi_mosi}
miso_pin: ${wk2168_spi_miso}
clk_pin: ${wk2168_spi_clk}
wk2168_spi:
- id: uart_bridge0
spi_id: ${wk2168_spi_id}
cs_pin: ${wk2168_spi_cs0}
data_rate: ${spi_data_rate}
#test_mode: 1
uart:
- id: uart_spi_0
channel: 0
baud_rate: ${uart0_baudrate}
#parity: even
- id: uart_spi_1
channel: 1
baud_rate: ${uart1_baudrate}
- id: uart_spi_2
channel: 2
baud_rate: ${uart2_baudrate}
#parity: even
- id: uart_spi_3
channel: 3
baud_rate: ${uart3_baudrate}
- id: uart_bridge1
spi_id: ${wk2168_spi_id}
cs_pin: ${wk2168_spi_cs1}
data_rate: ${spi_data_rate}
uart:
- id: uart_spi_4
channel: 0
baud_rate: ${uart4_baudrate}
#parity: even
- id: uart_spi_5
channel: 1
baud_rate: ${uart5_baudrate}
- id: uart_spi_6
channel: 2
baud_rate: ${uart6_baudrate}
#parity: even
- id: uart_spi_7
channel: 3
baud_rate: ${uart7_baudrate}
# Updated : 2026.08.26
# 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:
uart_hub_bus: 'spi'
spi_data_rate: '4Mhz'
wk2168_spi_id: 'wk2168_spi_bus'
spi:
- id: ${wk2168_spi_id}
mosi_pin: ${wk2168_spi_mosi}
miso_pin: ${wk2168_spi_miso}
clk_pin: ${wk2168_spi_clk}
wk2168_spi:
- id: uart_bridge0
spi_id: ${wk2168_spi_id}
cs_pin: ${wk2168_spi_cs0}
data_rate: ${spi_data_rate}
#test_mode: 1
uart:
- id: uart_spi_0
channel: 0
baud_rate: ${uart0_baudrate}
#parity: even
- id: uart_spi_1
channel: 1
baud_rate: ${uart1_baudrate}
- id: uart_spi_2
channel: 2
baud_rate: ${uart2_baudrate}
#parity: even
- id: uart_spi_3
channel: 3
baud_rate: ${uart3_baudrate}
- id: uart_bridge1
spi_id: ${wk2168_spi_id}
cs_pin: ${wk2168_spi_cs1}
data_rate: ${spi_data_rate}
uart:
- id: uart_spi_4
channel: 0
baud_rate: ${uart4_baudrate}
#parity: even
- id: uart_spi_5
channel: 1
baud_rate: ${uart5_baudrate}
- id: uart_spi_6
channel: 2
baud_rate: ${uart6_baudrate}
#parity: even
- id: uart_spi_7
channel: 3
baud_rate: ${uart7_baudrate}