88 lines
2.3 KiB
YAML
88 lines
2.3 KiB
YAML
# Updated : 2026.02.15
|
|
# Version : 1.3.4
|
|
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
|
|
|
# YamBMS ( Yet another multi-BMS Merging Solution )
|
|
|
|
# This YAML is free software: you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, either version 3
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See the GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
|
|
|
substitutions:
|
|
board_chip: "ESP32"
|
|
board_name: "Generic"
|
|
# Interfaces GPIOs
|
|
# uart_esp_1
|
|
tx_pin_1: '17'
|
|
rx_pin_1: '16'
|
|
# uart_esp_2
|
|
tx_pin_2: '19'
|
|
rx_pin_2: '18'
|
|
# uart_esp_3
|
|
tx_pin_3: '26'
|
|
rx_pin_3: '25'
|
|
# canbus_esp32_can
|
|
tx_pin_4: '23'
|
|
rx_pin_4: '22'
|
|
# canbus_mcp2515
|
|
spi_mosi_pin: '13'
|
|
spi_miso_pin: '12'
|
|
spi_clk_pin: '14'
|
|
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
|
|
|
|
|
|
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: esp32
|
|
cpu_frequency: 240MHz
|
|
framework:
|
|
type: esp-idf
|
|
|
|
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"
|
|
|
|
# +--------------------------------------+
|
|
# | Inverter Heartbeat Light |
|
|
# +--------------------------------------+
|
|
|
|
light:
|
|
# ESP Light used to see the inverter heartbeat
|
|
# Internal : only specifying an id without a name will implicitly set this to true.
|
|
- platform: binary
|
|
output: esp_led
|
|
id: esp_light
|
|
|
|
output:
|
|
# ESP LED
|
|
- platform: gpio
|
|
pin: 2
|
|
id: esp_led
|
|
inverted: true |