diff --git a/packages/board/board_ESP32-C3_DevKitM-1.yaml b/packages/board/board_ESP32-C3_DevKitM-1.yaml index ca7d0c6..57f2977 100644 --- a/packages/board/board_ESP32-C3_DevKitM-1.yaml +++ b/packages/board/board_ESP32-C3_DevKitM-1.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.4 +# Updated : 2026.08.26 +# Version : 1.3.5 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -40,8 +40,6 @@ substitutions: mcp2515_cs_pin: '10' # talk_pin 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 @@ -79,7 +77,7 @@ light: # Internal : only specifying an id without a name will implicitly set this to true. - platform: esp32_rmt_led_strip id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 8 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-C3_FlipC3.yaml b/packages/board/board_ESP32-C3_FlipC3.yaml index a14824c..cfc5927 100644 --- a/packages/board/board_ESP32-C3_FlipC3.yaml +++ b/packages/board/board_ESP32-C3_FlipC3.yaml @@ -1,88 +1,86 @@ -# Updated : 2026.07.30 -# 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 . - -# https://wiki.vdbx.io/product/flip_c3 - -substitutions: - board_chip: "ESP32-C3" - board_name: "FlipC3" - # Interfaces GPIOs - # uart_esp_1 # UART PORT - tx_pin_1: '21' - rx_pin_1: '20' - # uart_esp_2 # I2C PORT (Using Grove to STEMMA QT / Qwiic / JST SH Cable with 3.3 pulled out and tied to 5V) - tx_pin_2: '1' - rx_pin_2: '0' - # uart_esp_3 - tx_pin_3: '2' - rx_pin_3: '3' - # canbus_esp32_can - tx_pin_4: '7' - rx_pin_4: '6' - # canbus_mcp2515 - spi_mosi_pin: '2' - spi_miso_pin: '3' - spi_clk_pin: '4' - 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 - device_base_wifi: !include ../base/device_base_wifi.yaml - led_control: !include board_options_led_control.yaml - -esp32: - variant: esp32c3 - 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: - board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing - -wifi: - id: my_network - ssid: !secret wifi_ssid - password: !secret wifi_password - domain: !secret domain - reboot_timeout: 0s - -logger: - baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus" - hardware_uart: USB_SERIAL_JTAG - -light: - # https://esphome.io/components/light/esp32_rmt_led_strip - # ESP Light used to see the inverter heartbeat - # Internal : only specifying an id without a name will implicitly set this to true. - - platform: esp32_rmt_led_strip - id: esp_light - rgb_order: GRB - pin: 8 - num_leds: 1 - # rmt_channel: 0 - chipset: ws2812 - entity_category: config - default_transition_length: 0ms +# Updated : 2026.08.26 +# Version : 1.1.7 +# 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 . + +# https://wiki.vdbx.io/product/flip_c3 + +substitutions: + board_chip: "ESP32-C3" + board_name: "FlipC3" + # Interfaces GPIOs + # uart_esp_1 # UART PORT + tx_pin_1: '21' + rx_pin_1: '20' + # uart_esp_2 # I2C PORT (Using Grove to STEMMA QT / Qwiic / JST SH Cable with 3.3 pulled out and tied to 5V) + tx_pin_2: '1' + rx_pin_2: '0' + # uart_esp_3 + tx_pin_3: '2' + rx_pin_3: '3' + # canbus_esp32_can + tx_pin_4: '7' + rx_pin_4: '6' + # canbus_mcp2515 + spi_mosi_pin: '2' + spi_miso_pin: '3' + spi_clk_pin: '4' + mcp2515_cs_pin: '5' + # LOOP_TASK_STACK + loop_task_stack_size: "8192" # see LOOP_TASK_STACK.md before changing + +packages: + device_base: !include ../base/device_base.yaml + device_base_wifi: !include ../base/device_base_wifi.yaml + led_control: !include board_options_led_control.yaml + +esp32: + variant: esp32c3 + 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: + board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing + +wifi: + id: my_network + ssid: !secret wifi_ssid + password: !secret wifi_password + domain: !secret domain + reboot_timeout: 0s + +logger: + baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus" + hardware_uart: USB_SERIAL_JTAG + +light: + # https://esphome.io/components/light/esp32_rmt_led_strip + # ESP Light used to see the inverter heartbeat + # Internal : only specifying an id without a name will implicitly set this to true. + - platform: esp32_rmt_led_strip + id: esp_light + channel_colors: GRB + pin: 8 + num_leds: 1 + # rmt_channel: 0 + chipset: ws2812 + entity_category: config + default_transition_length: 0ms diff --git a/packages/board/board_ESP32-S3_AtomS3-Lite.yaml b/packages/board/board_ESP32-S3_AtomS3-Lite.yaml index 17ef32a..cbc9054 100644 --- a/packages/board/board_ESP32-S3_AtomS3-Lite.yaml +++ b/packages/board/board_ESP32-S3_AtomS3-Lite.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.7 +# Updated : 2026.08.26 +# Version : 1.3.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -43,8 +43,6 @@ substitutions: mcp2515_cs_pin: '39' # talk_pin 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 @@ -82,7 +80,7 @@ light: # Internal : only specifying an id without a name will implicitly set this to true. - platform: esp32_rmt_led_strip id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 35 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml b/packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml index 2f476bd..6787b01 100644 --- a/packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml +++ b/packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.4 +# Updated : 2026.08.26 +# Version : 1.3.5 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -40,8 +40,6 @@ substitutions: mcp2515_cs_pin: '10' # talk_pin 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 @@ -81,7 +79,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: 38 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml b/packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml index a977b0b..c1b0327 100644 --- a/packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml +++ b/packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.6 +# Updated : 2026.08.26 +# Version : 1.3.7 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -40,8 +40,6 @@ substitutions: mcp2515_cs_pin: '10' # talk_pin 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 @@ -81,7 +79,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: 48 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_DevKitC-1_PVbrain2.yaml b/packages/board/board_ESP32-S3_DevKitC-1_PVbrain2.yaml index cc6ad86..d97b218 100644 --- a/packages/board/board_ESP32-S3_DevKitC-1_PVbrain2.yaml +++ b/packages/board/board_ESP32-S3_DevKitC-1_PVbrain2.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.7 +# Updated : 2026.08.26 +# Version : 1.3.8 # GitHub : https://github.com/SeByDocKy/pvbrain2 substitutions: @@ -37,8 +37,6 @@ substitutions: wk2168_i2c_scl: '40' # One Wire bus for Dallas Temperature Sensor 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 @@ -89,7 +87,7 @@ light: - platform: esp32_rmt_led_strip name: ${name}_on_board_light_io48 id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 48 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_Freenove.yaml b/packages/board/board_ESP32-S3_Freenove.yaml index 09001a9..b4b6042 100644 --- a/packages/board/board_ESP32-S3_Freenove.yaml +++ b/packages/board/board_ESP32-S3_Freenove.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.5 +# Updated : 2026.08.26 +# Version : 1.1.6 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -42,8 +42,6 @@ substitutions: spi_miso_pin: '12' # MISO # talk_pin 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 @@ -83,7 +81,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: 48 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_Generic.yaml b/packages/board/board_ESP32-S3_Generic.yaml index a952ce7..1fa12a5 100644 --- a/packages/board/board_ESP32-S3_Generic.yaml +++ b/packages/board/board_ESP32-S3_Generic.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.2 +# Updated : 2026.08.26 +# Version : 1.1.3 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -44,7 +44,6 @@ substitutions: talk_pin: '8' # ESP32: 4, ESP32-S3: 8, ESP32-C3: 10 # 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 @@ -84,7 +83,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: ${led_pin} num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro-Lite.yaml b/packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro-Lite.yaml index 3db8203..30839d0 100644 --- a/packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro-Lite.yaml +++ b/packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro-Lite.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.3 +# Updated : 2026.08.26 +# Version : 1.1.4 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -39,7 +39,6 @@ substitutions: lilygo_led_2: '3' lilygo_led_3: '21' lilygo_led_4: '41' - board_has_rgb: "true" # LED `RGB` flag to show functionality is available # buttons lilygo_btn_a: '39' lilygo_btn_b: '40' @@ -85,7 +84,7 @@ light: # RGB LED 1 - platform: esp32_rmt_led_strip id: esp_light_1 - rgb_order: GRB + channel_colors: GRB pin: ${lilygo_led_1} num_leds: 1 chipset: ws2812 @@ -95,7 +94,7 @@ light: # RGB LED 2 - platform: esp32_rmt_led_strip id: esp_light_2 - rgb_order: GRB + channel_colors: GRB pin: ${lilygo_led_2} num_leds: 1 chipset: ws2812 @@ -105,7 +104,7 @@ light: # RGB LED 3 - platform: esp32_rmt_led_strip id: esp_light_3 - rgb_order: GRB + channel_colors: GRB pin: ${lilygo_led_3} num_leds: 1 chipset: ws2812 @@ -115,7 +114,7 @@ light: # RGB LED 4 - platform: esp32_rmt_led_strip id: esp_light_4 - rgb_order: GRB + channel_colors: GRB pin: ${lilygo_led_4} num_leds: 1 chipset: ws2812 diff --git a/packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml b/packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml index 8283a99..59db925 100644 --- a/packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml +++ b/packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.1 +# Updated : 2026.08.26 +# Version : 1.2.2 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -45,8 +45,6 @@ substitutions: spi_miso_pin: "13" spi_clk_pin: "12" 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 diff --git a/packages/board/board_ESP32-S3_Super_Mini.yaml b/packages/board/board_ESP32-S3_Super_Mini.yaml index 0800306..ebfbba2 100644 --- a/packages/board/board_ESP32-S3_Super_Mini.yaml +++ b/packages/board/board_ESP32-S3_Super_Mini.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.5 +# Updated : 2026.08.26 +# Version : 1.1.6 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -42,8 +42,6 @@ substitutions: spi_miso_pin: '13' # talk_pin 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 @@ -83,7 +81,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: 48 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32-S3_XIAO.yaml b/packages/board/board_ESP32-S3_XIAO.yaml index f75a9f7..c283136 100644 --- a/packages/board/board_ESP32-S3_XIAO.yaml +++ b/packages/board/board_ESP32-S3_XIAO.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.0 +# Updated : 2026.08.26 +# Version : 1.2.1 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -38,8 +38,6 @@ substitutions: spi_miso_pin: '4' spi_clk_pin: '5' 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 diff --git a/packages/board/board_ESP32-S3_YBoard.yaml b/packages/board/board_ESP32-S3_YBoard.yaml index 36ab2db..b32c9a0 100644 --- a/packages/board/board_ESP32-S3_YBoard.yaml +++ b/packages/board/board_ESP32-S3_YBoard.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.7 +# Updated : 2026.08.26 +# Version : 1.1.8 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -33,8 +33,6 @@ substitutions: # canbus_esp32_can tx_pin_4: '17' 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 @@ -74,7 +72,7 @@ light: - platform: esp32_rmt_led_strip id: esp_light # name: ${name} ESP32 Light - rgb_order: GRB + channel_colors: GRB pin: 48 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32_Atom-Lite.yaml b/packages/board/board_ESP32_Atom-Lite.yaml index 58968dd..33fcbee 100644 --- a/packages/board/board_ESP32_Atom-Lite.yaml +++ b/packages/board/board_ESP32_Atom-Lite.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.5 +# Updated : 2026.08.26 +# Version : 1.3.6 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -43,8 +43,6 @@ substitutions: mcp2515_cs_pin: '25' # talk_pin 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 @@ -81,7 +79,7 @@ light: # Internal : only specifying an id without a name will implicitly set this to true. - platform: esp32_rmt_led_strip id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 27 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32_Atom-Matrix.yaml b/packages/board/board_ESP32_Atom-Matrix.yaml index e8e4d90..1b9297a 100644 --- a/packages/board/board_ESP32_Atom-Matrix.yaml +++ b/packages/board/board_ESP32_Atom-Matrix.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.5 +# Updated : 2026.08.26 +# Version : 1.3.6 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -43,8 +43,6 @@ substitutions: mcp2515_cs_pin: '25' # talk_pin 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 @@ -81,7 +79,7 @@ light: # Internal : only specifying an id without a name will implicitly set this to true. - platform: esp32_rmt_led_strip id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 27 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32_DevKit-V1.yaml b/packages/board/board_ESP32_DevKit-V1.yaml index 9be576b..bd1a039 100644 --- a/packages/board/board_ESP32_DevKit-V1.yaml +++ b/packages/board/board_ESP32_DevKit-V1.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.4 +# Updated : 2026.08.26 +# Version : 1.3.5 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -40,8 +40,6 @@ substitutions: mcp2515_cs_pin: '15' # talk_pin 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 diff --git a/packages/board/board_ESP32_DevKitC_espBerry_2-CH-CAN.yaml b/packages/board/board_ESP32_DevKitC_espBerry_2-CH-CAN.yaml index 4aba975..0f9b805 100644 --- a/packages/board/board_ESP32_DevKitC_espBerry_2-CH-CAN.yaml +++ b/packages/board/board_ESP32_DevKitC_espBerry_2-CH-CAN.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.9 +# Updated : 2026.08.26 +# Version : 1.2.0 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -20,8 +20,6 @@ substitutions: board_chip: "ESP32" 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 diff --git a/packages/board/board_ESP32_Generic.yaml b/packages/board/board_ESP32_Generic.yaml index 288cccb..ea3a4c2 100644 --- a/packages/board/board_ESP32_Generic.yaml +++ b/packages/board/board_ESP32_Generic.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.3.5 +# Updated : 2026.08.26 +# Version : 1.3.6 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -40,8 +40,6 @@ substitutions: mcp2515_cs_pin: '15' # talk_pin 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 diff --git a/packages/board/board_ESP32_LilyGo-T-CAN485.yaml b/packages/board/board_ESP32_LilyGo-T-CAN485.yaml index 2e443b2..a816f19 100644 --- a/packages/board/board_ESP32_LilyGo-T-CAN485.yaml +++ b/packages/board/board_ESP32_LilyGo-T-CAN485.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.0 +# Updated : 2026.08.26 +# Version : 1.2.1 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -41,8 +41,6 @@ substitutions: spi_miso_pin: '5' spi_clk_pin: '18' 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 @@ -83,7 +81,7 @@ light: # Internal : only specifying an id without a name will implicitly set this to true. - platform: esp32_rmt_led_strip id: esp_light - rgb_order: GRB + channel_colors: GRB pin: 4 num_leds: 1 # rmt_channel: 0 diff --git a/packages/board/board_ESP32_WT32-ETH01.yaml b/packages/board/board_ESP32_WT32-ETH01.yaml index 7d32bdb..ec8597f 100644 --- a/packages/board/board_ESP32_WT32-ETH01.yaml +++ b/packages/board/board_ESP32_WT32-ETH01.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.6 +# Updated : 2026.08.26 +# Version : 1.1.7 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -36,8 +36,6 @@ substitutions: # canbus_esp32_can tx_pin_4: '14' # to CAN transceiver CTX 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 diff --git a/packages/board/board_ESP32_iBMS_CAN_RS485_V3.3.yaml b/packages/board/board_ESP32_iBMS_CAN_RS485_V3.3.yaml index 4557638..d6b4757 100644 --- a/packages/board/board_ESP32_iBMS_CAN_RS485_V3.3.yaml +++ b/packages/board/board_ESP32_iBMS_CAN_RS485_V3.3.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.1.6 +# Updated : 2026.08.26 +# Version : 1.1.7 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -58,8 +58,6 @@ substitutions: spi_miso_pin: '12' spi_clk_pin: '14' 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 diff --git a/packages/board/board_options_led_control.yaml b/packages/board/board_options_led_control.yaml index ea5d598..ea90e1a 100644 --- a/packages/board/board_options_led_control.yaml +++ b/packages/board/board_options_led_control.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.02.03 -# Version : 1.1.3 +# Updated : 2026.08.26 +# Version : 1.1.4 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -199,6 +199,15 @@ interval: auto *led = kv.first; auto const &assigned_list = kv.second; + // Ask the light what it can actually do, rather than trusting a + // per-board flag. A `binary` light supports neither brightness nor + // RGB, a `monochromatic` one only brightness, an addressable strip + // both. Calling an unsupported setter is not fatal but logs a + // warning on every state change. + auto traits = led->get_traits(); + bool has_brightness = traits.supports_color_capability(esphome::light::ColorCapability::BRIGHTNESS); + bool has_rgb = traits.supports_color_capability(esphome::light::ColorCapability::RGB); + // Filter assigned items to find how many active faults exist int active_fault_count = 0; for (auto &pair : assigned_list) { @@ -352,8 +361,8 @@ interval: bool need_update = !ctx.last_valid || (ctx.last_state != target_state); if (!need_update && target_state) { // Only compare when on - if (ctx.last_bri != target_bri) need_update = true; - if (${board_has_rgb}) { + if (has_brightness && ctx.last_bri != target_bri) need_update = true; + if (has_rgb) { if (ctx.last_r != target_r || ctx.last_g != target_g || ctx.last_b != target_b) need_update = true; } } @@ -363,8 +372,8 @@ interval: auto call = led->make_call(); call.set_state(target_state); if (target_state) { - call.set_brightness(target_bri); - if (${board_has_rgb}) call.set_rgb(target_r, target_g, target_b); + if (has_brightness) call.set_brightness(target_bri); + if (has_rgb) call.set_rgb(target_r, target_g, target_b); } call.perform();