From e78df61e6f494bb87a01f521d08c7e103b3f26bf Mon Sep 17 00:00:00 2001 From: Sleeper85 Date: Wed, 26 Aug 2026 21:51:23 +0200 Subject: [PATCH] CRLF to LF conversion --- packages/base/device_debug_ESP32.yaml | 146 +++++++-------- packages/base/device_debug_ESP32_PSRAM.yaml | 176 +++++++++--------- packages/board/board_options_itf_bus_i2c.yaml | 56 +++--- .../board/board_options_itf_bus_one_wire.yaml | 52 +++--- packages/board/board_options_itf_bus_spi.yaml | 54 +++--- packages/board/board_options_itf_modbus.yaml | 78 ++++---- .../board_options_itf_modbus_expander.yaml | 70 +++---- .../board_options_itf_pvbrain2_sx1509.yaml | 70 +++---- ...board_options_itf_pvbrain2_wk2168_i2c.yaml | 134 ++++++------- ...board_options_itf_pvbrain2_wk2168_spi.yaml | 142 +++++++------- 10 files changed, 489 insertions(+), 489 deletions(-) diff --git a/packages/base/device_debug_ESP32.yaml b/packages/base/device_debug_ESP32.yaml index 7f4a0dd..42a662f 100644 --- a/packages/base/device_debug_ESP32.yaml +++ b/packages/base/device_debug_ESP32.yaml @@ -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 . - -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 . + +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 ); diff --git a/packages/base/device_debug_ESP32_PSRAM.yaml b/packages/base/device_debug_ESP32_PSRAM.yaml index 75995be..35becd3 100644 --- a/packages/base/device_debug_ESP32_PSRAM.yaml +++ b/packages/base/device_debug_ESP32_PSRAM.yaml @@ -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 . - -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 . + +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 diff --git a/packages/board/board_options_itf_bus_i2c.yaml b/packages/board/board_options_itf_bus_i2c.yaml index 92dc48a..3a2b9eb 100644 --- a/packages/board/board_options_itf_bus_i2c.yaml +++ b/packages/board/board_options_itf_bus_i2c.yaml @@ -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 . - -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 . + +substitutions: + i2c_id: 'i2c_bus' + i2c_frequency: '100kHz' + +i2c: + - id: ${i2c_id} + sda: ${i2c_sda} + scl: ${i2c_scl} + frequency: ${i2c_frequency} diff --git a/packages/board/board_options_itf_bus_one_wire.yaml b/packages/board/board_options_itf_bus_one_wire.yaml index 08148db..69cfbdb 100644 --- a/packages/board/board_options_itf_bus_one_wire.yaml +++ b/packages/board/board_options_itf_bus_one_wire.yaml @@ -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 . - -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 . + +substitutions: + one_wire_id: 'one_wire_bus' + +one_wire: + - platform: gpio + id: ${one_wire_id} + pin: ${one_wire_pin} diff --git a/packages/board/board_options_itf_bus_spi.yaml b/packages/board/board_options_itf_bus_spi.yaml index 40ac8af..1cf653b 100644 --- a/packages/board/board_options_itf_bus_spi.yaml +++ b/packages/board/board_options_itf_bus_spi.yaml @@ -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 . - -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 . + +substitutions: + spi_id: 'spi_bus' + +spi: + - id: ${spi_id} + mosi_pin: ${spi_mosi_pin} + miso_pin: ${spi_miso_pin} + clk_pin: ${spi_clk_pin} diff --git a/packages/board/board_options_itf_modbus.yaml b/packages/board/board_options_itf_modbus.yaml index 802a98e..371b711 100644 --- a/packages/board/board_options_itf_modbus.yaml +++ b/packages/board/board_options_itf_modbus.yaml @@ -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 . - -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 . + +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} diff --git a/packages/board/board_options_itf_modbus_expander.yaml b/packages/board/board_options_itf_modbus_expander.yaml index 52fa225..6543435 100644 --- a/packages/board/board_options_itf_modbus_expander.yaml +++ b/packages/board/board_options_itf_modbus_expander.yaml @@ -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 . - -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 . + +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} diff --git a/packages/board/board_options_itf_pvbrain2_sx1509.yaml b/packages/board/board_options_itf_pvbrain2_sx1509.yaml index 5dcc5ea..ccdbea9 100644 --- a/packages/board/board_options_itf_pvbrain2_sx1509.yaml +++ b/packages/board/board_options_itf_pvbrain2_sx1509.yaml @@ -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 . - -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 . + +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} diff --git a/packages/board/board_options_itf_pvbrain2_wk2168_i2c.yaml b/packages/board/board_options_itf_pvbrain2_wk2168_i2c.yaml index 5a64b40..1915058 100644 --- a/packages/board/board_options_itf_pvbrain2_wk2168_i2c.yaml +++ b/packages/board/board_options_itf_pvbrain2_wk2168_i2c.yaml @@ -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 . - -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 . + +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} diff --git a/packages/board/board_options_itf_pvbrain2_wk2168_spi.yaml b/packages/board/board_options_itf_pvbrain2_wk2168_spi.yaml index 35584e0..91a623b 100644 --- a/packages/board/board_options_itf_pvbrain2_wk2168_spi.yaml +++ b/packages/board/board_options_itf_pvbrain2_wk2168_spi.yaml @@ -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 . - -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 . + +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}