diff --git a/YamBMS_RP_JK-BMS_RS485_Modbus_mode2.yaml b/YamBMS_RP_JK-BMS_RS485_Modbus_mode2.yaml new file mode 100644 index 0000000..0731265 --- /dev/null +++ b/YamBMS_RP_JK-BMS_RS485_Modbus_mode2.yaml @@ -0,0 +1,227 @@ +# Updated : 2025.04.01 +# Version : 1.5.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 . + +logger: + level: INFO # VERBOSE / DEBUG / INFO / WARN + +ota: + platform: esphome + +api: + reboot_timeout: 0s + +# Don't forget to configure your WiFi credentials in the secrets.yaml file +# +# If needed, configure a static IP here +# wifi: +# manual_ip: +# static_ip: 192.168.0.85 +# gateway: 192.168.0.1 +# subnet: 255.255.255.0 +# dns1: 8.8.8.8 +# dns2: 8.8.4.4 + +# +--------------------------------------+ +# | Global Settings | +# +--------------------------------------+ +substitutions: + name: yambms # ESP32 name / hostname + # +--------------------------------------+ + # | YamBMS Settings | + # +--------------------------------------+ + # Please read the cut-off charging logic README to understand how the YamBMS works + yambms_id: 'yambms1' + yambms_name: 'YamBMS 1' + yambms_update_interval: '1s' + # Input numbers can be displayed as a slider or an input box, options are 'slider' or 'box'. + yambms_input_number_mode: 'slider' + # Please check and fill in the options below correctly according to your battery chemistry and number of cells in series. + # These parameters are important and used for charging logic. + # Battery Chemistry + yambms_battery_chemistry: '1' # 1-LFP | 2-Li-ion | 3-LTO + # Number of cells in series + yambms_cell_count: '16' + # Bulk / Absorption Voltage : corresponds to the Bulk voltage that will be used to charge the battery. (LFP : 55.2V = 3.45V/Cell for 16S battery) + yambms_bulk_v: '55.2' + # Float Voltage : corresponds to the voltage at which the battery would be maintained at the end of charge. (LFP : 53.6V = 3.35V/Cell for 16S battery) + yambms_float_v: '53.6' + # Rebulk voltage, voltage from which a new Bulk charge can start. (LFP : 52.8V = 3.3V/Cell for 16S battery) + yambms_rebulk_v: '52.8' + # Maximum time in minutes that the cut-off step can last before charging is complete + # If your cells are properly balanced this step ends at the fastest after the `cut-off timer` + # This timer can be deactivated with a switch + yambms_eoc_timer: '30' + # Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing) + yambms_cutoff_timer: '60' + # Maximum charging cycles is used to calculate the battey SOH, LF280K v3 =8000.0, LF280K v2 =6000.0, LF280=3000.0 (decimal is required) + yambms_max_cycles: '6000.0' + # +--------------------------------------+ + # | Shunt Settings | + # +--------------------------------------+ + shunt_update_interval: '3s' # frequency at which Shunt data is refreshed + shunt_combine_interval: '1s' # frequency at which Shunt data is combined in YamBMS + # +--------------------------------------+ + # | BMS Settings | + # +--------------------------------------+ + bms_update_interval: '3s' # frequency at which BMS data is refreshed, going below '3s' can cause problems + bms_combine_interval: '1s' # frequency at which BMS data is combined in YamBMS + bms_cutoff_timer: '50s' # time during which the end of charge conditions must be respected (cut-off + cells not equalizing) + +# +--------------------------------------+ +# | Packages | +# +--------------------------------------+ +packages: + + ############### >>> UNCOMMENT YOUR BOARD <<< ############### + ############### >>> ONLY ONE BOARD ! <<< ############### + + board: + url: https://github.com/Sleeper85/esphome-yambms + ref: main + refresh: 0s + files: + # - path: 'packages/board/board_ESP32_DevKit-V1.yaml' + # - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml' + # - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml' + # - path: 'packages/board/board_ESP32-S3_DevKitC-1.yaml' + # - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml' + # - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml' + - path: 'packages/board/board_ESP32-S3_AtomS3.yaml' + vars: + display_auto_next_page_interval: '5s' + # - path: 'packages/board/board_ESP32-S3_AtomS3R.yaml' + # vars: + # display_auto_next_page_interval: '5s' + + ############################################################ + + bms: + url: https://github.com/Sleeper85/esphome-yambms + ref: main + refresh: 0s + files: + # RS485 Sniffer + - path: 'packages/bms/bms_combine_JK-PB_RS485_sniffer.yaml' + vars: + sniffer_id: 'sniffer1' + sniffer_protocol: 'JK02_32S' + sniffer_uart_id: 'uart_esp_1' + # BMS 1 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '1' # must be a number + bms_name: 'JK-BMS 1' + bms_address: '0x01' # BMS 1 DIP switch + # BMS 2 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '2' # must be a number + bms_name: 'JK-BMS 2' + bms_address: '0x02' # BMS 2 DIP switch + # BMS 3 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '3' # must be a number + bms_name: 'JK-BMS 3' + bms_address: '0x03' # BMS 3 DIP switch + # BMS 4 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '4' # must be a number + bms_name: 'JK-BMS 4' + bms_address: '0x04' # BMS 4 DIP switch + # BMS 5 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '5' # must be a number + bms_name: 'JK-BMS 5' + bms_address: '0x05' # BMS 5 DIP switch + # BMS 6 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '6' # must be a number + bms_name: 'JK-BMS 6' + bms_address: '0x06' # BMS 6 DIP switch + # BMS 7 + - path: 'packages/bms/bms_combine_JK-PB_RS485_bms_standard.yaml' + vars: + # Sniffer ID + sniffer_id: 'sniffer1' + # BMS vars + bms_id: '7' # must be a number + bms_name: 'JK-BMS 7' + bms_address: '0x07' # BMS 7 DIP switch + + yambms: + url: https://github.com/Sleeper85/esphome-yambms + ref: main + refresh: 0s + files: + - path: 'packages/yambms/yambms.yaml' + # - path: 'packages/yambms/yambms_custom.yaml' + + # Custom Local YAML + # yambms_custom: !include yambms_custom.yaml + + canbus1: + url: https://github.com/Sleeper85/esphome-yambms + ref: main + refresh: 0s + files: + - path: 'packages/yambms/yambms_canbus.yaml' + vars: + canbus_id: 'canbus1' + canbus_name: 'CANBUS 1' + canbus_node_id: 'canbus_node1' + canbus_light_id: 'esp_light' + # The CANBUS link will be considered down if no response from the inverter (ID 0x305) for 5s + # The Deye inverter sends the ACK (can_id 0x305) only when it receives the can_id 0x356 + canbus_link_timer: '5s' + +# +--------------------------------------+ +# | DEBUG ( logger level must be DEBUG ) | +# +--------------------------------------+ + + debug: + url: https://github.com/Sleeper85/esphome-yambms + ref: main + refresh: 0s + files: + - path: packages/base/device_debug_ESP32.yaml + vars: + debug_name: 'Debug' + debug_update_interval: '5s' diff --git a/yambms_remote_packages_example.yaml b/YamBMS_Remote_Packages_example.yaml similarity index 97% rename from yambms_remote_packages_example.yaml rename to YamBMS_Remote_Packages_example.yaml index 6049fa0..a841a8e 100644 --- a/yambms_remote_packages_example.yaml +++ b/YamBMS_Remote_Packages_example.yaml @@ -1,4 +1,4 @@ -# Updated : 2025.03.26 +# Updated : 2025.04.01 # Version : 1.5.4 # GitHub : https://github.com/Sleeper85/esphome-yambms @@ -17,6 +17,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# esp32: +# framework: +# type: esp-idf +# version: 4.4.8 +# platform_version: 5.4.0 + logger: level: INFO # VERBOSE / DEBUG / INFO / WARN @@ -135,7 +141,8 @@ packages: - path: 'packages/yambms/yambms.yaml' # - path: 'packages/yambms/yambms_custom.yaml' - # yambms_custom: !include packages/yambms/yambms_custom.yaml + # Custom Local YAML + # yambms_custom: !include yambms_custom.yaml canbus1: url: https://github.com/Sleeper85/esphome-yambms