Added loop_task_stack_size option + documentation #306

This commit is contained in:
Sleeper85 committed 2026-11-08 23:08:32 +01:00
1 parent c1579fed98
commit 9ddd618da7
55 files changed
+520 -89

No files matched your search

+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -145,6 +145,12 @@ substitutions:
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS / entities
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
# +--------------------------------------+
# | UART expander WK2168 |
# +--------------------------------------+
uart0_baudrate: '2400' # uart_id : uart_${uart_hub_bus}_0 WKS {RJ45-UART0}
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+8 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.29
# Version : 1.7.0
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -54,6 +54,12 @@ substitutions:
# This allows to group entities into logical devices that appear separately in Home Assistant.
hostname: 'yambms-display' # Name of your ESPHome node registered on the IP network (DNS name must be unique)
friendly_name : 'YamBMS Display' # Name of your board (prefix for board entities)
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of entities
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
# +--------------------------------------+
# | Packages |
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -145,6 +145,12 @@ substitutions:
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS / entities
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
# +--------------------------------------+
# | UART expander WK2168 |
# +--------------------------------------+
uart0_baudrate: '2400' # uart_id : uart_${uart_hub_bus}_0 WKS {RJ45-UART0}
+7 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
@@ -1,4 +1,4 @@
# Updated : 2026.07.15
# Updated : 2026.07.30
# Version : 1.7.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -144,6 +144,12 @@ substitutions:
# +--------------------------------------+
enable_led_logging: 'false' # Set to true to see if an led is assigned to a component correctly, logged every 60 seconds
enable_health_logging: 'false' # Set to true to see if component health for all component instances, logged every 60 seconds
# +--------------------------------------+
# | Advanced options |
# +--------------------------------------+
# Increase the `loop_task_stack_size` value for a large number of BMS
# See https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/LOOP_TASK_STACK.md before changing
loop_task_stack_size: "8192" # 8192 / 16384 / 32768 bytes
+174
View File
@@ -0,0 +1,174 @@
# YamBMS - loop_task_stack_size
[![Badge License: GPLv3](https://img.shields.io/badge/License-GPLv3-brightgreen.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Badge Version](https://img.shields.io/github/v/release/Sleeper85/esphome-yambms?include_prereleases&color=yellow&logo=DocuSign&logoColor=white)](https://github.com/Sleeper85/esphome-yambms/releases/latest)
![GitHub stars](https://img.shields.io/github/stars/Sleeper85/esphome-yambms)
![GitHub forks](https://img.shields.io/github/forks/Sleeper85/esphome-yambms)
![GitHub watchers](https://img.shields.io/github/watchers/Sleeper85/esphome-yambms)
Reference for the `loop_task_stack_size` option. Read this before changing it.
This document covers **raising** the value. Lowering it below the ESPHome
default is not documented here and is not recommended: the gain is a few
kilobytes, and the failure mode is a rare crash on a code path you did not test.
## Stack and heap in one minute
An ESP32 stores data in two very different ways, and both come out of the same
pool of internal RAM.
| | Stack | Heap |
|---|---|---|
| What it is | Scratch space for the function currently running | A reserve the program borrows from on demand |
| Reserved when | At compile time, one fixed block per task | At runtime, piece by piece |
| Holds | Local variables, return addresses | Objects whose count is not known in advance |
| In YamBMS | The local variables of `setup()` | Every sensor object, every API connection, every network buffer |
| Runs out how | Silently overwrites neighbouring memory | `malloc()` returns null |
The **stack** is a fixed-size block. ESPHome runs `setup()` and the main loop
inside a FreeRTOS task called `loopTask`, whose stack defaults to 8192 bytes.
That block is reserved at compile time and never grows.
The **heap** is everything left over. When YamBMS creates 1,400 sensor objects
at boot, they come from the heap. On a board with PSRAM, most of them end up in
PSRAM rather than internal RAM.
Raising `loop_task_stack_size` enlarges the stack block, which takes internal
RAM away from the heap — byte for byte, nothing else changes.
## Why the default is sometimes not enough
ESPHome generates `setup()` as a single flat function. Every entity
registration adds local variables to the same stack frame, so the frame grows
in direct proportion to the number of entities.
Measured on YamBMS with **YamBMS RS485 BMS (bms_combine_modbus_client.yaml)** packages:
```
setup() frame = 784 + 400 x nb_BMS bytes
12 BMS -> 5,584 B ~2,350 B left for everything else -> boots
16 BMS -> 7,184 B ~760 B left for everything else -> boot loop
```
That frame stays alive while `App.setup()` initialises every component, so the
remaining bytes must also cover component init, NVS reads, log formatting and
CPU register spills. When they do not fit, the overflow writes past the end of
the stack and corrupts whatever sits next to it in memory.
### Symptoms
- Boot loops that start only after adding BMS or entities, with no hard
threshold — it scales with config size.
- `Guru Meditation Error` whose **type changes between reboots**: sometimes
`LoadProhibited`, sometimes an Interrupt WDT, sometimes a cache error.
- No stack overflow message. The FreeRTOS canary is often skipped entirely by
a large stack frame, so nothing warns you.
- Adjusting PSRAM options changes nothing, because the stack is not in PSRAM.
If a boot loop produces **no ESPHome log output at all** and a constant
`abort()`, that is a different problem — the board ran out of internal RAM
before startup. Lower the value rather than raising it, and reduce the config.
## Recommended values
| BMS per node | `loop_task_stack_size` |
|---|---|
| up to 6 | `8192` (ESPHome default — leave unset) |
| 7 to 24 | `16384` |
| 25 to 64 | `32768` (maximum accepted value) |
Values include roughly 4 KB of reserve above the measured `setup()` frame.
**These values are for YamBMS RS485 BMS (bms_combine_modbus_client.yaml).** BLE BMS instantiate
`esp32_ble_tracker` and one `ble_client` per BMS, which gives a different fixed
cost and a different slope. The model above has not been calibrated for them.
**The 16384 and 32768 rows assume a board with PSRAM.** Not because the stack
needs PSRAM — it never lives there — but because a config large enough to need
them will run out of heap long before it runs out of stack. On a board without
PSRAM, keep `8192` unless you have a measured reason not to.
## How to apply it
The value belongs in your main configuration, not in a board or PSRAM package:
it depends on how many BMS you configured, not on your hardware.
```yaml
substitutions:
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
esp32:
framework:
advanced:
loop_task_stack_size: ${loop_task_stack_size}
```
## Check the cost before flashing
Raising this value consumes internal RAM permanently. The size report at the end
of every compile tells you the cost, with no hardware required:
```
RAM: [====== ] 59.2% (used 202299 bytes from 341760 bytes)
```
Recompile after changing the value and compare. Going from `8192` to `16384`
should increase the used figure by exactly 8,192 bytes; `8192` to `32768` by
24,576. Anything else means something unexpected happened.
Leave yourself comfortable margin on the free figure. If free internal RAM drops
low, you trade a boot-time crash for runtime symptoms instead: API
disconnections, WiFi failing to reconnect, entities failing to initialise.
To confirm the value actually reached the firmware:
```bash
NM=$(find ~/.cache/esphome/idf/tools -name '*-elf-nm' | head -1)
$NM -SC .esphome/build/<node>/build/<node>.elf | grep loop_task_stack
```
The second column is the size in hex: `00002000` = 8192, `00004000` = 16384,
`00008000` = 32768.
## Confirm on hardware
The size report proves the cost. Only a running device proves the value is
sufficient. Add this temporarily and read the log after boot:
```yaml
esphome:
on_boot:
priority: -100.0
then:
- lambda: 'ESP_LOGW("mem", "loopTask HWM=%u B", uxTaskGetStackHighWaterMark(nullptr));'
```
`HWM` is the smallest amount of stack that was still free — the remaining
margin, in bytes. Below about 2,000, go up one step in the table.
Note that `loopTask` also runs the main loop forever, not just `setup()`. Rare
paths such as an OTA update, an API reconnection or verbose logging can push
deeper than boot does, so keep margin rather than tuning to the exact boot
figure.
## Calibrating for a different node type
If your node is not a standard **YamBMS RS485 BMS (bms_combine_modbus_client.yaml)** setup, measure your own frame
size instead of using the table. Add this and compile twice with a different
number of BMS:
```yaml
esphome:
build_flags:
- "-Wframe-larger-than=4096"
```
The compiler prints the frame size directly:
```
warning: the frame size of 7184 bytes is larger than 4096 bytes
```
Two data points give you the fixed cost and the cost per BMS. Add about 4 KB of
reserve and round up to the next step.
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.3
# Updated : 2026.07.30
# Version : 1.3.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
talk_pin: '10' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -53,6 +55,8 @@ esp32:
flash_size: 4MB # ajust according to your ESP32-C3 version
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -4
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.4
# Updated : 2026.07.30
# Version : 1.3.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -30,6 +30,8 @@ substitutions:
# canbus_esp32_can
tx_pin_4: '19'
rx_pin_4: '18'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -38,10 +40,10 @@ packages:
esp32:
variant: esp32c3
# flash_size: 2MB
framework:
type: esp-idf
# version: latest
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.5
# Updated : 2026.07.30
# Version : 1.1.6
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
mcp2515_cs_pin: '5'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -53,6 +55,8 @@ esp32:
flash_size: 4MB # ajust according to your ESP32-C3 version
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.06.28
# Version : 1.1.3
# Updated : 2026.07.30
# Version : 1.1.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -74,6 +74,8 @@ substitutions:
rx_pin_2: '38'
# talk_pin for RS485 flow control (directly wired on COMMU module, optional GPIO)
talk_pin: '48'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -86,6 +88,7 @@ esp32:
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
enable_idf_experimental_features: true
# WiFi via ESP32-C6 co-processor
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.6
# Updated : 2026.07.30
# Version : 1.3.7
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -45,6 +45,8 @@ substitutions:
talk_pin: '8'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.29
# Version : 1.3.9
# Updated : 2026.07.30
# Version : 1.4.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -44,6 +44,8 @@ substitutions:
mcp2515_cs_pin: '39'
# talk_pin
talk_pin: '8'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -55,6 +57,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.06.29
# Version : 1.4.0
# Updated : 2026.07.30
# Version : 1.4.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -44,6 +44,8 @@ substitutions:
mcp2515_cs_pin: '39'
# talk_pin
talk_pin: '8'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -57,6 +59,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.3
# Updated : 2026.07.30
# Version : 1.3.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
talk_pin: '8' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -54,6 +56,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.5
# Updated : 2026.07.30
# Version : 1.3.6
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
talk_pin: '8' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -54,6 +56,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.6
# Updated : 2026.07.30
# Version : 1.3.7
# GitHub : https://github.com/SeByDocKy/pvbrain2
substitutions:
@@ -39,6 +39,8 @@ substitutions:
one_wire_pin: '47'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -51,6 +53,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.4
# Updated : 2026.07.30
# Version : 1.1.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -44,6 +44,8 @@ substitutions:
talk_pin: '8' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.1
# Updated : 2026.07.30
# Version : 1.1.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -45,6 +45,8 @@ substitutions:
# LED
led_pin: '48' # ajust according to your board model
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -57,6 +59,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.07.10
# Version : 1.1.2
# Updated : 2026.07.30
# Version : 1.1.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -45,6 +45,8 @@ substitutions:
lilygo_btn_b: '40'
# relay
lilygo_rly: '8'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -57,6 +59,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.07.10
# Version : 1.1.9
# Updated : 2026.07.30
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -34,6 +34,8 @@ substitutions:
# canbus_esp32_can: CAN
tx_pin_4: '6'
rx_pin_4: '7'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -47,6 +49,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.07.10
# Version : 1.2.0
# Updated : 2026.07.30
# Version : 1.2.1
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -47,6 +47,8 @@ substitutions:
mcp2515_cs_pin: "14"
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -59,6 +61,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.4
# Updated : 2026.07.30
# Version : 1.1.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -44,6 +44,8 @@ substitutions:
talk_pin: '8' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.6
# Updated : 2026.07.30
# Version : 1.1.7
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -38,6 +38,8 @@ substitutions:
spi_mosi_pin: '40'
spi_miso_pin: '41'
mcp2515_cs_pin: '42'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -50,6 +52,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.9
# Updated : 2026.07.30
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -44,6 +44,8 @@ substitutions:
spi_miso_pin: '13'
spi_clk_pin: '12'
mcp2515_cs_pin: '10'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.06.28
# Version : 1.2.1
# Updated : 2026.07.30
# Version : 1.2.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -40,6 +40,8 @@ substitutions:
spi_clk_pin: '12'
spi_miso_pin: '13'
cs_pin: '4' # ch422g_hub
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -57,6 +59,8 @@ esp32:
CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
CONFIG_SPIRAM_RODATA: y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.06.28
# Version : 1.2.1
# Updated : 2026.07.30
# Version : 1.2.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -37,6 +37,8 @@ substitutions:
spi_clk_pin: '12'
spi_miso_pin: '13'
cs_pin: '4' # ch422g_hub
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -54,6 +56,8 @@ esp32:
CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
CONFIG_SPIRAM_RODATA: y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB: y
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.06.28
# Version : 1.2.1
# Updated : 2026.07.30
# Version : 1.2.2
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -40,6 +40,8 @@ substitutions:
spi_clk_pin: '12'
spi_miso_pin: '13'
cs_pin: '4' # ch422g_hub
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -57,6 +59,8 @@ esp32:
CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
CONFIG_SPIRAM_RODATA: y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.9
# Updated : 2026.07.30
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -40,6 +40,8 @@ substitutions:
mcp2515_cs_pin: '6'
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -52,6 +54,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.6
# Updated : 2026.07.30
# Version : 1.1.7
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -35,6 +35,8 @@ substitutions:
rx_pin_4: '18'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -47,6 +49,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.4
# Updated : 2026.07.30
# Version : 1.3.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -45,6 +45,8 @@ substitutions:
talk_pin: '33'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.4
# Updated : 2026.07.30
# Version : 1.3.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -45,6 +45,8 @@ substitutions:
talk_pin: '33'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -56,6 +58,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.3
# Updated : 2026.07.30
# Version : 1.3.4
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
talk_pin: '4' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -53,6 +55,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.8
# Updated : 2026.07.30
# Version : 1.1.9
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -22,6 +22,8 @@ substitutions:
board_name: "espBerry 2-CH-CAN"
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -33,6 +35,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.8
# Updated : 2026.07.30
# Version : 1.1.9
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -32,6 +32,8 @@ substitutions:
# canbus_esp32_can
tx_pin_4: '5'
rx_pin_4: '35'
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -43,6 +45,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.3.4
# Updated : 2026.07.30
# Version : 1.3.5
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -42,6 +42,8 @@ substitutions:
talk_pin: '4' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
@@ -54,6 +56,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.9
# Updated : 2026.07.30
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -43,6 +43,8 @@ substitutions:
mcp2515_cs_pin: '25'
# LED
board_has_rgb: "true" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -54,6 +56,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
+6 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.5
# Updated : 2026.07.30
# Version : 1.1.6
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -38,6 +38,8 @@ substitutions:
rx_pin_4: '15' # to CAN transceiver CRX
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -49,6 +51,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options:
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.5
# Updated : 2026.07.30
# Version : 1.1.6
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -60,6 +60,8 @@ substitutions:
mcp2515_cs_pin: '15'
# LED
board_has_rgb: "false" # LED `RGB` flag to show functionality is available
# LOOP_TASK_STACK
loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing
packages:
device_base: !include ../base/device_base.yaml
@@ -71,6 +73,8 @@ esp32:
cpu_frequency: 240MHz
framework:
type: esp-idf
advanced:
loop_task_stack_size: ${loop_task_stack_size}
esphome:
platformio_options: