The sniffer packages load the JK RS485 components from the dev branch of Sleeper85/esphome-components (JK RS485 1.2) until it is tested and merged into main ; they will then go back to @main. JK RS485 1.2 removes the protocol_version key of jk_rs485_sniffer (the JK-PB RS485 protocol has only one version) and refuses it, while 1.1 requires it : both changes have to be made together. The sniffer packages no longer pass it, and the sniffer_protocol var is removed from the JK-B and JK-PB RS485 YAML and examples. A user YAML that still defines sniffer_protocol keeps working, the var is simply unused.
95 lines
4.0 KiB
YAML
95 lines
4.0 KiB
YAML
# Updated : 2026.11.11
|
|
# Version : 1.1.6
|
|
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
|
|
|
# YamBMS ( Yet another multi-BMS Merging Solution )
|
|
|
|
# This YAML is free software: you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, either version 3
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See the GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
|
|
|
############################ Remote Packages Example ###########################
|
|
|
|
# This is not a working YAML but just code ready to copy into
|
|
# your main YAML below the `packages:` section.
|
|
|
|
# packages:
|
|
# remote_packages:
|
|
# url: https://github.com/Sleeper85/esphome-yambms
|
|
# ref: main
|
|
# refresh: 60s
|
|
# files:
|
|
|
|
################################################################################
|
|
|
|
# RS485 Sniffer
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_sniffer.yaml'
|
|
vars:
|
|
sniffer_uart_id: 'uart_esp_1'
|
|
# uart_flow_control_pin: ${talk_pin} # WS-RS485-CAN and other RS485 boards with a flow_control_pin
|
|
# BMS 1
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '1' # must be a number
|
|
bms_name: 'JK-BMS 1'
|
|
bms_address: '0x01' # BMS 1 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 2
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '2' # must be a number
|
|
bms_name: 'JK-BMS 2'
|
|
bms_address: '0x02' # BMS 2 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 3
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '3' # must be a number
|
|
bms_name: 'JK-BMS 3'
|
|
bms_address: '0x03' # BMS 3 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 4
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '4' # must be a number
|
|
bms_name: 'JK-BMS 4'
|
|
bms_address: '0x04' # BMS 4 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 5
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '5' # must be a number
|
|
bms_name: 'JK-BMS 5'
|
|
bms_address: '0x05' # BMS 5 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 6
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '6' # must be a number
|
|
bms_name: 'JK-BMS 6'
|
|
bms_address: '0x06' # BMS 6 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 7
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '7' # must be a number
|
|
bms_name: 'JK-BMS 7'
|
|
bms_address: '0x07' # BMS 7 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|
|
# BMS 8
|
|
- path: 'packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml'
|
|
vars:
|
|
bms_id: '8' # must be a number
|
|
bms_name: 'JK-BMS 8'
|
|
bms_address: '0x08' # BMS 8 DIP switch
|
|
bms_status_led_id: 'esp_light' # LED used to show status; default = esp_light, comment out to disable
|