Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06d2b0fda0 | ||
|
|
74e36b5a4f | ||
|
|
fa0f1960cc | ||
|
|
e6e31c165c | ||
|
|
b7c3eddee4 | ||
|
|
92ce28c041 | ||
|
|
9d9769a205 | ||
|
|
60c875df23 | ||
|
|
a10e0085d8 | ||
|
|
d487b756bf | ||
|
|
9b4596bc43 | ||
|
|
7a447450cc | ||
|
|
0ecc1df3e0 | ||
|
|
e9fee50967 | ||
|
|
39543e8b9f | ||
|
|
88c64f6ba4 | ||
|
|
27649631fb | ||
|
|
e5fc628957 | ||
|
|
e6896837de | ||
|
|
a353a63ade | ||
|
|
9c5a87fbe7 | ||
|
|
9ccbeb6b94 | ||
|
|
1d3a195d9a | ||
|
|
d9cddd2461 | ||
|
|
3f50bc224b | ||
|
|
777aa40339 | ||
|
|
37e65b3036 | ||
|
|
660ff99b5c | ||
|
|
214568c6ff | ||
|
|
665c25619c | ||
|
|
7547ddb780 | ||
|
|
6c4e710f45 | ||
|
|
a14452eb8e | ||
|
|
60291dee68 | ||
|
|
4a2f6aace1 | ||
|
|
dec2f7e4f8 | ||
|
|
4a8f60817d | ||
|
|
d727463717 | ||
|
|
d7ed15c557 | ||
|
|
1bc7bdfd67 | ||
|
|
5159e75d62 | ||
|
|
8afc7d1eb4 | ||
|
|
ee919ad1f0 | ||
|
|
95e0b240ca | ||
|
|
a4ccbde14a | ||
|
|
297eb96363 | ||
|
|
82fbdd29f2 | ||
|
|
0b9eb99e33 | ||
|
|
b312d3eb3e | ||
|
|
3209ec910b | ||
|
|
9da27a5a8b | ||
|
|
31260f3ace | ||
|
|
0c731d52fc | ||
|
|
afec9413dd | ||
|
|
a2da3ac19c | ||
|
|
afc259c62c | ||
|
|
c2943bac36 | ||
|
|
76ed9e0d48 | ||
|
|
f3e35028b8 | ||
|
|
e1dd4202ae | ||
|
|
1ea2e7d66f | ||
|
|
15179db113 | ||
|
|
83e74563b6 | ||
|
|
f858597a2b | ||
|
|
5c20e87f50 | ||
|
|
a67202a70f | ||
|
|
bdd8e234d9 | ||
|
|
6d56f796a1 | ||
|
|
76f6046961 | ||
|
|
7c7097fa0b | ||
|
|
86f39195e8 | ||
|
|
42973d9c9d | ||
|
|
592274bc59 | ||
|
|
ab04cc92db | ||
|
|
33056b2437 | ||
|
|
c1597bd502 | ||
|
|
d65226a1f9 | ||
|
|
558f1bfa47 | ||
|
|
1d71cf895e | ||
|
|
506e019d6f | ||
|
|
2284b7db51 | ||
|
|
cf874f0a0f | ||
|
|
e76a7b4695 | ||
|
|
844a74887e | ||
|
|
623c66839a | ||
|
|
726fafd79f | ||
|
|
e60f802a68 | ||
|
|
60ed5c132c | ||
|
|
cd9bd987df | ||
|
|
f7a39d6b55 | ||
|
|
cea0d98e62 | ||
|
|
ada25f475b | ||
|
|
d0f252265e | ||
|
|
308ec5f032 | ||
|
|
e9d1239c01 | ||
|
|
58c6429d9c | ||
|
|
9c747934a4 | ||
|
|
58c50ffe8b | ||
|
|
43d70f647f | ||
|
|
30d428c4fc | ||
|
|
b4887912af | ||
|
|
c9b12fbe87 | ||
|
|
060e44c07d | ||
|
|
c3b5f5f88a | ||
|
|
0272cea3ca | ||
|
|
64e4c7f0e0 | ||
|
|
7a1d68a3f3 | ||
|
|
1939298992 | ||
|
|
71a7643ca2 | ||
|
|
2a26d7822d | ||
|
|
492c81b9a3 | ||
|
|
45c9cd2efc | ||
|
|
124688e83f | ||
|
|
309b43b565 | ||
|
|
7a78cf5672 | ||
|
|
a11f2b75c8 | ||
|
|
c83d93874b | ||
|
|
c426efa321 | ||
|
|
0cabeeced8 | ||
|
|
75e2ac8155 | ||
|
|
7ca041c8c6 | ||
|
|
0834b934d7 | ||
|
|
679baa2068 | ||
|
|
197ecd0957 | ||
|
|
37d2b3b320 | ||
|
|
ce351bf7e8 | ||
|
|
2f53ed1eb2 | ||
|
|
9e9024225d | ||
|
|
a74a69a740 | ||
|
|
358a87ca2f | ||
|
|
2139aee6d8 | ||
|
|
f0b79ad78c | ||
|
|
a5ae54f8ad | ||
|
|
933003c4a9 |
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -398,16 +398,14 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soc')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soh')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -415,7 +413,7 @@ views:
|
||||
Cycle Capacity : <font color=#41CD52>12532 Ah</font><br>
|
||||
Ave. Cell Vol. : <font color=#41CD52>3.329 V</font><br>
|
||||
Balance Cur. : <font color=#41CD52>0.00 A</font><br>
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_1_max_temperature') }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
@@ -425,7 +423,7 @@ views:
|
||||
{{ states('sensor.yambms_demo_bms_1_charging_cycles') }}</font><br>
|
||||
Delta Cell Vol. : <font color=#41CD52>0.007 V</font><br>
|
||||
MOS temp. : <font color=#41CD52>25.6 °C</font><br>
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_1_min_temperature') }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
@@ -557,16 +555,14 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soc')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soh')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -574,7 +570,7 @@ views:
|
||||
Cycle Capacity : <font color=#41CD52>12532 Ah</font><br>
|
||||
Ave. Cell Vol. : <font color=#41CD52>3.329 V</font><br>
|
||||
Balance Cur. : <font color=#41CD52>0.00 A</font><br>
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_2_max_temperature') }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
@@ -584,7 +580,7 @@ views:
|
||||
{{ states('sensor.yambms_demo_bms_2_charging_cycles') }}</font><br>
|
||||
Delta Cell Vol. : <font color=#41CD52>0.007 V</font><br>
|
||||
MOS temp. : <font color=#41CD52>25.6 °C</font><br>
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_2_min_temperature') }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
@@ -716,16 +712,14 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soc')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soh')
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -733,7 +727,7 @@ views:
|
||||
Cycle Capacity : <font color=#41CD52>12532 Ah</font><br>
|
||||
Ave. Cell Vol. : <font color=#41CD52>3.329 V</font><br>
|
||||
Balance Cur. : <font color=#41CD52>0.00 A</font><br>
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
Max temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_3_max_temperature') }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
@@ -743,7 +737,7 @@ views:
|
||||
{{ states('sensor.yambms_demo_bms_3_charging_cycles') }}</font><br>
|
||||
Delta Cell Vol. : <font color=#41CD52>0.007 V</font><br>
|
||||
MOS temp. : <font color=#41CD52>25.6 °C</font><br>
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
Min temp. : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_3_min_temperature') }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.19
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.13
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -401,23 +401,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_1_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_1_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_1_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_1_cell_average_voltage') }}
|
||||
@@ -670,6 +670,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_1_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 2
|
||||
column_span: 1
|
||||
@@ -747,23 +754,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_2_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_2_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_2_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_2_cell_average_voltage') }}
|
||||
@@ -1016,6 +1023,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_2_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 3
|
||||
column_span: 1
|
||||
@@ -1093,23 +1107,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_3_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_3_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_3_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_3_cell_average_voltage') }}
|
||||
@@ -1362,6 +1376,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_3_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- title: Shunt
|
||||
type: sections
|
||||
max_columns: 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.19
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.13
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -401,23 +401,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_1_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_1_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_1_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_1_cell_average_voltage') }}
|
||||
@@ -670,6 +670,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_1_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 2
|
||||
column_span: 1
|
||||
@@ -747,23 +754,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_2_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_2_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_2_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_2_cell_average_voltage') }}
|
||||
@@ -1016,6 +1023,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_2_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 3
|
||||
column_span: 1
|
||||
@@ -1093,23 +1107,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_3_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_3_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_3_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_3_cell_average_voltage') }}
|
||||
@@ -1362,6 +1376,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_3_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 4
|
||||
column_span: 1
|
||||
@@ -1439,23 +1460,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_4_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_4_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_4_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_4_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_4_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_4_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_4_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_4_cell_average_voltage') }}
|
||||
@@ -1708,6 +1729,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_4_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 5
|
||||
column_span: 1
|
||||
@@ -1785,23 +1813,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_5_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_5_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_5_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_5_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_5_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_5_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_5_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_5_cell_average_voltage') }}
|
||||
@@ -2054,6 +2082,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_5_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 6
|
||||
column_span: 1
|
||||
@@ -2131,23 +2166,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_6_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_6_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_6_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_6_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_6_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_6_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_6_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_6_cell_average_voltage') }}
|
||||
@@ -2400,6 +2435,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_6_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 7
|
||||
column_span: 1
|
||||
@@ -2477,23 +2519,23 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_7_battery_capacity_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_7_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_7_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_7_battery_soh_valuation') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('number.yambms_jk_bms_7_battery_capacity_total_setting')
|
||||
}} Ah</font><br> Cycle Capacity : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_7_battery_capacity_total_charging_cycle')
|
||||
states('sensor.yambms_jk_bms_7_total_charging_cycle_capacity')
|
||||
}} Ah</font><br> Ave. Cell Vol. : <font
|
||||
color=#41CD52>{{
|
||||
states('sensor.yambms_jk_bms_7_cell_average_voltage') }}
|
||||
@@ -2746,6 +2788,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_7_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- title: Shunt
|
||||
type: sections
|
||||
max_columns: 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.19
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -401,16 +401,16 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_1_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_1_battery_soh') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -670,6 +670,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_1_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 2
|
||||
column_span: 1
|
||||
@@ -747,16 +754,16 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_2_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_2_battery_soh') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -1016,6 +1023,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_2_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- type: grid
|
||||
title: BMS 3
|
||||
column_span: 1
|
||||
@@ -1093,16 +1107,16 @@ views:
|
||||
cards:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>BMS SoC : <font
|
||||
<center><b><font size=4>SoC : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_state_of_charge') }}
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>Corrected SoC : <font
|
||||
<center><b><font size=4>SoH : <font
|
||||
color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_jk_bms_3_battery_soc') }}
|
||||
%</font></font>
|
||||
states('sensor.yambms_jk_bms_3_battery_soh') }}
|
||||
%</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
@@ -1362,6 +1376,13 @@ views:
|
||||
layout_options:
|
||||
grid_columns: 2
|
||||
grid_rows: 3
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: number.yambms_jk_bms_3_charging_cycles_offset
|
||||
name: Charging Cycles Offset
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
- title: Shunt
|
||||
type: sections
|
||||
max_columns: 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
> Examples of BMS and Shunt imports can be found in the [configuration_examples](configuration_examples/) folder.
|
||||
> You can mix different BMS models, the only condition is that they are numbered in order starting from `1`.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> The current code for `YamBMS` and other components needs to be fixed to work with `esphome 2025.5.0`.
|
||||
> This will be done as soon as I have more time to devote to it. In the meantime, you should compile with `esphome 2025.4.2` or lower.
|
||||
|
||||
> [!IMPORTANT]
|
||||
> The most important thing for proper functioning of YamBMS is that **the voltage of your BMS is well calibrated**.
|
||||
> YamBMS logic is based on the `min_cell_voltage` and `max_cell_voltage` voltages of your BMS.
|
||||
@@ -117,7 +113,7 @@ rx_pin: 22 # to CAN board CRX (with 4.7K resistor except for SN65HVD230)
|
||||
|
||||
## Requirements
|
||||
|
||||
* [ESPHome 2024.6.0 or higher](https://github.com/esphome/esphome/releases)
|
||||
* [ESPHome 2025.5.0 or higher](https://github.com/esphome/esphome/releases)
|
||||
* ESP32 MCU (buying a board with ≥8MB flash is advised if you intend to monitor multiple BMS)
|
||||
* CAN transceiver (only with TJA1050/TJA1051 => 4.7K resistor for 5V to 3V3 level shifing)
|
||||
* BMS JK, JBD, Seplos (other BMS brands already integrated with ESPhome can be added easily)
|
||||
@@ -128,7 +124,7 @@ rx_pin: 22 # to CAN board CRX (with 4.7K resistor except for SN65HVD230)
|
||||
## Data collection
|
||||
|
||||
> [!NOTE]
|
||||
> For your information, in May 2025 there were `94` YamBMS users.
|
||||
> For your information, in June 2025 there were `100` YamBMS users.
|
||||
|
||||
If the ESP32 has an internet connection, the following data is sent to [this script](http://script.opentel.be/yambms.post.php)
|
||||
for statistics collection. Only [@Sleeper85](https://github.com/Sleeper85) have access to this information for the production of statistics, the support and the update service.
|
||||
@@ -146,7 +142,19 @@ for statistics collection. Only [@Sleeper85](https://github.com/Sleeper85) have
|
||||
|
||||
## Changelog
|
||||
|
||||
|
||||
* YamBMS 1.5.6 :
|
||||
* Fixed [issue 58](https://github.com/Sleeper85/esphome-yambms/issues/58) Compilation problem with `esphome 2025.5.0`
|
||||
* Fixed [issue 55](https://github.com/Sleeper85/esphome-yambms/issues/55) New CPU frequency option
|
||||
* Fixed [issue 65](https://github.com/Sleeper85/esphome-yambms/issues/65) JBD Circular dependency error
|
||||
* Fixed [issue 35](https://github.com/Sleeper85/esphome-yambms/issues/35) BMS Charging Cycles Offset
|
||||
* Merged [PR 51](https://github.com/Sleeper85/esphome-yambms/pull/51) Support for RP2040 RPi Pico
|
||||
* Merged [PR 56](https://github.com/Sleeper85/esphome-yambms/pull/56) Add support for Basengreen BMS
|
||||
* Merged [PR 60](https://github.com/Sleeper85/esphome-yambms/pull/60) Fixes for new ESPHome and add of BMS Cycle Count offset
|
||||
* Merged [PR 61](https://github.com/Sleeper85/esphome-yambms/pull/61) Set Modbus BMS values to 0 when BMS goes offline
|
||||
* New `board_ESP32-S3_Touch-LCD-4.3.yaml` board
|
||||
* New `board_ESP32-S3_Touch-LCD-7.yaml` board
|
||||
* New `board_ESP32-S3_YBoard_DJK.yaml` board
|
||||
* New `board_RP2040_RPi_Pico.yaml` board
|
||||
* YamBMS 1.5.5 :
|
||||
* New `main.yaml` with LP (local packages) and RP (remote packages) versions
|
||||
* New `board.yaml` with modular UART/CAN interfaces
|
||||
|
||||
@@ -0,0 +1,221 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Local Packages Version #########################
|
||||
|
||||
# You need to copy the `packages` folder into the same folder as this YAML in order to compile it.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
#
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
# device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
uart_esp_1: !include packages/board/board_options_itf_uart_esp_1.yaml
|
||||
# uart_esp_2: !include packages/board/board_options_itf_uart_esp_2.yaml
|
||||
# uart_esp_3: !include packages/board/board_options_itf_uart_esp_3.yaml
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
canbus_node_1: !include
|
||||
file: packages/board/board_options_itf_canbus_esp32_can.yaml
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# canbus_node_2: !include
|
||||
# file: packages/board/board_options_itf_canbus_mcp2515.yaml
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# captive_portal: !include packages/board/board_options_captive_portal.yaml
|
||||
|
||||
############################################################
|
||||
|
||||
# Basen controller
|
||||
controller: !include
|
||||
file: packages/bms/bms_combine_BASEN_RS485_controller.yaml
|
||||
vars:
|
||||
basen_uart_id: 'uart_esp_1'
|
||||
basen_uart_baud_rate: '9600'
|
||||
basen_controller_id: "basen_controller_1"
|
||||
|
||||
# Basen module 1
|
||||
bms1: !include
|
||||
file: packages/bms/bms_combine_BASEN_RS485_full.yaml
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'BASEN-BMS 1'
|
||||
bms_address: '0x01'
|
||||
|
||||
# Basen module 2
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_BASEN_RS485_full.yaml
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'BASEN-BMS 2'
|
||||
bms_address: '0x02'
|
||||
|
||||
yambms: !include packages/yambms/yambms.yaml
|
||||
|
||||
canbus1: !include
|
||||
file: packages/yambms/yambms_canbus.yaml
|
||||
vars:
|
||||
canbus_id: 'canbus1'
|
||||
canbus_name: 'CANBUS 1'
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
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 ) |
|
||||
# +--------------------------------------+
|
||||
|
||||
device_debug: !include
|
||||
file: packages/base/device_debug_ESP32.yaml
|
||||
vars:
|
||||
debug_name: 'Debug'
|
||||
debug_update_interval: '5s'
|
||||
+27
-17
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -40,7 +40,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -131,20 +131,30 @@ packages:
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
device_board: !include packages/board/board_ESP32_Generic.yaml
|
||||
# device_board: !include packages/board/board_ESP32_DevKit-V1.yaml
|
||||
# device_board: !include packages/board/board_ESP32_LilyGo-T-CAN485.yaml
|
||||
# device_board: !include packages/board/board_ESP32_EVB.yaml
|
||||
# device_board: !include packages/board/board_ESP32_Atom-Lite.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_DevKitM-1.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_ETH01-EVO.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_AtomS3-Lite.yaml
|
||||
|
||||
device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: packages/board/board_ESP32-S3_AtomS3.yaml # board_ESP32-S3_AtomS3R.yaml
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
@@ -209,7 +219,7 @@ packages:
|
||||
bms_cell_uvp: '2.800' # V Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V Used by 'Auto CVL' functions
|
||||
bms_charging_cycles: '178' # charging cycles number Used to calculate the SoH
|
||||
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_FAKE.yaml
|
||||
vars:
|
||||
|
||||
+27
-15
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -40,7 +40,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -123,18 +123,30 @@ packages:
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
# device_board: !include packages/board/board_ESP32_Generic.yaml
|
||||
# device_board: !include packages/board/board_ESP32_DevKit-V1.yaml
|
||||
device_board: !include packages/board/board_ESP32_LilyGo-T-CAN485.yaml
|
||||
# device_board: !include packages/board/board_ESP32_EVB.yaml
|
||||
# device_board: !include packages/board/board_ESP32_Atom-Lite.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_ETH01-EVO.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_AtomS3-Lite.yaml
|
||||
|
||||
# device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: packages/board/board_ESP32-S3_AtomS3.yaml # board_ESP32-S3_AtomS3R.yaml
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
@@ -185,7 +197,7 @@ packages:
|
||||
bms_name: 'DEYE-BMS 1'
|
||||
deye_id: '1'
|
||||
deye_module_id: '0' # Modules are numbered with 0-9
|
||||
|
||||
|
||||
# Deye module 2
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_DEYE_CAN_module_full.yaml
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Local Packages Version #########################
|
||||
|
||||
# You need to copy the `packages` folder into the same folder as this YAML in order to compile it.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
#
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
uart_esp_1: !include packages/board/board_options_itf_uart_esp_1.yaml
|
||||
# uart_esp_2: !include packages/board/board_options_itf_uart_esp_2.yaml
|
||||
# uart_esp_3: !include packages/board/board_options_itf_uart_esp_3.yaml
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
canbus_node_1: !include
|
||||
file: packages/board/board_options_itf_canbus_esp32_can.yaml
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# canbus_node_2: !include
|
||||
# file: packages/board/board_options_itf_canbus_mcp2515.yaml
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms1: !include
|
||||
file: packages/bms/bms_combine_JBD_UART_full.yaml
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'BMS 1'
|
||||
bms_uart_id: 'uart_esp_1'
|
||||
bms_rx_timeout: '150ms'
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_JBD_BLE_full.yaml
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'BMS 2'
|
||||
bms_ble_mac_address: 'C8:47:8C:10:7E:AA' # Your MAC address
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
|
||||
yambms: !include packages/yambms/yambms.yaml
|
||||
|
||||
canbus1: !include
|
||||
file: packages/yambms/yambms_canbus.yaml
|
||||
vars:
|
||||
canbus_id: 'canbus1'
|
||||
canbus_name: 'CANBUS 1'
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
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 ) |
|
||||
# +--------------------------------------+
|
||||
|
||||
device_debug: !include
|
||||
file: packages/base/device_debug_ESP32.yaml
|
||||
vars:
|
||||
debug_name: 'Debug'
|
||||
debug_update_interval: '5s'
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -40,7 +40,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -131,20 +131,30 @@ packages:
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
# device_board: !include packages/board/board_ESP32_Generic.yaml
|
||||
# device_board: !include packages/board/board_ESP32_DevKit-V1.yaml
|
||||
# device_board: !include packages/board/board_ESP32_LilyGo-T-CAN485.yaml
|
||||
# device_board: !include packages/board/board_ESP32_EVB.yaml
|
||||
# device_board: !include packages/board/board_ESP32_Atom-Lite.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_DevKitM-1.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_ETH01-EVO.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml
|
||||
device_board: !include packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_AtomS3-Lite.yaml
|
||||
|
||||
# device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: packages/board/board_ESP32-S3_AtomS3.yaml # board_ESP32-S3_AtomS3R.yaml
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
@@ -178,6 +188,14 @@ packages:
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
# The sniffer represents the ESP node connected to the JK-BMS PB RS485 bus
|
||||
# If address 0x00 is not detected on the RS485 bus, the sniffer will act directly as a master BMS (mode 2, max 15 BMS)
|
||||
|
||||
@@ -206,7 +224,7 @@ packages:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'JK-BMS 1'
|
||||
bms_address: '0x01' # BMS 1 DIP switch
|
||||
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml
|
||||
vars:
|
||||
@@ -236,7 +254,7 @@ packages:
|
||||
bms_id: '4' # must be a number
|
||||
bms_name: 'JK-BMS 4'
|
||||
bms_address: '0x04' # BMS 4 DIP switch
|
||||
|
||||
|
||||
bms5: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml
|
||||
vars:
|
||||
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -40,7 +40,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -112,14 +112,14 @@ substitutions:
|
||||
# +--------------------------------------+
|
||||
# | WK2168 UART expander |
|
||||
# +--------------------------------------+
|
||||
uart0_baudrate: '2400' #WKS {RJ45-UART0}
|
||||
uart0_baudrate: '2400' #WKS {RJ45-UART0}
|
||||
uart1_baudrate: '38400' #JSY193
|
||||
uart2_baudrate: '19200' #SmartShunt
|
||||
uart3_baudrate: '9600' #SRNE {RJ45-UART3}
|
||||
uart3_baudrate: '9600' #SRNE {RJ45-UART3}
|
||||
uart4_baudrate: '115200' #JK-BMS 1
|
||||
uart5_baudrate: '115200' #JK-BMS 2
|
||||
uart6_baudrate: '115200' #Pylontech
|
||||
uart7_baudrate: '9600' #EPEVER {RJ45-UART7}
|
||||
uart7_baudrate: '9600' #EPEVER {RJ45-UART7}
|
||||
|
||||
# +--------------------------------------+
|
||||
# | PVbrain2 packages |
|
||||
@@ -157,12 +157,12 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
shunt1: !include
|
||||
file: packages/shunt/shunt_combine_Victron_SmartShunt_UART_expander.yaml # shunt_combine_Junctek_KHF_UART.yaml
|
||||
vars:
|
||||
shunt_id: '1' # must be a number
|
||||
shunt_name: 'Shunt 1'
|
||||
shunt_uart_id: 'uart_${uart_hub_bus}_2'
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_UART_expander.yaml # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_${uart_hub_bus}_2'
|
||||
|
||||
bms1: !include
|
||||
file: packages/bms/bms_combine_JK_UART_4G-GPS_full.yaml
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
# Updated : 2025.06.19
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Local Packages Version #########################
|
||||
|
||||
# You need to copy the `packages` folder into the same folder as this YAML in order to compile it.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | Shunt Settings |
|
||||
# +--------------------------------------+
|
||||
shunt_update_interval: '5s' # frequency at which Shunt data is refreshed
|
||||
shunt_combine_interval: '1s' # frequency at which Shunt data is combined in YamBMS
|
||||
# +--------------------------------------+
|
||||
# | Modbus Settings |
|
||||
# +--------------------------------------+
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Packages |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
############################################################
|
||||
|
||||
device_board: !include packages/board/board_RP2040_RPi_Pico.yaml
|
||||
|
||||
uart_1: !include packages/board/board_options_itf_uart_1.yaml
|
||||
uart_2: !include packages/board/board_options_itf_uart_2.yaml
|
||||
uart_3: !include packages/board/board_options_itf_uart_3.yaml
|
||||
uart_4: !include packages/board/board_options_itf_uart_4.yaml
|
||||
uart_5: !include packages/board/board_options_itf_uart_5.yaml
|
||||
uart_6: !include packages/board/board_options_itf_uart_6.yaml
|
||||
|
||||
modbus: !include
|
||||
file: packages/base/device_modbus.yaml
|
||||
vars:
|
||||
modbus_role: 'server' # client / server
|
||||
modbus_uart_id: 'uart_1' # RS485 board
|
||||
|
||||
shunt1: !include
|
||||
file: packages/shunt/shunt_modbus_Victron_SmartShunt_UART_minimal.yaml
|
||||
vars:
|
||||
shunt_id: '1'
|
||||
shunt_name: 'Shunt 1'
|
||||
shunt_uart_id: 'uart_2'
|
||||
|
||||
shunt2: !include
|
||||
file: packages/shunt/shunt_modbus_Victron_SmartShunt_UART_minimal.yaml
|
||||
vars:
|
||||
shunt_id: '2'
|
||||
shunt_name: 'Shunt 2'
|
||||
shunt_uart_id: 'uart_3'
|
||||
|
||||
shunt3: !include
|
||||
file: packages/shunt/shunt_modbus_Victron_SmartShunt_UART_minimal.yaml
|
||||
vars:
|
||||
shunt_id: '3'
|
||||
shunt_name: 'Shunt 3'
|
||||
shunt_uart_id: 'uart_4'
|
||||
|
||||
shunt4: !include
|
||||
file: packages/shunt/shunt_modbus_Victron_SmartShunt_UART_minimal.yaml
|
||||
vars:
|
||||
shunt_id: '4'
|
||||
shunt_name: 'Shunt 4'
|
||||
shunt_uart_id: 'uart_5'
|
||||
|
||||
shunt5: !include
|
||||
file: packages/shunt/shunt_modbus_Victron_SmartShunt_UART_minimal.yaml
|
||||
vars:
|
||||
shunt_id: '5'
|
||||
shunt_name: 'Shunt 5'
|
||||
shunt_uart_id: 'uart_6'
|
||||
@@ -0,0 +1,205 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Local Packages Version #########################
|
||||
|
||||
# You need to copy the `packages` folder into the same folder as this YAML in order to compile it.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
#
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
#web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# ESP32 name / hostname
|
||||
name: ''
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS'
|
||||
# +--------------------------------------+
|
||||
# | 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: '60'
|
||||
# Time in seconds during which the end of charge conditions must be respected (cut-off + cells not equalizing)
|
||||
yambms_cutoff_timer: '300'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
device_board: !include packages/board/board_ESP32-S3_YBoard.yaml
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
uart_esp_1: !include packages/board/board_options_itf_uart_esp_1.yaml
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
canbus_node_1: !include
|
||||
file: packages/board/board_options_itf_canbus_esp32_can.yaml
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
shunt1: !include
|
||||
file: packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml
|
||||
vars:
|
||||
shunt_id: '1' # must be a number
|
||||
shunt_name: 'Shunt'
|
||||
shunt_mac_address: 'c0960b5d8cba'
|
||||
shunt_encryption_key: '1e196f635d4e5b0777afa79b47904937'
|
||||
|
||||
sniffer1: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_sniffer.yaml
|
||||
vars:
|
||||
sniffer_id: 'sniffer1'
|
||||
sniffer_protocol: 'JK02_32S'
|
||||
sniffer_uart_id: 'uart_esp_1'
|
||||
|
||||
# Mode2 : configure the DIP switches of your BMS from 0x01 to 0x0F (don't use the 0x00 address, maximum 15 BMS)
|
||||
bms1: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_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
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_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
|
||||
|
||||
yambms: !include packages/yambms/yambms.yaml
|
||||
|
||||
canbus1: !include
|
||||
file: packages/yambms/yambms_canbus.yaml
|
||||
vars:
|
||||
canbus_id: 'canbus1'
|
||||
canbus_name: 'CANBUS 1'
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
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 ) |
|
||||
# +--------------------------------------+
|
||||
|
||||
device_debug: !include
|
||||
file: packages/base/device_debug_ESP32.yaml
|
||||
vars:
|
||||
debug_name: 'Debug'
|
||||
debug_update_interval: '5s'
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -40,7 +40,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -131,20 +131,30 @@ packages:
|
||||
|
||||
# This list is incomplete, other board.yaml are available in the board folder
|
||||
|
||||
device_board: !include packages/board/board_ESP32_Generic.yaml
|
||||
# device_board: !include packages/board/board_ESP32_DevKit-V1.yaml
|
||||
# device_board: !include packages/board/board_ESP32_LilyGo-T-CAN485.yaml
|
||||
# device_board: !include packages/board/board_ESP32_EVB.yaml
|
||||
# device_board: !include packages/board/board_ESP32_Atom-Lite.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_DevKitM-1.yaml
|
||||
# device_board: !include packages/board/board_ESP32-C3_ETH01-EVO.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml
|
||||
# device_board: !include packages/board/board_ESP32-S3_AtomS3-Lite.yaml
|
||||
|
||||
device_board: !include 'packages/board/board_ESP32_Generic.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_EVB.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# device_board: !include 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# device_board: !include
|
||||
# file: packages/board/board_ESP32-S3_AtomS3.yaml # board_ESP32-S3_AtomS3R.yaml
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# device_board: !include
|
||||
# file: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
@@ -171,12 +181,20 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
shunt1: !include
|
||||
file: packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml # shunt_combine_Junctek_KHF_UART.yaml
|
||||
vars:
|
||||
shunt_id: '1' # must be a number
|
||||
shunt_name: 'Shunt 1'
|
||||
shunt_uart_id: 'uart_esp_3'
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# shunt1: !include
|
||||
# file: packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms1: !include
|
||||
file: packages/bms/bms_combine_JK_UART_4G-GPS_full.yaml
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Remote Packages Version ########################
|
||||
|
||||
# You can compile this YAML directly without the `packages` folder.
|
||||
# The packages will be automatically downloaded from GitHub.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
board:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# - path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
- path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# UART 1
|
||||
- path: 'packages/board/board_options_itf_uart_esp_1.yaml'
|
||||
# UART 2
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_2.yaml'
|
||||
# UART 3
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_3.yaml'
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# Basen controller
|
||||
- path: packages/bms/bms_combine_BASEN_RS485_controller.yaml
|
||||
vars:
|
||||
basen_uart_id: 'uart_esp_1'
|
||||
basen_uart_baud_rate: '9600'
|
||||
basen_controller_id: "basen_controller_1"
|
||||
# Basen module 1
|
||||
- path: packages/bms/bms_combine_BASEN_RS485_full.yaml
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'BASEN-BMS 1'
|
||||
bms_address: '0x01'
|
||||
# Basen module 2
|
||||
- path: packages/bms/bms_combine_BASEN_RS485_full.yaml
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'BASEN-BMS 2'
|
||||
bms_address: '0x02'
|
||||
|
||||
yambms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/yambms/yambms.yaml'
|
||||
|
||||
canbus:
|
||||
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_inverter_1'
|
||||
canbus_light_id: 'esp_light'
|
||||
# The CANBUS link will be considered down if no response from the inverter (0x305 frame) for 5s
|
||||
# The Deye inverter sends the ACK 0x305 only when it receives the 0x356 frame.
|
||||
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'
|
||||
+22
-7
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -39,7 +39,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -135,15 +135,19 @@ packages:
|
||||
files:
|
||||
- path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.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_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
@@ -155,6 +159,17 @@ packages:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
@@ -175,7 +190,7 @@ packages:
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
|
||||
@@ -0,0 +1,303 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Remote Packages Version ########################
|
||||
|
||||
# You can compile this YAML directly without the `packages` folder.
|
||||
# The packages will be automatically downloaded from GitHub.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
board:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# UART 1
|
||||
- path: 'packages/board/board_options_itf_uart_esp_1.yaml'
|
||||
# UART 2
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_2.yaml'
|
||||
# UART 3
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_3.yaml'
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# BMS 1
|
||||
- path: 'packages/bms/bms_combine_JBD_UART_full.yaml'
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'BMS 1'
|
||||
bms_uart_id: 'uart_esp_1'
|
||||
bms_rx_timeout: '150ms'
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
# BMS 2
|
||||
- path: 'packages/bms/bms_combine_JBD_BLE_full.yaml'
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'BMS 2'
|
||||
bms_ble_mac_address: 'C8:47:8C:10:7E:AA' # Your MAC address
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
|
||||
yambms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/yambms/yambms.yaml'
|
||||
|
||||
canbus:
|
||||
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_inverter_1'
|
||||
canbus_light_id: 'esp_light'
|
||||
# The CANBUS link will be considered down if no response from the inverter (0x305 frame) for 5s
|
||||
# The Deye inverter sends the ACK 0x305 only when it receives the 0x356 frame.
|
||||
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'
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -39,7 +39,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -135,15 +135,19 @@ packages:
|
||||
files:
|
||||
# - path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.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_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
@@ -155,6 +159,17 @@ packages:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
@@ -173,7 +188,7 @@ packages:
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
@@ -183,6 +198,7 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
@@ -195,6 +211,20 @@ packages:
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -39,7 +39,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -135,15 +135,19 @@ packages:
|
||||
files:
|
||||
# - path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.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_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
@@ -155,6 +159,17 @@ packages:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
@@ -173,7 +188,7 @@ packages:
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
@@ -183,6 +198,7 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
@@ -195,6 +211,20 @@ packages:
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
|
||||
@@ -0,0 +1,302 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Remote Packages Version ########################
|
||||
|
||||
# You can compile this YAML directly without the `packages` folder.
|
||||
# The packages will be automatically downloaded from GitHub.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
board:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# UART 1
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_1.yaml'
|
||||
# UART 2
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_2.yaml'
|
||||
# UART 3
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_3.yaml'
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_1'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# BMS 1
|
||||
- path: 'packages/bms/bms_combine_JK_BLE_standard.yaml'
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'JK-BMS 1'
|
||||
bms_ble_protocol_version: 'JK02_32S' # JK02_24S < hardware version 11.0 >= JK02_32S
|
||||
bms_ble_mac_address: 'C8:47:8C:10:7E:AA'
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
# BMS 2
|
||||
- path: 'packages/bms/bms_combine_JK_BLE_standard.yaml'
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'JK-BMS 2'
|
||||
bms_ble_protocol_version: 'JK02_32S' # JK02_24S < hardware version 11.0 >= JK02_32S
|
||||
bms_ble_mac_address: 'C8:47:8C:EE:16:EA'
|
||||
# Maximum cell charging cycles is used to calculate the battey SoH.
|
||||
# MB31=8000.0, LF280K v3=8000.0, LF280K v2=6000.0, LF280=3000.0 (decimal is required)
|
||||
bms_cell_max_cycles: '6000.0'
|
||||
|
||||
# bms_options:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # BMS 1
|
||||
# - path: 'packages/bms/bms_options_charging_logic.yaml'
|
||||
# vars:
|
||||
# bms_id: '1' # must be a number
|
||||
# # BMS 2
|
||||
# - path: 'packages/bms/bms_options_charging_logic.yaml'
|
||||
# vars:
|
||||
# bms_id: '2' # must be a number
|
||||
|
||||
yambms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/yambms/yambms.yaml'
|
||||
|
||||
canbus:
|
||||
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_inverter_1'
|
||||
canbus_light_id: 'esp_light'
|
||||
# The CANBUS link will be considered down if no response from the inverter (0x305 frame) for 5s
|
||||
# The Deye inverter sends the ACK 0x305 only when it receives the 0x356 frame.
|
||||
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'
|
||||
+17
-17
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -39,7 +39,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -111,14 +111,14 @@ substitutions:
|
||||
# +--------------------------------------+
|
||||
# | WK2168 UART expander |
|
||||
# +--------------------------------------+
|
||||
uart0_baudrate: '2400' #WKS {RJ45-UART0}
|
||||
uart0_baudrate: '2400' #WKS {RJ45-UART0}
|
||||
uart1_baudrate: '38400' #JSY193
|
||||
uart2_baudrate: '19200' #SmartShunt
|
||||
uart3_baudrate: '9600' #SRNE {RJ45-UART3}
|
||||
uart3_baudrate: '9600' #SRNE {RJ45-UART3}
|
||||
uart4_baudrate: '115200' #JK-BMS 1
|
||||
uart5_baudrate: '115200' #JK-BMS 2
|
||||
uart6_baudrate: '115200' #Pylontech
|
||||
uart7_baudrate: '9600' #EPEVER {RJ45-UART7}
|
||||
uart7_baudrate: '9600' #EPEVER {RJ45-UART7}
|
||||
|
||||
# +--------------------------------------+
|
||||
# | PVbrain2 packages |
|
||||
@@ -161,17 +161,17 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
shunt:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# Shunt 1
|
||||
- path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART_expander.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
vars:
|
||||
shunt_id: '1' # must be a number
|
||||
shunt_name: 'Shunt 1'
|
||||
shunt_uart_id: 'uart_${uart_hub_bus}_2'
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART_expander.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_${uart_hub_bus}_2'
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -0,0 +1,312 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.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>.
|
||||
|
||||
######################## YamBMS Remote Packages Version ########################
|
||||
|
||||
# You can compile this YAML directly without the `packages` folder.
|
||||
# The packages will be automatically downloaded from GitHub.
|
||||
# Don't forget to configure your WiFi credentials in the secrets.yaml
|
||||
|
||||
################################################################################
|
||||
|
||||
# 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
|
||||
|
||||
logger:
|
||||
level: INFO # VERBOSE / DEBUG / INFO / WARN
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
# The "reboot_timeout: 0s" option will keep your ESP32 up and running even if you lose connection to your HA server.
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
# If you don't want to use ESPHome's native API you can use MQTT instead.
|
||||
# In this case don't forget to remove the 'api:' section.
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_host
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# id: mqtt_client
|
||||
|
||||
# Please note that enabling this component will take up a lot of memory and may decrease
|
||||
# stability and be the cause of reboot depending on the capabilities of the board used.
|
||||
# web_server:
|
||||
# port: 80
|
||||
# log: false
|
||||
# ota: false
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Global Settings |
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'yambms' # This is the name of the node. It should always be unique in your ESPHome network.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of all entity names and also to classify them.
|
||||
# +--------------------------------------+
|
||||
# | 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'
|
||||
# +--------------------------------------+
|
||||
# | 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 |
|
||||
# +--------------------------------------+
|
||||
|
||||
# PLEASE READ : https://github.com/Sleeper85/esphome-yambms/blob/main/documents/README/YamBMS_main_YAML_HowTo.md
|
||||
|
||||
packages:
|
||||
|
||||
################ >>> CONFIG & CUSTOM LP <<< ################
|
||||
|
||||
# Local Packages intended for creating custom codes
|
||||
# or sharing settings between several main.yaml
|
||||
|
||||
# yambms_config: !include yambms_config.yaml
|
||||
# yambms_custom: !include yambms_custom.yaml
|
||||
|
||||
############### >>> UNCOMMENT YOUR BOARD <<< ###############
|
||||
############### >>> ONLY ONE BOARD ! <<< ###############
|
||||
|
||||
board:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3R.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# UART 1
|
||||
- path: 'packages/board/board_options_itf_uart_esp_1.yaml'
|
||||
# UART 2
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_2.yaml'
|
||||
# UART 3
|
||||
# - path: 'packages/board/board_options_itf_uart_esp_3.yaml'
|
||||
|
||||
# ESP32_CAN (TJA105x, SN65HVD230, M5Stack CAN base/unit)
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
# canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
############################################################
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# Seplos Modbus 1
|
||||
- path: 'packages/bms/bms_combine_SEPLOS_V1_V2_RS485_modbus.yaml'
|
||||
vars:
|
||||
seplos_modbus_id: 'seplos_modbus1'
|
||||
seplos_modbus_uart_id: 'uart_esp_1'
|
||||
seplos_modbus_baud_rate: '9600' # 9600 / 19200 ; please set the baudrate of your Seplos BMS model here
|
||||
seplos_modbus_rx_timeout: '150ms'
|
||||
# BMS 1
|
||||
- path: 'packages/bms/bms_combine_SEPLOS_V1_V2_RS485_bms_full.yaml'
|
||||
vars:
|
||||
# Seplos modbus ID
|
||||
seplos_modbus_id: 'seplos_modbus1'
|
||||
# BMS vars
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'BMS 1'
|
||||
bms_address: '0x01' # BMS 1 DIP switch
|
||||
bms_protocol_version: '0x20' # Known protocol versions: 0x20 (Seplos), 0x26 (Boqiang)
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
# BMS 2
|
||||
- path: 'packages/bms/bms_combine_SEPLOS_V1_V2_RS485_bms_full.yaml'
|
||||
vars:
|
||||
# Seplos modbus ID
|
||||
seplos_modbus_id: 'seplos_modbus1'
|
||||
# BMS vars
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'BMS 2'
|
||||
bms_address: '0x02' # BMS 2 DIP switch
|
||||
bms_protocol_version: '0x20' # Known protocol versions: 0x20 (Seplos), 0x26 (Boqiang)
|
||||
bms_uart_id: uart_esp_2
|
||||
# Required settings cannot be retrieved from BMS
|
||||
# These values must match your BMS settings
|
||||
# LFP values example
|
||||
bms_max_charge_current: '100' # A. Used to calculate maximum charge current
|
||||
bms_max_discharge_current: '100' # A. Used to calculate maximum discharge current
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
|
||||
yambms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
- path: 'packages/yambms/yambms.yaml'
|
||||
|
||||
canbus:
|
||||
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_inverter_1'
|
||||
canbus_light_id: 'esp_light'
|
||||
# The CANBUS link will be considered down if no response from the inverter (0x305 frame) for 5s
|
||||
# The Deye inverter sends the ACK 0x305 only when it receives the 0x356 frame.
|
||||
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'
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.13
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -39,7 +39,7 @@ logger:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
|
||||
# Please use the native `api` component instead of the `mqtt` section.
|
||||
# If you use Home Assistant, the native API is more lightweight.
|
||||
# If there is no HA server connected to this API, the ESP32 reboots every 15 minutes to try to resolve the problem.
|
||||
@@ -135,15 +135,19 @@ packages:
|
||||
files:
|
||||
- path: 'packages/board/board_ESP32_Generic.yaml'
|
||||
# - path: 'packages/board/board_ESP32_DevKit-V1.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_Atom-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32_EVB.yaml'
|
||||
# - path: 'packages/board/board_ESP32_LilyGo-T-CAN485.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_DevKitM-1.yaml'
|
||||
# - path: 'packages/board/board_ESP32-C3_ETH01-EVO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3-Lite.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-38.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_DevKitC-1_LED-48.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_Touch-LCD-4.3.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_Touch-LCD-7.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_XIAO.yaml'
|
||||
# - path: 'packages/board/board_ESP32-S3_YBoard.yaml'
|
||||
|
||||
# - path: 'packages/board/board_ESP32-S3_AtomS3.yaml'
|
||||
# vars:
|
||||
@@ -155,6 +159,17 @@ packages:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
# display_rotation: '0' # 0/90/180/270 rotation angle in degrees
|
||||
|
||||
# LilyGo T-Connect Pro
|
||||
# Importing the display also activates PSRAM.
|
||||
# Also note that the display update takes about 120 ms, as indicated in the logs:
|
||||
# "Component display took a long time for an operation (124 ms)."
|
||||
# Board
|
||||
# - path: 'packages/board/board_ESP32-S3_LilyGo-T-Connect-Pro.yaml'
|
||||
# Display
|
||||
# - path: 'packages/board/board_options_display_480x222.yaml'
|
||||
# vars:
|
||||
# display_auto_next_page_interval: '5s'
|
||||
|
||||
########### >>> UNCOMMENT YOUR BOARD OPTIONS <<< ###########
|
||||
|
||||
board_options:
|
||||
@@ -173,7 +188,7 @@ packages:
|
||||
- path: 'packages/board/board_options_itf_canbus_esp32_can.yaml'
|
||||
vars:
|
||||
canbus_node_id: 'canbus_inverter_1'
|
||||
|
||||
|
||||
# MCP2515
|
||||
# - path: 'packages/board/board_options_itf_canbus_mcp2515.yaml'
|
||||
# vars:
|
||||
@@ -183,17 +198,32 @@ packages:
|
||||
|
||||
# You don't have to import a shunt but you must import at least one BMS.
|
||||
|
||||
shunt:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
ref: main
|
||||
refresh: 0s
|
||||
files:
|
||||
# Shunt 1
|
||||
- path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
vars:
|
||||
shunt_id: '1' # must be a number
|
||||
shunt_name: 'Shunt 1'
|
||||
shunt_uart_id: 'uart_esp_3'
|
||||
# UART Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_UART.yaml' # shunt_combine_Junctek_KHF_UART.yaml
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_uart_id: 'uart_esp_3'
|
||||
|
||||
# BLE Shunt
|
||||
# shunt:
|
||||
# url: https://github.com/Sleeper85/esphome-yambms
|
||||
# ref: main
|
||||
# refresh: 0s
|
||||
# files:
|
||||
# # Shunt 1
|
||||
# - path: 'packages/shunt/shunt_combine_Victron_SmartShunt_BLE.yaml'
|
||||
# vars:
|
||||
# shunt_id: '1' # must be a number
|
||||
# shunt_name: 'Shunt 1'
|
||||
# shunt_mac_address: '60:A4:23:91:8F:55' # Your MAC address
|
||||
# shunt_encryption_key: '0df4d0395b7d1a876c0c33ecb9e70dcd' # Your encryption key
|
||||
|
||||
bms:
|
||||
url: https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -53,7 +53,7 @@ packages:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'JK-BMS 1'
|
||||
bms_address: '0x01' # BMS 1 DIP switch
|
||||
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml
|
||||
vars:
|
||||
@@ -83,7 +83,7 @@ packages:
|
||||
bms_id: '4' # must be a number
|
||||
bms_name: 'JK-BMS 4'
|
||||
bms_address: '0x04' # BMS 4 DIP switch
|
||||
|
||||
|
||||
bms5: !include
|
||||
file: packages/bms/bms_combine_JK_RS485_Modbus_bms_standard.yaml
|
||||
vars:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -51,7 +51,7 @@ packages:
|
||||
bms_cell_ovp: '3.650' # V. Used by 'Auto CCL' functions
|
||||
bms_cell_uvp: '2.800' # V. Used by 'Auto DCL' functions and to calculate maximum discharge voltage
|
||||
bms_balance_trigger_voltage: '0.010' # V. Used by 'Auto CVL' functions
|
||||
|
||||
|
||||
bms2: !include
|
||||
file: packages/bms/bms_combine_SEPLOS_V1_V2_RS485_bms_full.yaml
|
||||
vars:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
@@ -66,7 +66,7 @@ packages:
|
||||
# vars:
|
||||
# bms_id: '4' # must be a number
|
||||
# bms_name: 'BMS 4'
|
||||
|
||||
|
||||
# bms5: !include
|
||||
# file: packages/bms/bms_combine_modbus_client.yaml
|
||||
# vars:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
substitutions:
|
||||
modbus_update_interval: '5s' # frequency with which BMS/Shunt modbus servers are queried
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 11520
|
||||
modbus_baud_rate: '19200' # 9600 / 19200 / 115200
|
||||
modbus_command_throttle: '0ms' # minimum time in between 2 requests to the device
|
||||
modbus_send_wait_time: '250ms' # time in milliseconds before the next ModBUS command is sent if an answer from a previous command is pending
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ The `GPS` port sometimes called `RS485` is not an `RS485` port but `3V3 UART-TTL
|
||||
│ O O O O │
|
||||
│GND RX TX VBAT│
|
||||
└────────────────┘
|
||||
│ │ │ └ VBAT is full battery volatge eg. 56V (possible to use it via an isolated DC-DC converter)
|
||||
│ │ │ └ VBAT is full battery voltage eg. 56V (possible to use it via an isolated DC-DC converter)
|
||||
│ │ └──── TX to TTL-isolator AI (input)
|
||||
│ └──────── RX to TTL-isolator AO (output)
|
||||
└──────────── GND to TTL-isolator GND
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.9 MiB |
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.11
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,18 +17,8 @@
|
||||
# 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:
|
||||
yambms_version: "1.5.5"
|
||||
|
||||
esphome:
|
||||
name: ${hostname}
|
||||
friendly_name: ${friendly_name}
|
||||
# comment: 'Solar system braining and more !'
|
||||
# area: 'Technical local'
|
||||
project:
|
||||
name: Sleeper85.YamBMS
|
||||
version: ${yambms_version}
|
||||
min_version: 2025.3.0
|
||||
packages:
|
||||
device_base_esphome: !include device_base_esphome.yaml
|
||||
|
||||
time:
|
||||
# https://esphome.io/components/time/homeassistant
|
||||
@@ -43,7 +33,7 @@ button:
|
||||
entity_category: config
|
||||
|
||||
binary_sensor:
|
||||
# https://esphome.io/components/binary_sensor/status
|
||||
# https://esphome.io/components/binary_sensor/status
|
||||
- platform: status
|
||||
name: ${name} ESP32 Online Status
|
||||
id: esp32_online_status
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.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>.
|
||||
|
||||
substitutions:
|
||||
yambms_version: "1.5.6"
|
||||
|
||||
esphome:
|
||||
name: ${hostname}
|
||||
friendly_name: ${friendly_name}
|
||||
# comment: 'Solar system braining and more !'
|
||||
# area: 'Technical local'
|
||||
project:
|
||||
name: Sleeper85.YamBMS
|
||||
version: ${yambms_version}
|
||||
min_version: 2025.5.0
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.20
|
||||
# Version : 1.5.3
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -18,7 +18,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# https://esphome.io/components/sensor/wifi_signal
|
||||
# https://esphome.io/components/sensor/wifi_signal
|
||||
- platform: wifi_signal
|
||||
name: ${name} ESP32 WiFi power
|
||||
id: esp32_wifi_power
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.04
|
||||
# Version : 1.2.2
|
||||
# Updated : 2025.06.15
|
||||
# Version : 1.2.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,6 +17,22 @@
|
||||
# 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>.
|
||||
|
||||
number:
|
||||
# +--------------------------------------+
|
||||
# | Charging Cycles Offset |
|
||||
# +--------------------------------------+
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} Charging Cycles Offset"
|
||||
id: bms${bms_id}_charging_cycles_offset
|
||||
step: 1
|
||||
min_value: 0
|
||||
max_value: 3000
|
||||
initial_value: 0
|
||||
restore_value: true
|
||||
icon: mdi:counter
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
|
||||
sensor:
|
||||
# +--------------------------------------+
|
||||
# | Total Daily Energy |
|
||||
@@ -25,8 +41,8 @@ sensor:
|
||||
name: "${name} ${bms_name} Daily Charging Energy"
|
||||
power_id: bms${bms_id}_charging_power
|
||||
unit_of_measurement: 'kWh'
|
||||
state_class: total_increasing
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
@@ -35,8 +51,8 @@ sensor:
|
||||
name: "${name} ${bms_name} Daily Discharging Energy"
|
||||
power_id: bms${bms_id}_discharging_power
|
||||
unit_of_measurement: 'kWh'
|
||||
state_class: total_increasing
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
@@ -48,9 +64,9 @@ sensor:
|
||||
- platform: template
|
||||
name: ${name} ${bms_name} Battery SoC
|
||||
id: bms${bms_id}_battery_soc
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: "%"
|
||||
device_class: battery
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -64,3 +80,44 @@ sensor:
|
||||
if (min_cell_v <= cell_low_v) return 0; // Real 0% => return 0%
|
||||
else if (soc < 1) return 2; // False 0% => return 2%
|
||||
else return soc; // Else => return BMS SoC
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Charging Cycles |
|
||||
# +--------------------------------------+
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
id: bms${bms_id}_charging_cycles
|
||||
update_interval: ${bms_update_interval}
|
||||
state_class: total
|
||||
icon: mdi:counter
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
float cycles_raw = id(bms${bms_id}_charging_cycles_raw).state;
|
||||
if (isnan(cycles_raw)) cycles_raw = 0;
|
||||
return cycles_raw + id(bms${bms_id}_charging_cycles_offset).state;
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Charging Cycle Capacity |
|
||||
# +--------------------------------------+
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
id: bms${bms_id}_cycle_capacity
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
float capacity_raw = id(bms${bms_id}_cycle_capacity_raw).state;
|
||||
if (isnan(capacity_raw)) capacity_raw = 0;
|
||||
return capacity_raw +
|
||||
id(bms${bms_id}_charging_cycles_offset).state *
|
||||
id(bms${bms_id}_battery_capacity).state;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -15,7 +15,7 @@
|
||||
# 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>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.5.5
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# This YAML is free software: you can redistribute it and/or
|
||||
@@ -107,10 +107,10 @@ interval:
|
||||
|
||||
// TOTAL total_voltage
|
||||
id(${yambms_id}_var_bms_total_voltage) += id(bms${bms_id}_total_voltage).state;
|
||||
|
||||
|
||||
// TOTAL current
|
||||
id(${yambms_id}_var_bms_total_current) += id(bms${bms_id}_current).state;
|
||||
|
||||
|
||||
// TOTAL power
|
||||
id(${yambms_id}_var_bms_total_power) += id(bms${bms_id}_power).state;
|
||||
|
||||
@@ -125,18 +125,18 @@ interval:
|
||||
|
||||
// TOTAL SoH
|
||||
id(${yambms_id}_var_bms_total_soh) += id(bms${bms_id}_battery_soh).state;
|
||||
|
||||
|
||||
// TOTAL charging_cycles
|
||||
id(${yambms_id}_var_total_charging_cycles) += id(bms${bms_id}_charging_cycles).state;
|
||||
|
||||
// TOTAL equalizing_counter
|
||||
if (id(bms${bms_id}_equalizing).state) id(${yambms_id}_var_equalizing_counter) += 1;
|
||||
|
||||
|
||||
// MIN/MAX values
|
||||
// MAX balance_trigger_voltage
|
||||
if (id(bms${bms_id}_balance_trigger_voltage).state > id(${yambms_id}_var_max_balance_trigger_voltage))
|
||||
id(${yambms_id}_var_max_balance_trigger_voltage) = id(bms${bms_id}_balance_trigger_voltage).state;
|
||||
|
||||
|
||||
// MIN min_cell_voltage
|
||||
// MIN min_voltage_cell (cell number)
|
||||
if (id(bms${bms_id}_min_cell_voltage).state < id(${yambms_id}_var_min_cell_voltage))
|
||||
@@ -152,11 +152,11 @@ interval:
|
||||
id(${yambms_id}_var_max_cell_voltage) = id(bms${bms_id}_max_cell_voltage).state;
|
||||
id(${yambms_id}_var_max_voltage_cell) = id(bms${bms_id}_max_voltage_cell).state + (${bms_id} * 100);
|
||||
}
|
||||
|
||||
|
||||
// MIN cell_ovp
|
||||
if (id(bms${bms_id}_cell_ovp).state < id(${yambms_id}_var_min_cell_ovp))
|
||||
id(${yambms_id}_var_min_cell_ovp) = id(bms${bms_id}_cell_ovp).state;
|
||||
|
||||
|
||||
// MAX cell_uvp
|
||||
if (id(bms${bms_id}_cell_uvp).state > id(${yambms_id}_var_max_cell_uvp))
|
||||
id(${yambms_id}_var_max_cell_uvp) = id(bms${bms_id}_cell_uvp).state;
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# 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:
|
||||
bms_model: "BASEN"
|
||||
bms_protocol: "RS485"
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
external_components:
|
||||
- source: github://GHswitt/esphome-basen@main
|
||||
refresh: 0s
|
||||
|
||||
uart:
|
||||
- id: !extend ${basen_uart_id}
|
||||
baud_rate: ${basen_uart_baud_rate}
|
||||
|
||||
basen_controller:
|
||||
- uart_id: ${basen_uart_id}
|
||||
id: ${basen_controller_id}
|
||||
@@ -0,0 +1,22 @@
|
||||
# Updated : 2025.06.01
|
||||
# Version : 1.1.1
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# 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>.
|
||||
|
||||
packages:
|
||||
bms_sensors: !include bms_sensors_BASEN_RS485_full.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.14
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,9 +20,7 @@
|
||||
substitutions:
|
||||
bms_model: "DEYE"
|
||||
bms_protocol: "CAN"
|
||||
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_DEYE_CAN.yaml
|
||||
bms_module: !include bms_sensors_DEYE_CAN_module_full.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.14
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,9 +20,7 @@
|
||||
substitutions:
|
||||
bms_model: "DEYE"
|
||||
bms_protocol: "CAN"
|
||||
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_DEYE_CAN.yaml
|
||||
bms_module: !include bms_sensors_DEYE_CAN_module_minimal.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -33,7 +33,7 @@ ota:
|
||||
then:
|
||||
- switch.turn_off: bms${bms_id}_enable_bluetooth_connection
|
||||
- logger.log: "BLE shutdown for flashing"
|
||||
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
@@ -286,9 +286,12 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} total battery capacity setting"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
total_runtime:
|
||||
name: "${name} ${bms_name} total runtime"
|
||||
@@ -321,7 +324,7 @@ sensor:
|
||||
name: "${name} ${bms_name} heating current"
|
||||
# Commits 2024.07.07 : Improve the support of the JK-PBs series (ALL)
|
||||
balancing:
|
||||
name: "${name} ${bms_name} balancing"
|
||||
name: "${name} ${bms_name} balancing"
|
||||
|
||||
text_sensor:
|
||||
- platform: jk_bms_ble
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -33,7 +33,7 @@ ota:
|
||||
then:
|
||||
- switch.turn_off: bms${bms_id}_enable_bluetooth_connection
|
||||
- logger.log: "BLE shutdown for flashing"
|
||||
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
@@ -281,9 +281,12 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} total battery capacity setting"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
total_runtime:
|
||||
name: "${name} ${bms_name} total runtime"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -33,7 +33,7 @@ ota:
|
||||
then:
|
||||
- switch.turn_off: bms${bms_id}_enable_bluetooth_connection
|
||||
- logger.log: "BLE shutdown for flashing"
|
||||
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
@@ -161,9 +161,12 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} total battery capacity setting"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
balancing_current:
|
||||
name: "${name} ${bms_name} balancing current"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.3
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -327,7 +327,8 @@ sensor:
|
||||
|
||||
# FAKE charging_cycles
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
@@ -338,6 +339,23 @@ sensor:
|
||||
- delta: 1
|
||||
lambda: return 0;
|
||||
|
||||
# FAKE cycle capacity
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
id: "bms${bms_id}_cycle_capacity_raw"
|
||||
internal: true
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:car-battery
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 600s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
# FAKE errors_bitmask
|
||||
# Alarm management is not supported at this time
|
||||
# Internal : only specifying an id without a name will implicitly set this to true.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.5
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.6
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -162,9 +162,12 @@ sensor:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
battery_capacity_total_charging_cycle:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} battery capacity total charging cycle"
|
||||
battery_total_runtime:
|
||||
name: "${name} ${bms_name} battery total runtime"
|
||||
@@ -175,9 +178,9 @@ sensor:
|
||||
name: "${name} ${bms_name} errors bitmask"
|
||||
cell_count_real:
|
||||
name: "${name} ${bms_name} cell count real"
|
||||
battery_total_alarms_count:
|
||||
battery_total_alarms_count:
|
||||
name: "${name} ${bms_name} battery total alarms count"
|
||||
battery_total_alarms_active:
|
||||
battery_total_alarms_active:
|
||||
name: "${name} ${bms_name} battery total alarms active"
|
||||
uart1_protocol_number:
|
||||
name: "${name} ${bms_name} uart1 protocol number"
|
||||
@@ -213,7 +216,7 @@ text_sensor:
|
||||
info_device_serial_number:
|
||||
name: "${name} ${bms_name} info device serial number"
|
||||
info_device_setup_passcode:
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
|
||||
number:
|
||||
- platform: jk_rs485_bms
|
||||
@@ -231,7 +234,7 @@ number:
|
||||
name: "${name} ${bms_name} max charging current"
|
||||
max_discharging_current:
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
cell_overvoltage_protection:
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
@@ -256,4 +259,4 @@ number:
|
||||
id: bms${bms_id}_cell_uvpr
|
||||
name: "${name} ${bms_name} cell undervoltage protection recovery"
|
||||
cell_power_off_voltage:
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -54,6 +54,6 @@ switch:
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
turn_on_action:
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(true);
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(true);
|
||||
turn_off_action:
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(false);
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(false);
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,7 +42,7 @@ jk_rs485_sniffer:
|
||||
rx_timeout: 500ms
|
||||
uart_id: ${sniffer_uart_id}
|
||||
talk_pin: ${sniffer_talk_pin}
|
||||
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component entities |
|
||||
# +--------------------------------------+
|
||||
@@ -55,6 +55,6 @@ switch:
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
turn_on_action:
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(true);
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(true);
|
||||
turn_off_action:
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(false);
|
||||
- lambda: id(${sniffer_id}).set_broadcast_changes_to_all_bms(false);
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -136,9 +136,12 @@ sensor:
|
||||
name: "${name} ${bms_name} temperature sensors"
|
||||
entity_category: diagnostic
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
battery_strings:
|
||||
id: bms${bms_id}_cell_count
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.3
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.1.1
|
||||
# GitHub : https://github.com/syssi/esphome-seplos-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,239 +17,6 @@
|
||||
# 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:
|
||||
bms_model: "Seplos V1 V2"
|
||||
bms_protocol: "RS485"
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_sensors: !include bms_sensors_SEPLOS_V1_V2_RS485_bms_full.yaml
|
||||
bms_combine: !include bms_combine.yaml
|
||||
bms_temperature_sensor: !include bms_temperature_sensor_4.yaml
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
external_components:
|
||||
- source: github://syssi/esphome-seplos-bms@main
|
||||
refresh: 0s
|
||||
|
||||
seplos_bms:
|
||||
- id: seplos_bms${bms_id}
|
||||
address: ${bms_address}
|
||||
protocol_version: ${bms_protocol_version}
|
||||
seplos_modbus_id: ${seplos_modbus_id}
|
||||
update_interval: ${bms_update_interval}
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component entities |
|
||||
# +--------------------------------------+
|
||||
|
||||
sensor:
|
||||
- platform: seplos_bms
|
||||
seplos_bms_id: seplos_bms${bms_id}
|
||||
min_cell_voltage:
|
||||
id: bms${bms_id}_min_cell_voltage
|
||||
name: "${name} ${bms_name} min cell voltage"
|
||||
max_cell_voltage:
|
||||
id: bms${bms_id}_max_cell_voltage
|
||||
name: "${name} ${bms_name} max cell voltage"
|
||||
min_voltage_cell:
|
||||
id: bms${bms_id}_min_voltage_cell
|
||||
name: "${name} ${bms_name} min voltage cell"
|
||||
max_voltage_cell:
|
||||
id: bms${bms_id}_max_voltage_cell
|
||||
name: "${name} ${bms_name} max voltage cell"
|
||||
delta_cell_voltage:
|
||||
name: "${name} ${bms_name} delta cell voltage"
|
||||
average_cell_voltage:
|
||||
id: bms${bms_id}_average_cell_voltage
|
||||
name: "${name} ${bms_name} average cell voltage"
|
||||
cell_voltage_1:
|
||||
name: "${name} ${bms_name} cell voltage 01"
|
||||
cell_voltage_2:
|
||||
name: "${name} ${bms_name} cell voltage 02"
|
||||
cell_voltage_3:
|
||||
name: "${name} ${bms_name} cell voltage 03"
|
||||
cell_voltage_4:
|
||||
name: "${name} ${bms_name} cell voltage 04"
|
||||
cell_voltage_5:
|
||||
name: "${name} ${bms_name} cell voltage 05"
|
||||
cell_voltage_6:
|
||||
name: "${name} ${bms_name} cell voltage 06"
|
||||
cell_voltage_7:
|
||||
name: "${name} ${bms_name} cell voltage 07"
|
||||
cell_voltage_8:
|
||||
name: "${name} ${bms_name} cell voltage 08"
|
||||
cell_voltage_9:
|
||||
name: "${name} ${bms_name} cell voltage 09"
|
||||
cell_voltage_10:
|
||||
name: "${name} ${bms_name} cell voltage 10"
|
||||
cell_voltage_11:
|
||||
name: "${name} ${bms_name} cell voltage 11"
|
||||
cell_voltage_12:
|
||||
name: "${name} ${bms_name} cell voltage 12"
|
||||
cell_voltage_13:
|
||||
name: "${name} ${bms_name} cell voltage 13"
|
||||
cell_voltage_14:
|
||||
name: "${name} ${bms_name} cell voltage 14"
|
||||
cell_voltage_15:
|
||||
name: "${name} ${bms_name} cell voltage 15"
|
||||
cell_voltage_16:
|
||||
name: "${name} ${bms_name} cell voltage 16"
|
||||
temperature_1:
|
||||
id: bms${bms_id}_temperature_sensor_1
|
||||
name: "${name} ${bms_name} temperature 1"
|
||||
temperature_2:
|
||||
id: bms${bms_id}_temperature_sensor_2
|
||||
name: "${name} ${bms_name} temperature 2"
|
||||
temperature_3:
|
||||
id: bms${bms_id}_temperature_sensor_3
|
||||
name: "${name} ${bms_name} temperature 3"
|
||||
temperature_4:
|
||||
id: bms${bms_id}_temperature_sensor_4
|
||||
name: "${name} ${bms_name} temperature 4"
|
||||
temperature_5:
|
||||
name: "${name} ${bms_name} environment temperature"
|
||||
temperature_6:
|
||||
name: "${name} ${bms_name} mosfet temperature"
|
||||
total_voltage:
|
||||
id: bms${bms_id}_total_voltage
|
||||
name: "${name} ${bms_name} total voltage"
|
||||
current:
|
||||
id: bms${bms_id}_current
|
||||
name: "${name} ${bms_name} current"
|
||||
power:
|
||||
id: bms${bms_id}_power
|
||||
name: "${name} ${bms_name} power"
|
||||
charging_power:
|
||||
id: bms${bms_id}_charging_power
|
||||
name: "${name} ${bms_name} charging power"
|
||||
discharging_power:
|
||||
id: bms${bms_id}_discharging_power
|
||||
name: "${name} ${bms_name} discharging power"
|
||||
residual_capacity:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} residual capacity"
|
||||
battery_capacity:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} battery capacity"
|
||||
rated_capacity:
|
||||
name: "${name} ${bms_name} rated capacity"
|
||||
state_of_charge:
|
||||
id: bms${bms_id}_state_of_charge
|
||||
name: "${name} ${bms_name} state of charge"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
state_of_health:
|
||||
id: bms${bms_id}_battery_soh
|
||||
name: "${name} ${bms_name} state of health"
|
||||
port_voltage:
|
||||
name: "${name} ${bms_name} port voltage"
|
||||
# Required sensors cannot be retrieved from BMS
|
||||
# max_charge_current
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_charge_current
|
||||
name: "${name} ${bms_name} max charge current"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: A
|
||||
icon: mdi:current-dc
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return ${bms_max_charge_current};
|
||||
# max_discharge_current
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharge current"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: A
|
||||
icon: mdi:current-dc
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return ${bms_max_discharge_current};
|
||||
# cell_ovp
|
||||
- platform: template
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell ovp"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_cell_ovp};
|
||||
# cell_uvp
|
||||
- platform: template
|
||||
id: bms${bms_id}_cell_uvp
|
||||
name: "${name} ${bms_name} cell uvp"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_cell_uvp};
|
||||
# balance_trigger_voltage
|
||||
- platform: template
|
||||
id: bms${bms_id}_balance_trigger_voltage
|
||||
name: "${name} ${bms_name} balance trigger voltage"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_balance_trigger_voltage};
|
||||
# FAKE errors_bitmask
|
||||
# Alarm management is not supported at this time
|
||||
# Internal : only specifying an id without a name will implicitly set this to true.
|
||||
- platform: template
|
||||
id: bms${bms_id}_yambms_errors_bitmask
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:alert-circle-outline
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return 0;
|
||||
|
||||
binary_sensor:
|
||||
# Required sensors cannot be retrieved from BMS
|
||||
# online_status
|
||||
- platform: template
|
||||
id: bms${bms_id}_online_status
|
||||
name: "${name} ${bms_name} online status"
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_total_voltage).state > 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
# equalizing
|
||||
- platform: template
|
||||
id: bms${bms_id}_equalizing
|
||||
name: "${name} ${bms_name} balancing"
|
||||
lambda: return false;
|
||||
# bms_switch_charging
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_allowed
|
||||
name: "${name} ${bms_name} charging"
|
||||
lambda: return true;
|
||||
# bms_switch_discharging
|
||||
- platform: template
|
||||
id: bms${bms_id}_discharging_allowed
|
||||
name: "${name} ${bms_name} discharging"
|
||||
lambda: return true;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.4
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -43,7 +43,35 @@ modbus_controller:
|
||||
on_offline:
|
||||
then:
|
||||
- logger.log: "BMS ${bms_id} modbus server goes offline !"
|
||||
- lambda: id(bms${bms_id}_online_status).publish_state(false);
|
||||
- lambda: |-
|
||||
id(bms${bms_id}_online_status).publish_state(false);
|
||||
id(bms${bms_id}_charging_allowed).publish_state(false);
|
||||
id(bms${bms_id}_discharging_allowed).publish_state(false);
|
||||
id(bms${bms_id}_equalizing).publish_state(false);
|
||||
id(bms${bms_id}_total_voltage).publish_state(0);
|
||||
id(bms${bms_id}_current).publish_state(0);
|
||||
id(bms${bms_id}_power).publish_state(0);
|
||||
id(bms${bms_id}_battery_soc).publish_state(0);
|
||||
id(bms${bms_id}_battery_capacity).publish_state(0);
|
||||
id(bms${bms_id}_capacity_remaining_ah).publish_state(0);
|
||||
id(bms${bms_id}_charging_cycles).publish_state(0);
|
||||
id(bms${bms_id}_max_charge_current).publish_state(0);
|
||||
id(bms${bms_id}_max_discharge_current).publish_state(0);
|
||||
id(bms${bms_id}_max_cell_voltage).publish_state(0);
|
||||
id(bms${bms_id}_max_voltage_cell).publish_state(0);
|
||||
id(bms${bms_id}_min_cell_voltage).publish_state(0);
|
||||
id(bms${bms_id}_min_voltage_cell).publish_state(0);
|
||||
id(bms${bms_id}_min_temperature).publish_state(0);
|
||||
id(bms${bms_id}_min_temperature_sensor).publish_state(0);
|
||||
id(bms${bms_id}_max_temperature).publish_state(0);
|
||||
id(bms${bms_id}_max_temperature_sensor).publish_state(0);
|
||||
id(bms${bms_id}_cell_ovp).publish_state(0);
|
||||
id(bms${bms_id}_cell_uvp).publish_state(0);
|
||||
id(bms${bms_id}_balance_trigger_voltage).publish_state(0);
|
||||
id(bms${bms_id}_yambms_errors_bitmask).publish_state(0);
|
||||
id(bms${bms_id}_charging_power).publish_state(0);
|
||||
id(bms${bms_id}_discharging_power).publish_state(0);
|
||||
id(bms${bms_id}_battery_soh).publish_state(0);
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component entities |
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
# Updated : 2025.06.01
|
||||
# Version : 1.1.1
|
||||
|
||||
# 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>.
|
||||
|
||||
# +--------------------------------------+
|
||||
# | BASEN Errors Bitmask |
|
||||
# +--------------------------------------+
|
||||
# equals
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
# Bit 4 Battery low temperature alarm 0000 0000 0001 0000 0x0010
|
||||
# Bit 5 Battery high temperature charge alarm 0000 0000 0010 0000 0x0020
|
||||
# Bit 6 Battery low temperature charge alarm 0000 0000 0100 0000 0x0040
|
||||
# Bit 7 Battery high discharge current alarm 0000 0000 1000 0000 0x0080
|
||||
# Bit 8 Battery high charge current alarm 0000 0001 0000 0000 0x0100
|
||||
# Bit 9 Contactor alarm 0000 0010 0000 0000 0x0200
|
||||
# Bit 10 Short circuit alarm 0000 0100 0000 0000 0x0400
|
||||
# Bit 11 BMS internal alarm 0000 1000 0000 0000 0x0800
|
||||
# Bit 12 Cell imbalance alarm 0001 0000 0000 0000 0x1000
|
||||
# Bit 13 Reserved 0010 0000 0000 0000 0x2000
|
||||
# Bit 14 Reserved 0100 0000 0000 0000 0x4000
|
||||
# Bit 15 Reserved 1000 0000 0000 0000 0x8000
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: bms${bms_id}_yambms_errors_bitmask
|
||||
name: "${name} ${bms_name} YamBMS Errors Bitmask"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:alert-circle-outline
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_errors_bitmask).state;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.14
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# | DEYE CAN PCS Errors Bitmask (64bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 Cell overvoltage 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 Cell overvoltage 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Cell undervoltage 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Module overvoltage 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Module undervoltage 0000 0000 0000 1000 0x0008
|
||||
@@ -65,7 +65,7 @@
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
@@ -99,7 +99,7 @@ sensor:
|
||||
|
||||
if (bms_errors_bitmask > 0)
|
||||
{
|
||||
// General alarm:
|
||||
// General alarm:
|
||||
// Unused
|
||||
// High voltage
|
||||
if (bms_errors_bitmask & 0x0005) yambms_errors_bitmask |= 0x0002; // Cell or module
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.25
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -21,7 +21,7 @@
|
||||
# | JBD UART Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 Cell overvoltage 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 Cell overvoltage 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Cell undervoltage 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Pack overvoltage 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Pack undervoltage 0000 0000 0000 1000 0x0008
|
||||
@@ -42,7 +42,7 @@
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.25
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -21,7 +21,7 @@
|
||||
# | JK BLE Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 Charge overtemperature 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 Charge overtemperature 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Charge undertemperature 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Coprocessor communication error 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Cell undervoltage 0000 0000 0000 1000 0x0008
|
||||
@@ -42,7 +42,7 @@
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
@@ -94,4 +94,4 @@ sensor:
|
||||
if (bms_errors_bitmask & 0x8000) yambms_errors_bitmask |= 0x0400;
|
||||
}
|
||||
|
||||
return yambms_errors_bitmask;
|
||||
return yambms_errors_bitmask;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.25
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -21,7 +21,7 @@
|
||||
# | JK RS485 Modbus Errors Bitmask (24bit) |
|
||||
# +----------------------------------------+
|
||||
|
||||
# Bit 0 Wire resistance 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 Wire resistance 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 MOS OTP 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Cell quantity 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Current sensor error 0000 0000 0000 1000 0x0008
|
||||
@@ -50,7 +50,7 @@
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.25
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -21,7 +21,7 @@
|
||||
# | JK UART 4G-GPS Errors Bitmask (16bit) |
|
||||
# +---------------------------------------+
|
||||
|
||||
# Bit 0 Low capacity 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 Low capacity 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Power tube overtemperature 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Charging overvoltage 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Discharging undervoltage 0000 0000 0000 1000 0x0008
|
||||
@@ -42,7 +42,7 @@
|
||||
# | YamBMS Errors Bitmask (16bit) |
|
||||
# +--------------------------------------+
|
||||
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 0 General alarm 0000 0000 0000 0001 0x0001
|
||||
# Bit 1 Battery high voltage alarm 0000 0000 0000 0010 0x0002
|
||||
# Bit 2 Battery low voltage alarm 0000 0000 0000 0100 0x0004
|
||||
# Bit 3 Battery high temperature alarm 0000 0000 0000 1000 0x0008
|
||||
@@ -94,4 +94,4 @@ sensor:
|
||||
if (bms_errors_bitmask & 0x8000) yambms_errors_bitmask |= 0x0000;
|
||||
}
|
||||
|
||||
return yambms_errors_bitmask;
|
||||
return yambms_errors_bitmask;
|
||||
@@ -0,0 +1,26 @@
|
||||
# Updated : 2025.06.15
|
||||
# Version : 1.1.1
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# 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:
|
||||
bms_model: "BASEN"
|
||||
bms_protocol: "RS485"
|
||||
|
||||
packages:
|
||||
bms_sensors: !include bms_sensors_BASEN_RS485_full.yaml
|
||||
bms_combine: !include bms_modbus_server.yaml
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.22
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,7 +22,5 @@ substitutions:
|
||||
bms_protocol: "CAN-Modbus"
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_sensors: !include bms_sensors_DEYE_CAN_module_full.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_DEYE_CAN.yaml
|
||||
bms_combine: !include bms_modbus_server.yaml
|
||||
@@ -0,0 +1,445 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# 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>.
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_temperature_sensor: !include bms_temperature_sensor_4.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_BASEN_RS485.yaml
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
basen_bms:
|
||||
- address: ${bms_address}
|
||||
id: basen_bms_id${bms_id}
|
||||
update_interval: ${bms_update_interval}
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component entities |
|
||||
# +--------------------------------------+
|
||||
|
||||
binary_sensor:
|
||||
- platform: basen_bms
|
||||
basen_bms_id: basen_bms_id${bms_id}
|
||||
connected:
|
||||
id: bms${bms_id}_online_status
|
||||
name: "${name} ${bms_name} status online"
|
||||
alarm:
|
||||
id: bms${bms_id}_alarm
|
||||
name: "${name} ${bms_name} alarm"
|
||||
fault:
|
||||
id: bms${bms_id}_fault
|
||||
name: "${name} ${bms_name} fault"
|
||||
|
||||
# Balancing
|
||||
- platform: template
|
||||
id: bms${bms_id}_equalizing
|
||||
name: "${name} ${bms_name} status balancing"
|
||||
lambda: |-
|
||||
float max_cell_voltage = id(bms${bms_id}_max_cell_voltage).state;
|
||||
float delta_cell_voltage = id(bms${bms_id}_delta_voltage_cell).state;
|
||||
float balance_trigger_voltage = id(bms${bms_id}_balance_trigger_voltage).state;
|
||||
float balance_trigger_difference = id(bms${bms_id}_balance_trigger_difference).state;
|
||||
if (max_cell_voltage < balance_trigger_voltage)
|
||||
return false;
|
||||
if (delta_cell_voltage >= balance_trigger_difference)
|
||||
return true;
|
||||
return false;
|
||||
filters:
|
||||
- delayed_off: 300s
|
||||
|
||||
# Charging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_allowed
|
||||
name: "${name} ${bms_name} charging allowed"
|
||||
lambda: |-
|
||||
return !id(bms${bms_id}_fault).state;
|
||||
|
||||
# Discharging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_discharging_allowed
|
||||
name: "${name} ${bms_name} discharging allowed"
|
||||
lambda: |-
|
||||
return !id(bms${bms_id}_fault).state;
|
||||
|
||||
sensor:
|
||||
- platform: basen_bms
|
||||
basen_bms_id: basen_bms_id${bms_id}
|
||||
error_bitmask:
|
||||
id: bms${bms_id}_errors_bitmask
|
||||
name: "${name} ${bms_name} errors bitmask"
|
||||
voltage:
|
||||
id: bms${bms_id}_total_voltage
|
||||
name: "${name} ${bms_name} battery voltage"
|
||||
current:
|
||||
id: bms${bms_id}_current
|
||||
name: "${name} ${bms_name} battery current"
|
||||
power:
|
||||
id: bms${bms_id}_power
|
||||
name: "${name} ${bms_name} battery power"
|
||||
state_of_charge:
|
||||
id: bms${bms_id}_state_of_charge
|
||||
name: "${name} ${bms_name} battery capacity state of charge"
|
||||
state_of_health:
|
||||
id: bms${bms_id}_battery_soh
|
||||
name: "${name} ${bms_name} battery soh valuation"
|
||||
capacity:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} battery capacity"
|
||||
cycles:
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
internal: true
|
||||
temperature1:
|
||||
id: bms${bms_id}_temperature_sensor_1
|
||||
name: "${name} ${bms_name} temperature sensor 1"
|
||||
temperature2:
|
||||
id: bms${bms_id}_temperature_sensor_2
|
||||
name: "${name} ${bms_name} temperature sensor 2"
|
||||
temperature3:
|
||||
id: bms${bms_id}_temperature_sensor_3
|
||||
name: "${name} ${bms_name} temperature sensor 3"
|
||||
temperature4:
|
||||
id: bms${bms_id}_temperature_sensor_4
|
||||
name: "${name} ${bms_name} temperature sensor 4"
|
||||
temperature_mos:
|
||||
name: "${name} ${bms_name} temperature MOSFET"
|
||||
temperature_ambient:
|
||||
name: "${name} ${bms_name} temperature ambient"
|
||||
avg_cell_voltage:
|
||||
id: bms${bms_id}_average_cell_voltage
|
||||
name: "${name} ${bms_name} cell average voltage"
|
||||
min_cell_voltage:
|
||||
id: bms${bms_id}_min_cell_voltage
|
||||
name: "${name} ${bms_name} cell voltage min"
|
||||
max_cell_voltage:
|
||||
id: bms${bms_id}_max_cell_voltage
|
||||
name: "${name} ${bms_name} cell voltage max"
|
||||
min_cell_index:
|
||||
id: bms${bms_id}_min_voltage_cell
|
||||
name: "${name} ${bms_name} cell voltage min cell number"
|
||||
max_cell_index:
|
||||
id: bms${bms_id}_max_voltage_cell
|
||||
name: "${name} ${bms_name} cell voltage max cell number"
|
||||
delta_cell_voltage:
|
||||
id: bms${bms_id}_delta_voltage_cell
|
||||
name: "${name} ${bms_name} cell delta voltage"
|
||||
cell_voltage_01:
|
||||
name: "${name} ${bms_name} cell voltage 01"
|
||||
cell_voltage_02:
|
||||
name: "${name} ${bms_name} cell voltage 02"
|
||||
cell_voltage_03:
|
||||
name: "${name} ${bms_name} cell voltage 03"
|
||||
cell_voltage_04:
|
||||
name: "${name} ${bms_name} cell voltage 04"
|
||||
cell_voltage_05:
|
||||
name: "${name} ${bms_name} cell voltage 05"
|
||||
cell_voltage_06:
|
||||
name: "${name} ${bms_name} cell voltage 06"
|
||||
cell_voltage_07:
|
||||
name: "${name} ${bms_name} cell voltage 07"
|
||||
cell_voltage_08:
|
||||
name: "${name} ${bms_name} cell voltage 08"
|
||||
cell_voltage_09:
|
||||
name: "${name} ${bms_name} cell voltage 09"
|
||||
cell_voltage_10:
|
||||
name: "${name} ${bms_name} cell voltage 10"
|
||||
cell_voltage_11:
|
||||
name: "${name} ${bms_name} cell voltage 11"
|
||||
cell_voltage_12:
|
||||
name: "${name} ${bms_name} cell voltage 12"
|
||||
cell_voltage_13:
|
||||
name: "${name} ${bms_name} cell voltage 13"
|
||||
cell_voltage_14:
|
||||
name: "${name} ${bms_name} cell voltage 14"
|
||||
cell_voltage_15:
|
||||
name: "${name} ${bms_name} cell voltage 15"
|
||||
cell_voltage_16:
|
||||
name: "${name} ${bms_name} cell voltage 16"
|
||||
|
||||
# Protection parameters
|
||||
CELL_OV_Start:
|
||||
name: "${name} ${bms_name} CELL_OV_Start"
|
||||
CELL_OV_Delay:
|
||||
name: "${name} ${bms_name} CELL_OV_Delay"
|
||||
CELL_OV_Stop:
|
||||
name: "${name} ${bms_name} CELL_OV_Stop"
|
||||
CELL_UV_Start:
|
||||
name: "${name} ${bms_name} CELL_UV_Start"
|
||||
CELL_UV_Delay:
|
||||
name: "${name} ${bms_name} CELL_UV_Delay"
|
||||
CELL_UV_Stop:
|
||||
name: "${name} ${bms_name} CELL_UV_Stop"
|
||||
PACK_OV_Start:
|
||||
name: "${name} ${bms_name} PACK_OV_Start"
|
||||
PACK_OV_Delay:
|
||||
name: "${name} ${bms_name} PACK_OV_Delay"
|
||||
PACK_OV_Stop:
|
||||
name: "${name} ${bms_name} PACK_OV_Stop"
|
||||
PACK_UV_Start:
|
||||
name: "${name} ${bms_name} PACK_UV_Start"
|
||||
PACK_UV_Delay:
|
||||
name: "${name} ${bms_name} PACK_UV_Delay"
|
||||
PACK_UV_Stop:
|
||||
name: "${name} ${bms_name} PACK_UV_Stop"
|
||||
Const_Pack_V:
|
||||
name: "${name} ${bms_name} Const_Pack_V"
|
||||
Const_Current:
|
||||
name: "${name} ${bms_name} Const_Current"
|
||||
CHG_OC1_Start:
|
||||
name: "${name} ${bms_name} CHG_OC1_Start"
|
||||
CHG_OC1_Delay:
|
||||
name: "${name} ${bms_name} CHG_OC1_Delay"
|
||||
DISC_OC1_Start:
|
||||
name: "${name} ${bms_name} DISC_OC1_Start"
|
||||
DISC_OC1_Delay:
|
||||
name: "${name} ${bms_name} DISC_OC1_Delay"
|
||||
CHG_OC2_Start:
|
||||
name: "${name} ${bms_name} CHG_OC2_Start"
|
||||
CHG_OC2_Delay:
|
||||
name: "${name} ${bms_name} CHG_OC2_Delay"
|
||||
DISC_OC2_Start:
|
||||
name: "${name} ${bms_name} DISC_OC2_Start"
|
||||
DISC_OC2_Delay:
|
||||
name: "${name} ${bms_name} DISC_OC2_Delay"
|
||||
CHG_OT_START:
|
||||
name: "${name} ${bms_name} CHG_OT_START"
|
||||
CHG_OT_Delay:
|
||||
name: "${name} ${bms_name} CHG_OT_Delay"
|
||||
CHG_OT_STOP:
|
||||
name: "${name} ${bms_name} CHG_OT_STOP"
|
||||
DISC_OT_START:
|
||||
name: "${name} ${bms_name} DISC_OT_START"
|
||||
DISC_OT_Delay:
|
||||
name: "${name} ${bms_name} DISC_OT_Delay"
|
||||
DISC_OT_STOP:
|
||||
name: "${name} ${bms_name} DISC_OT_STOP"
|
||||
CHG_UT_START:
|
||||
name: "${name} ${bms_name} CHG_UT_START"
|
||||
CHG_UT_Delay:
|
||||
name: "${name} ${bms_name} CHG_UT_Delay"
|
||||
CHG_UT_STOP:
|
||||
name: "${name} ${bms_name} CHG_UT_STOP"
|
||||
DISC_UT_START:
|
||||
name: "${name} ${bms_name} DISC_UT_START"
|
||||
DISC_UT_Delay:
|
||||
name: "${name} ${bms_name} DISC_UT_Delay"
|
||||
DISC_UT_STOP:
|
||||
name: "${name} ${bms_name} DISC_UT_STOP"
|
||||
MOS_OT_START:
|
||||
name: "${name} ${bms_name} MOS_OT_START"
|
||||
MOS_OT_Delay:
|
||||
name: "${name} ${bms_name} MOS_OT_Delay"
|
||||
MOS_OT_STOP:
|
||||
name: "${name} ${bms_name} MOS_OT_STOP"
|
||||
ENV_OT_START:
|
||||
name: "${name} ${bms_name} ENV_OT_START"
|
||||
ENV_OT_Delay:
|
||||
name: "${name} ${bms_name} ENV_OT_Delay"
|
||||
ENV_OT_STOP:
|
||||
name: "${name} ${bms_name} ENV_OT_STOP"
|
||||
ENV_UT_START:
|
||||
name: "${name} ${bms_name} ENV_UT_START"
|
||||
ENV_UT_Delay:
|
||||
name: "${name} ${bms_name} ENV_UT_Delay"
|
||||
ENV_UT_STOP:
|
||||
name: "${name} ${bms_name} ENV_UT_STOP"
|
||||
Balance_Start_Vol:
|
||||
id: bms${bms_id}_balance_trigger_voltage
|
||||
name: "${name} ${bms_name} balancing trigger voltage"
|
||||
Balance_Start_Diff:
|
||||
id: bms${bms_id}_balance_trigger_difference
|
||||
name: "${name} ${bms_name} Balance_Start_Diff"
|
||||
Sleep_Cell_Volt:
|
||||
name: "${name} ${bms_name} Sleep_Cell_Volt"
|
||||
Shorts_Delay:
|
||||
name: "${name} ${bms_name} Shorts_Delay"
|
||||
Standby_Time:
|
||||
name: "${name} ${bms_name} Standby_Time"
|
||||
UV_OFF_Time:
|
||||
name: "${name} ${bms_name} UV_OFF_Time"
|
||||
LC_Style:
|
||||
name: "${name} ${bms_name} LC_Style"
|
||||
Sleep_Time:
|
||||
name: "${name} ${bms_name} Sleep_Time"
|
||||
|
||||
# Alarm parameters
|
||||
CELL_OV_Start_Alarm:
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
CELL_OV_Delay_Alarm:
|
||||
name: "${name} ${bms_name} CELL_OV_Delay_Alarm"
|
||||
CELL_OV_Stop_Alarm:
|
||||
id: bms${bms_id}_cell_ovpr
|
||||
name: "${name} ${bms_name} cell overvoltage protection recovery"
|
||||
CELL_UV_Start_Alarm:
|
||||
id: bms${bms_id}_cell_uvp
|
||||
name: "${name} ${bms_name} cell undervoltage protection"
|
||||
CELL_UV_Delay_Alarm:
|
||||
name: "${name} ${bms_name} CELL_UV_Delay_Alarm"
|
||||
CELL_UV_Stop_Alarm:
|
||||
id: bms${bms_id}_cell_uvpr
|
||||
name: "${name} ${bms_name} cell undervoltage protection recovery"
|
||||
PACK_OV_Start_Alarm:
|
||||
name: "${name} ${bms_name} PACK_OV_Start_Alarm"
|
||||
PACK_OV_Delay_Alarm:
|
||||
name: "${name} ${bms_name} PACK_OV_Delay_Alarm"
|
||||
PACK_OV_Stop_Alarm:
|
||||
name: "${name} ${bms_name} PACK_OV_Stop_Alarm"
|
||||
PACK_UV_Start_Alarm:
|
||||
name: "${name} ${bms_name} PACK_UV_Start_Alarm"
|
||||
PACK_UV_Delay_Alarm:
|
||||
name: "${name} ${bms_name} PACK_UV_Delay_Alarm"
|
||||
PACK_UV_Stop_Alarm:
|
||||
name: "${name} ${bms_name} PACK_UV_Stop_Alarm"
|
||||
CHG_OC_Start_Alarm:
|
||||
id: bms${bms_id}_max_charge_current
|
||||
name: "${name} ${bms_name} max charging current"
|
||||
CHG_OC_Delay_Alarm:
|
||||
name: "${name} ${bms_name} CHG_OC_Delay_Alarm"
|
||||
CHG_OC_Stop_Alarm:
|
||||
name: "${name} ${bms_name} CHG_OC_Stop_Alarm"
|
||||
DISC_OC_Start_Alarm:
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
DISC_OC_Delay_Alarm:
|
||||
name: "${name} ${bms_name} DISC_OC_Delay_Alarm"
|
||||
DISC_OC_Stop_Alarm:
|
||||
name: "${name} ${bms_name} DISC_OC_Stop_Alarm"
|
||||
CHG_OT_START_Alarm:
|
||||
name: "${name} ${bms_name} CHG_OT_START_Alarm"
|
||||
CHG_OT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} CHG_OT_Delay_Alarm"
|
||||
CHG_OT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} CHG_OT_STOP_Alarm"
|
||||
CHG_UT_START_Alarm:
|
||||
name: "${name} ${bms_name} CHG_UT_START_Alarm"
|
||||
CHG_UT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} CHG_UT_Delay_Alarm"
|
||||
CHG_UT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} CHG_UT_STOP_Alarm"
|
||||
DISC_OT_START_Alarm:
|
||||
name: "${name} ${bms_name} DISC_OT_START_Alarm"
|
||||
DISC_OT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} DISC_OT_Delay_Alarm"
|
||||
DISC_OT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} DISC_OT_STOP_Alarm"
|
||||
DISC_UT_START_Alarm:
|
||||
name: "${name} ${bms_name} DISC_UT_START_Alarm"
|
||||
DISC_UT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} DISC_UT_Delay_Alarm"
|
||||
DISC_UT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} DISC_UT_STOP_Alarm"
|
||||
MOS_OT_START_Alarm:
|
||||
name: "${name} ${bms_name} MOS_OT_START_Alarm"
|
||||
MOS_OT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} MOS_OT_Delay_Alarm"
|
||||
MOS_OT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} MOS_OT_STOP_Alarm"
|
||||
ENV_OT_START_Alarm:
|
||||
name: "${name} ${bms_name} ENV_OT_START_Alarm"
|
||||
ENV_OT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} ENV_OT_Delay_Alarm"
|
||||
ENV_OT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} ENV_OT_STOP_Alarm"
|
||||
ENV_UT_START_Alarm:
|
||||
name: "${name} ${bms_name} ENV_UT_START_Alarm"
|
||||
ENV_UT_Delay_Alarm:
|
||||
name: "${name} ${bms_name} ENV_UT_Delay_Alarm"
|
||||
ENV_UT_STOP_Alarm:
|
||||
name: "${name} ${bms_name} ENV_UT_STOP_Alarm"
|
||||
Capacity_Low_Start_Alarm:
|
||||
name: "${name} ${bms_name} Capacity_Low_Start_Alarm"
|
||||
Capacity_Low_Stop_Alarm:
|
||||
name: "${name} ${bms_name} Capacity_Low_Stop_Alarm"
|
||||
Vol_Diff_Start_Alarm:
|
||||
name: "${name} ${bms_name} Vol_Diff_Start_Alarm"
|
||||
Vol_Diff_Stop_Alarm:
|
||||
name: "${name} ${bms_name} Vol_Diff_Stop_Alarm"
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
internal: true
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
# Charging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power charging"
|
||||
id: bms${bms_id}_charging_power
|
||||
unit_of_measurement: 'W'
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state > 0) return id(bms${bms_id}_total_voltage).state * id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
# Discharging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power discharging"
|
||||
id: bms${bms_id}_discharging_power
|
||||
unit_of_measurement: 'W'
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state < 0) return id(bms${bms_id}_total_voltage).state * -id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
# Remaining capacity: Calculated from capacity and SoC
|
||||
- platform: template
|
||||
unit_of_measurement: 'Ah'
|
||||
device_class: 'battery'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
lambda: |-
|
||||
return (id(bms${bms_id}_state_of_charge).state * id(bms${bms_id}_battery_capacity).state) / 100;
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
|
||||
text_sensor:
|
||||
- platform: basen_bms
|
||||
basen_bms_id: basen_bms_id${bms_id}
|
||||
bms_version:
|
||||
name: "${name} ${bms_name} BMS version"
|
||||
barcode:
|
||||
name: "${name} ${bms_name} BMS barcode"
|
||||
status_bitmask:
|
||||
id: bms${bms_id}_status_bitmask
|
||||
name: "${name} ${bms_name} status bitmask"
|
||||
status:
|
||||
name: "${name} ${bms_name} Status"
|
||||
cell_balancing_bitmask:
|
||||
name: "${name} ${bms_name} cell balancing bitmask"
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.05
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,12 +17,15 @@
|
||||
# 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>.
|
||||
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS module frames |
|
||||
# | Thanks to: |
|
||||
# | https://github.com/Psynosaur/esphome-deye-bms |
|
||||
# +-----------------------------------------------+
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_DEYE_CAN.yaml
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS module frames |
|
||||
# | Thanks to: |
|
||||
# | https://github.com/Psynosaur/esphome-deye-bms |
|
||||
# +-----------------------------------------------+
|
||||
|
||||
canbus:
|
||||
- id: !extend ${canbus_id}
|
||||
@@ -36,7 +39,7 @@ canbus:
|
||||
id(bms${bms_id}_charge_mos_state).publish_state(x[7] & 0x10);
|
||||
id(bms${bms_id}_parallel_finish).publish_state(x[7] & 0x1);
|
||||
|
||||
- can_id: 0x15${deye_module_id}
|
||||
- can_id: 0x15${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
float voltage = ((x[1] << 8) | x[0]) / 10.0;
|
||||
@@ -61,9 +64,9 @@ canbus:
|
||||
id(bms${bms_id}_max_temperature).publish_state(temp_max);
|
||||
float temp_min = ((x[7] << 8) | x[6]) / 10.0;
|
||||
id(bms${bms_id}_min_temperature).publish_state(temp_min);
|
||||
# ESP_LOGI("canid 0x200:", "U cell max: %.3f V, U cell min %.3f V, Temp max: %.1f, T_min %.1f V", cell_u_max, cell_u_min, temp_max, temp_min );
|
||||
# ESP_LOGI("canid 0x200:", "U cell max: %.3f V, U cell min %.3f V, Temp max: %.1f, T_min %.1f V", cell_u_max, cell_u_min, temp_max, temp_min );
|
||||
|
||||
- can_id: 0x25${deye_module_id}
|
||||
- can_id: 0x25${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
float mosmax = ((x[1] << 8) | x[0]) / 10.0;
|
||||
@@ -81,14 +84,14 @@ canbus:
|
||||
- can_id: 0x40${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
// Process frame
|
||||
// Process frame
|
||||
id(bms${bms_id}_operation_mode_internal).publish_state(x[0]);
|
||||
if(x[1] == 0) id(bms${bms_id}_fault_level).publish_state("no fault");
|
||||
if(x[1] == 1) id(bms${bms_id}_fault_level).publish_state("minor fault");
|
||||
if(x[1] == 2) id(bms${bms_id}_fault_level).publish_state("serious fault");
|
||||
id(bms${bms_id}_fault).publish_state(x[1] & 3);
|
||||
float cycles = ((x[3] << 8) | x[2]);
|
||||
id(bms${bms_id}_charging_cycles).publish_state(cycles);
|
||||
id(bms${bms_id}_charging_cycles_raw).publish_state(cycles);
|
||||
// Set cell balancing states based on x[4] and x[5]
|
||||
//for (int i = 1; i <= 8; i++) {
|
||||
// std::to_string(high_position).c_str()
|
||||
@@ -120,20 +123,20 @@ canbus:
|
||||
- lambda: |-
|
||||
float charged = ((x[3] << 24) | (x[2] << 16) | (x[1] << 8) | x[0]) / 1000.0;
|
||||
id(bms${bms_id}_charged).publish_state(charged);
|
||||
float discharged = ((x[7] << 24) | (x[6] << 16) | (x[5] << 8) | x[5]) / 1000.0;
|
||||
float discharged = ((x[7] << 24) | (x[6] << 16) | (x[5] << 8) | x[4]) / 1000.0;
|
||||
id(bms${bms_id}_discharged).publish_state(discharged);
|
||||
# ESP_LOGI("canid 0x550:", "%.3f kWh, %.3f kWh", charged, discharged );
|
||||
# ESP_LOGI("canid 0x550:", "%02x %02x %02x %02x %02x %02x %02x %02x", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
|
||||
|
||||
|
||||
|
||||
- can_id: 0x70${deye_module_id}
|
||||
then:
|
||||
- lambda: |
|
||||
- lambda: |
|
||||
id(bms${bms_id}_charge_over_voltage_count).publish_state((x[1] << 8) | x[0]);
|
||||
id(bms${bms_id}_discharge_under_voltage_count).publish_state((x[3] << 8) | x[2]);
|
||||
id(bms${bms_id}_short_circuit_count).publish_state((x[5] << 8) | x[4]);
|
||||
id(bms${bms_id}_mos_over_temp_count).publish_state((x[7] << 8) | x[6]);
|
||||
|
||||
|
||||
- can_id: 0x75${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
@@ -141,7 +144,7 @@ canbus:
|
||||
id(bms${bms_id}_discharge_over_current_count).publish_state((x[3] << 8) | x[2]);
|
||||
id(bms${bms_id}_charge_over_temp_count).publish_state((x[5] << 8) | x[4]);
|
||||
id(bms${bms_id}_discharge_over_temp_count).publish_state((x[7] << 8) | x[6]);
|
||||
|
||||
|
||||
binary_sensor:
|
||||
# Online status: TODO
|
||||
- platform: template
|
||||
@@ -159,14 +162,14 @@ binary_sensor:
|
||||
name: "${name} ${bms_name} status balancing"
|
||||
filters:
|
||||
- delayed_off: 300s
|
||||
|
||||
|
||||
# Charging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_allowed
|
||||
name: "${name} ${bms_name} charging allowed"
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_charge_mos_state).state && !id(bms${bms_id}_fault).state;
|
||||
|
||||
|
||||
# Discharging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_discharging_allowed
|
||||
@@ -177,15 +180,15 @@ binary_sensor:
|
||||
# Fault
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} fault"
|
||||
id: "bms${bms_id}_fault"
|
||||
|
||||
id: "bms${bms_id}_fault"
|
||||
|
||||
- platform: template
|
||||
id: "bms${bms_id}_heat_mos_state"
|
||||
name: "${name} ${bms_name} status heating"
|
||||
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} precharge mos state"
|
||||
id: "bms${bms_id}_precharge_mos_state"
|
||||
id: "bms${bms_id}_precharge_mos_state"
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} discharge mos state"
|
||||
@@ -198,7 +201,7 @@ binary_sensor:
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} parallel finish"
|
||||
id: "bms${bms_id}_parallel_finish"
|
||||
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} cell 01 balancing"
|
||||
id: "bms${bms_id}_cell_1_balancing"
|
||||
@@ -285,7 +288,7 @@ sensor:
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
|
||||
# Battery power (calculated)
|
||||
- platform: template
|
||||
id: bms${bms_id}_power
|
||||
@@ -296,7 +299,7 @@ sensor:
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_total_voltage).state * id(bms${bms_id}_current).state;
|
||||
|
||||
|
||||
# Charging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power charging"
|
||||
@@ -308,8 +311,8 @@ sensor:
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state > 0) return id(bms${bms_id}_total_voltage).state * id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
# Discharging power: Calculated from voltage and current
|
||||
|
||||
# Discharging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power discharging"
|
||||
id: bms${bms_id}_discharging_power
|
||||
@@ -320,7 +323,7 @@ sensor:
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state < 0) return id(bms${bms_id}_total_voltage).state * -id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
|
||||
# SoC
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} SoC"
|
||||
@@ -329,8 +332,8 @@ sensor:
|
||||
device_class: 'battery'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# Battery capacity
|
||||
|
||||
# Battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery capacity"
|
||||
id: bms${bms_id}_battery_capacity
|
||||
@@ -342,8 +345,8 @@ sensor:
|
||||
uint8_t module_count = id(deye${deye_id}_module_amount).state;
|
||||
if (module_count < 1) module_count = 1;
|
||||
return id(deye${deye_id}_battery_capacity).state / module_count;
|
||||
|
||||
# Remaining capacity: Calculated from capacity and SoC
|
||||
|
||||
# Remaining capacity - Calculated from SoC and battery capacity
|
||||
- platform: template
|
||||
unit_of_measurement: 'Ah'
|
||||
device_class: 'battery'
|
||||
@@ -351,24 +354,42 @@ sensor:
|
||||
accuracy_decimals: 0
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
lambda: |-
|
||||
return (id(bms${bms_id}_state_of_charge).state * id(bms${bms_id}_battery_capacity).state) / 100;
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
|
||||
lambda: |-
|
||||
return (id(bms${bms_id}_state_of_charge).state * id(bms${bms_id}_battery_capacity).state) / 100;
|
||||
|
||||
# Charging cycles
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} cycles"
|
||||
id: "bms${bms_id}_charging_cycles"
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
id: "bms${bms_id}_charging_cycles_raw"
|
||||
internal: true
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 600s
|
||||
- delta: 1
|
||||
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
id: "bms${bms_id}_cycle_capacity_raw"
|
||||
internal: true
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:car-battery
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 600s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
# Max. charge current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max charge current"
|
||||
@@ -378,7 +399,7 @@ sensor:
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
# Max. discharge current
|
||||
# Max. discharge current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max discharge current"
|
||||
id: "bms${bms_id}_max_discharge_current"
|
||||
@@ -386,7 +407,7 @@ sensor:
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
|
||||
# Max. cell voltage
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max cell voltage"
|
||||
@@ -394,7 +415,7 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 3
|
||||
|
||||
# Max. voltage cell: Only with InterCAN enabled
|
||||
- platform: template
|
||||
@@ -403,7 +424,7 @@ sensor:
|
||||
id: bms${bms_id}_max_voltage_cell
|
||||
name: "${name} ${bms_name} cell voltage max cell number"
|
||||
lambda: return 0;
|
||||
|
||||
|
||||
# Min. cell voltage
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} min cell voltage"
|
||||
@@ -414,7 +435,7 @@ sensor:
|
||||
accuracy_decimals: 3
|
||||
on_value:
|
||||
then:
|
||||
- component.update: bms${bms_id}_imbalance
|
||||
- component.update: bms${bms_id}_imbalance
|
||||
|
||||
# Min. voltage cell: Only with InterCAN enabled
|
||||
- platform: template
|
||||
@@ -423,7 +444,7 @@ sensor:
|
||||
id: bms${bms_id}_min_voltage_cell
|
||||
name: "${name} ${bms_name} cell voltage min cell number"
|
||||
lambda: return 0;
|
||||
|
||||
|
||||
# Min. temperature
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} temp min"
|
||||
@@ -432,8 +453,8 @@ sensor:
|
||||
device_class: 'temperature'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# MIN temperature sensor (fixed)
|
||||
|
||||
# Min. temperature sensor (fixed)
|
||||
- platform: template
|
||||
id: bms${bms_id}_min_temperature_sensor
|
||||
name: "${name} ${bms_name} min temperature sensor"
|
||||
@@ -442,7 +463,7 @@ sensor:
|
||||
icon: mdi:numeric
|
||||
lambda: |-
|
||||
return (1 + ${bms_id} * 100 + ${deye_module_id}1);
|
||||
|
||||
|
||||
# Max. temperature
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} temp max"
|
||||
@@ -451,8 +472,8 @@ sensor:
|
||||
device_class: 'temperature'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# MAX temperature sensor (fixed)
|
||||
|
||||
# Max. temperature sensor (fixed)
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_temperature_sensor
|
||||
name: "${name} ${bms_name} max temperature sensor"
|
||||
@@ -461,32 +482,32 @@ sensor:
|
||||
icon: mdi:numeric
|
||||
lambda: |-
|
||||
return (1 + ${bms_id} * 100 + ${deye_module_id}1);
|
||||
|
||||
|
||||
# Cell OVP: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
lambda: |-
|
||||
return 3.7;
|
||||
|
||||
|
||||
# Cell UVP: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_cell_uvp
|
||||
name: "${name} ${bms_name} cell undervoltage protection"
|
||||
lambda: |-
|
||||
return 2.8;
|
||||
|
||||
|
||||
# Cell balance trigger voltage: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_balance_trigger_voltage
|
||||
name: "${name} ${bms_name} balance trigger voltage"
|
||||
lambda: |-
|
||||
@@ -497,44 +518,44 @@ sensor:
|
||||
name: "${name} ${bms_name} counts of charge over voltage "
|
||||
id: "bms${bms_id}_charge_over_voltage_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of discharge under voltage"
|
||||
id: "bms${bms_id}_discharge_under_voltage_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of short circuit"
|
||||
id: "bms${bms_id}_short_circuit_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of mos over temp"
|
||||
id: "bms${bms_id}_mos_over_temp_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of charge over current"
|
||||
id: "bms${bms_id}_charge_over_current_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of discharge under current"
|
||||
id: "bms${bms_id}_discharge_over_current_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of charge over temp"
|
||||
id: "bms${bms_id}_charge_over_temp_count"
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
accuracy_decimals: 0
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} counts of discharge over temp"
|
||||
id: "bms${bms_id}_discharge_over_temp_count"
|
||||
@@ -555,7 +576,7 @@ sensor:
|
||||
unit_of_measurement: 'mV'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
return ((id(bms${bms_id}_max_cell_voltage).state - id(bms${bms_id}_min_cell_voltage).state)) * 1000;
|
||||
|
||||
@@ -583,7 +604,7 @@ sensor:
|
||||
state_class: 'total_increasing'
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- throttle: 1s
|
||||
- throttle: 1s
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} discharged"
|
||||
@@ -594,7 +615,7 @@ sensor:
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- throttle: 1s
|
||||
|
||||
|
||||
- platform: template
|
||||
id: "bms${bms_id}_operation_mode_internal"
|
||||
filters:
|
||||
@@ -614,5 +635,5 @@ text_sensor:
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} fault level"
|
||||
id: "bms${bms_id}_fault_level"
|
||||
id: "bms${bms_id}_fault_level"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.14
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,12 +17,15 @@
|
||||
# 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>.
|
||||
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS module frames |
|
||||
# | Thanks to: |
|
||||
# | https://github.com/Psynosaur/esphome-deye-bms |
|
||||
# +-----------------------------------------------+
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_errors_bitmask: !include bms_errors_bitmask_DEYE_CAN.yaml
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS module frames |
|
||||
# | Thanks to: |
|
||||
# | https://github.com/Psynosaur/esphome-deye-bms |
|
||||
# +-----------------------------------------------+
|
||||
|
||||
canbus:
|
||||
- id: !extend ${canbus_id}
|
||||
@@ -34,7 +37,7 @@ canbus:
|
||||
id(bms${bms_id}_discharge_mos_state).publish_state(x[7] & 0x20);
|
||||
id(bms${bms_id}_charge_mos_state).publish_state(x[7] & 0x10);
|
||||
|
||||
- can_id: 0x15${deye_module_id}
|
||||
- can_id: 0x15${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
float voltage = ((x[1] << 8) | x[0]) / 10.0;
|
||||
@@ -59,9 +62,9 @@ canbus:
|
||||
id(bms${bms_id}_max_temperature).publish_state(temp_max);
|
||||
float temp_min = ((x[7] << 8) | x[6]) / 10.0;
|
||||
id(bms${bms_id}_min_temperature).publish_state(temp_min);
|
||||
# ESP_LOGI("canid 0x200:", "U cell max: %.3f V, U cell min %.3f V, Temp max: %.1f, T_min %.1f V", cell_u_max, cell_u_min, temp_max, temp_min );
|
||||
# ESP_LOGI("canid 0x200:", "U cell max: %.3f V, U cell min %.3f V, Temp max: %.1f, T_min %.1f V", cell_u_max, cell_u_min, temp_max, temp_min );
|
||||
|
||||
- can_id: 0x25${deye_module_id}
|
||||
- can_id: 0x25${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
int val3 = ((x[5] << 8) | x[4]);
|
||||
@@ -72,13 +75,13 @@ canbus:
|
||||
- can_id: 0x40${deye_module_id}
|
||||
then:
|
||||
- lambda: |-
|
||||
// Process frame
|
||||
// Process frame
|
||||
if(x[1] == 0) id(bms${bms_id}_fault_level).publish_state("no fault");
|
||||
if(x[1] == 1) id(bms${bms_id}_fault_level).publish_state("minor fault");
|
||||
if(x[1] == 2) id(bms${bms_id}_fault_level).publish_state("serious fault");
|
||||
id(bms${bms_id}_fault).publish_state(x[1] & 3);
|
||||
float cycles = ((x[3] << 8) | x[2]);
|
||||
id(bms${bms_id}_charging_cycles).publish_state(cycles);
|
||||
id(bms${bms_id}_charging_cycles_raw).publish_state(cycles);
|
||||
id(bms${bms_id}_equalizing).publish_state(x[4] | x[5]);
|
||||
|
||||
- can_id: 0x55${deye_module_id}
|
||||
@@ -86,9 +89,9 @@ canbus:
|
||||
- lambda: |-
|
||||
float charged = ((x[3] << 24) | (x[2] << 16) | (x[1] << 8) | x[0]) / 1000.0;
|
||||
id(bms${bms_id}_charged).publish_state(charged);
|
||||
float discharged = ((x[7] << 24) | (x[6] << 16) | (x[5] << 8) | x[5]) / 1000.0;
|
||||
float discharged = ((x[7] << 24) | (x[6] << 16) | (x[5] << 8) | x[4]) / 1000.0;
|
||||
id(bms${bms_id}_discharged).publish_state(discharged);
|
||||
|
||||
|
||||
binary_sensor:
|
||||
# Online status: TODO
|
||||
- platform: template
|
||||
@@ -106,14 +109,14 @@ binary_sensor:
|
||||
name: "${name} ${bms_name} status balancing"
|
||||
filters:
|
||||
- delayed_off: 300s
|
||||
|
||||
|
||||
# Charging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_allowed
|
||||
name: "${name} ${bms_name} charging allowed"
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_charge_mos_state).state && !id(bms${bms_id}_fault).state;
|
||||
|
||||
|
||||
# Discharging allowed
|
||||
- platform: template
|
||||
id: bms${bms_id}_discharging_allowed
|
||||
@@ -124,11 +127,11 @@ binary_sensor:
|
||||
# Fault
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} fault"
|
||||
id: "bms${bms_id}_fault"
|
||||
|
||||
id: "bms${bms_id}_fault"
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} precharge mos state"
|
||||
id: "bms${bms_id}_precharge_mos_state"
|
||||
id: "bms${bms_id}_precharge_mos_state"
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} discharge mos state"
|
||||
@@ -160,7 +163,7 @@ sensor:
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
|
||||
# Battery power (calculated)
|
||||
- platform: template
|
||||
id: bms${bms_id}_power
|
||||
@@ -171,7 +174,7 @@ sensor:
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_total_voltage).state * id(bms${bms_id}_current).state;
|
||||
|
||||
|
||||
# Charging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power charging"
|
||||
@@ -183,8 +186,8 @@ sensor:
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state > 0) return id(bms${bms_id}_total_voltage).state * id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
# Discharging power: Calculated from voltage and current
|
||||
|
||||
# Discharging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery power discharging"
|
||||
id: bms${bms_id}_discharging_power
|
||||
@@ -195,7 +198,7 @@ sensor:
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_current).state < 0) return id(bms${bms_id}_total_voltage).state * -id(bms${bms_id}_current).state;
|
||||
else return 0;
|
||||
|
||||
|
||||
# SoC
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} SoC"
|
||||
@@ -204,8 +207,8 @@ sensor:
|
||||
device_class: 'battery'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# Battery capacity
|
||||
|
||||
# Battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} battery capacity"
|
||||
id: bms${bms_id}_battery_capacity
|
||||
@@ -217,7 +220,7 @@ sensor:
|
||||
uint8_t module_count = id(deye${deye_id}_module_amount).state;
|
||||
if (module_count < 1) module_count = 1;
|
||||
return id(deye${deye_id}_battery_capacity).state / module_count;
|
||||
|
||||
|
||||
# Remaining capacity: Calculated from capacity and SoC
|
||||
- platform: template
|
||||
unit_of_measurement: 'Ah'
|
||||
@@ -232,18 +235,36 @@ sensor:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
|
||||
|
||||
# Charging cycles
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} cycles"
|
||||
id: "bms${bms_id}_charging_cycles"
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
id: "bms${bms_id}_charging_cycles_raw"
|
||||
internal: true
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 600s
|
||||
- delta: 1
|
||||
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
id: "bms${bms_id}_cycle_capacity_raw"
|
||||
internal: true
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:car-battery
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 600s
|
||||
- delta: 1
|
||||
lambda: |-
|
||||
return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
# Max. charge current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max charge current"
|
||||
@@ -253,7 +274,7 @@ sensor:
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
# Max. discharge current
|
||||
# Max. discharge current
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max discharge current"
|
||||
id: "bms${bms_id}_max_discharge_current"
|
||||
@@ -261,7 +282,7 @@ sensor:
|
||||
device_class: 'current'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
|
||||
# Max. cell voltage
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} max cell voltage"
|
||||
@@ -269,7 +290,7 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 3
|
||||
|
||||
# Max. voltage cell: Only with InterCAN enabled
|
||||
- platform: template
|
||||
@@ -279,7 +300,7 @@ sensor:
|
||||
name: "${name} ${bms_name} cell voltage max cell number"
|
||||
filters:
|
||||
- lambda: return 0;
|
||||
|
||||
|
||||
# Min. cell voltage
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} min cell voltage"
|
||||
@@ -290,7 +311,7 @@ sensor:
|
||||
accuracy_decimals: 3
|
||||
on_value:
|
||||
then:
|
||||
- component.update: bms${bms_id}_imbalance
|
||||
- component.update: bms${bms_id}_imbalance
|
||||
|
||||
# Min. voltage cell: Only with InterCAN enabled
|
||||
- platform: template
|
||||
@@ -300,7 +321,7 @@ sensor:
|
||||
name: "${name} ${bms_name} cell voltage min cell number"
|
||||
filters:
|
||||
- lambda: return 0;
|
||||
|
||||
|
||||
# Min. temperature
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} temp min"
|
||||
@@ -309,8 +330,8 @@ sensor:
|
||||
device_class: 'temperature'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# MIN temperature sensor (fixed)
|
||||
|
||||
# Min. temperature sensor (fixed)
|
||||
- platform: template
|
||||
id: bms${bms_id}_min_temperature_sensor
|
||||
name: "${name} ${bms_name} min temperature sensor"
|
||||
@@ -319,7 +340,7 @@ sensor:
|
||||
icon: mdi:numeric
|
||||
lambda: |-
|
||||
return (1 + ${bms_id} * 100 + ${deye_module_id}1);
|
||||
|
||||
|
||||
# Max. temperature
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} temp max"
|
||||
@@ -328,8 +349,8 @@ sensor:
|
||||
device_class: 'temperature'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 1
|
||||
|
||||
# MAX temperature sensor (fixed)
|
||||
|
||||
# Max. temperature sensor (fixed)
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_temperature_sensor
|
||||
name: "${name} ${bms_name} max temperature sensor"
|
||||
@@ -338,32 +359,32 @@ sensor:
|
||||
icon: mdi:numeric
|
||||
lambda: |-
|
||||
return (1 + ${bms_id} * 100 + ${deye_module_id}1);
|
||||
|
||||
|
||||
# Cell OVP: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
lambda: |-
|
||||
return 3.7;
|
||||
|
||||
|
||||
# Cell UVP: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_cell_uvp
|
||||
name: "${name} ${bms_name} cell undervoltage protection"
|
||||
lambda: |-
|
||||
return 2.8;
|
||||
|
||||
|
||||
# Cell balance trigger voltage: Unsupported
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
accuracy_decimals: 2
|
||||
id: bms${bms_id}_balance_trigger_voltage
|
||||
name: "${name} ${bms_name} balance trigger voltage"
|
||||
lambda: |-
|
||||
@@ -384,7 +405,7 @@ sensor:
|
||||
unit_of_measurement: 'mV'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
return ((id(bms${bms_id}_max_cell_voltage).state - id(bms${bms_id}_min_cell_voltage).state)) * 1000;
|
||||
|
||||
@@ -396,7 +417,7 @@ sensor:
|
||||
state_class: 'total_increasing'
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- throttle: 1s
|
||||
- throttle: 1s
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} discharged"
|
||||
@@ -407,9 +428,9 @@ sensor:
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- throttle: 1s
|
||||
|
||||
|
||||
text_sensor:
|
||||
- platform: template
|
||||
name: "${name} ${bms_name} fault level"
|
||||
id: "bms${bms_id}_fault_level"
|
||||
id: "bms${bms_id}_fault_level"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.05
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,7 +22,7 @@ globals:
|
||||
type: bool
|
||||
restore_value: no
|
||||
initial_value: 'false'
|
||||
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS frames |
|
||||
# | Thanks to: |
|
||||
@@ -43,7 +43,7 @@ canbus:
|
||||
id(deye${deye_id}_max_discharge_current).publish_state(i_discharge);
|
||||
float u_min = ((x[7] << 8) | x[6]) / 10.0;
|
||||
id(deye${deye_id}_battery_discharge_voltage).publish_state(u_min);
|
||||
|
||||
|
||||
if (!id(deye${deye_id}_send_flag)) {
|
||||
std::vector<uint8_t> data{0x01};
|
||||
id(${canbus_id})->send_data(0x18A2FF80, true, data);
|
||||
@@ -61,41 +61,41 @@ canbus:
|
||||
|
||||
- can_id: 0x359
|
||||
then:
|
||||
- lambda: |-
|
||||
- lambda: |-
|
||||
id(deye${deye_id}_cell_under_temperature_charge).publish_state(x[0] & 0x80);
|
||||
id(deye${deye_id}_cell_over_temperature_charge).publish_state(x[0] & 0x40);
|
||||
id(deye${deye_id}_discharge_over_current).publish_state(x[0] & 0x20);
|
||||
id(deye${deye_id}_discharge_over_current).publish_state(x[0] & 0x20);
|
||||
id(deye${deye_id}_charge_over_current).publish_state(x[0] & 0x10);
|
||||
id(deye${deye_id}_module_under_voltage).publish_state(x[0] & 0x8);
|
||||
id(deye${deye_id}_module_over_voltage).publish_state(x[0] & 0x4);
|
||||
id(deye${deye_id}_cell_under_voltage).publish_state(x[0] & 0x2);
|
||||
id(deye${deye_id}_cell_over_voltage).publish_state(x[0] & 0x1);
|
||||
|
||||
|
||||
id(deye${deye_id}_heating_film_over_temperature).publish_state(x[1] & 0x20);
|
||||
id(deye${deye_id}_mos_over_temperature).publish_state(x[1] & 0x10);
|
||||
id(deye${deye_id}_cell_temperature_over_difference).publish_state(x[1] & 0x8);
|
||||
id(deye${deye_id}_cell_voltage_over_difference).publish_state(x[1] & 0x4);
|
||||
id(deye${deye_id}_cell_under_temperature_discharge).publish_state(x[1] & 0x2);
|
||||
id(deye${deye_id}_cell_over_temperature_discharge).publish_state(x[1] & 0x1);
|
||||
|
||||
|
||||
id(deye${deye_id}_master_address_repeat).publish_state(x[3] & 0x80);
|
||||
id(deye${deye_id}_pcs_communication_fail).publish_state(x[3] & 0x40);
|
||||
id(deye${deye_id}_internal_communication_fail).publish_state(x[3] & 0x20);
|
||||
id(deye${deye_id}_eeprom_error).publish_state(x[3] & 0x10);
|
||||
id(deye${deye_id}_mosfet_short_circuit).publish_state(x[3] & 0x8);
|
||||
id(deye${deye_id}_temperature_sampling_fail).publish_state(x[3] & 0x4);
|
||||
id(deye${deye_id}_cell_voltage_sampling_fail).publish_state(x[3] & 0x2);
|
||||
id(deye${deye_id}_cell_voltage_sampling_fail).publish_state(x[3] & 0x2);
|
||||
id(deye${deye_id}_afe_communication_fail).publish_state(x[3] & 0x1);
|
||||
|
||||
|
||||
id(deye${deye_id}_cell_low_temperature_charge).publish_state(x[4] & 0x80);
|
||||
id(deye${deye_id}_cell_high_temperature_charge).publish_state(x[4] & 0x40);
|
||||
id(deye${deye_id}_discharge_high_current).publish_state(x[4] & 0x20);
|
||||
id(deye${deye_id}_discharge_high_current).publish_state(x[4] & 0x20);
|
||||
id(deye${deye_id}_charge_high_current).publish_state(x[4] & 0x10);
|
||||
id(deye${deye_id}_module_low_voltage).publish_state(x[4] & 0x8);
|
||||
id(deye${deye_id}_module_high_voltage).publish_state(x[4] & 0x4);
|
||||
id(deye${deye_id}_cell_low_voltage).publish_state(x[4] & 0x2);
|
||||
id(deye${deye_id}_cell_high_voltage).publish_state(x[4] & 0x1);
|
||||
|
||||
|
||||
id(deye${deye_id}_heat_error).publish_state(x[5] & 0x80);
|
||||
id(deye${deye_id}_heat_mos_adhession).publish_state(x[5] & 0x40);
|
||||
id(deye${deye_id}_heating_film_high_temperature).publish_state(x[5] & 0x20);
|
||||
@@ -104,7 +104,7 @@ canbus:
|
||||
id(deye${deye_id}_cell_voltage_high_difference).publish_state(x[5] & 0x4);
|
||||
id(deye${deye_id}_cell_low_temperature_discharge).publish_state(x[5] & 0x2);
|
||||
id(deye${deye_id}_cell_high_temperature_discharge).publish_state(x[5] & 0x1);
|
||||
|
||||
|
||||
uint64_t combined = x[0] | x[1] << 8 | x[3] << 16 | x[4] << 24 | (uint64_t)x[5] << 32;
|
||||
id(deye${deye_id}_bms_errors_bitmask).publish_state(combined);
|
||||
|
||||
@@ -121,7 +121,7 @@ canbus:
|
||||
if(x[5] == 5) id(deye${deye_id}_cell_manufacturer).publish_state("EVE 120Ah");
|
||||
if(x[5] == 6) id(deye${deye_id}_cell_manufacturer).publish_state("PH 100Ah(214R)");
|
||||
if(x[5] == 7) id(deye${deye_id}_cell_manufacturer).publish_state("ZENERGY 104Ah");
|
||||
//ESP_LOGI("canid 0x35E:", "%02x %02x %02x %02x %02x %02x %02x %02x", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
|
||||
//ESP_LOGI("canid 0x35E:", "%02x %02x %02x %02x %02x %02x %02x %02x", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
|
||||
|
||||
- can_id: 0x35C
|
||||
then:
|
||||
@@ -132,7 +132,7 @@ canbus:
|
||||
id(deye${deye_id}_request_force_charge_1).publish_state(x[0] & 0x20);
|
||||
id(deye${deye_id}_request_force_charge_2).publish_state(x[0] & 0x10);
|
||||
id(deye${deye_id}_request_full_charge).publish_state(x[0] & 0x08);
|
||||
# ESP_LOGI("canid 0x35C:", "%02x %02x %02x %02x %02x %02x %02x %02x", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
|
||||
# ESP_LOGI("canid 0x35C:", "%02x %02x %02x %02x %02x %02x %02x %02x", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
|
||||
|
||||
- can_id: 0x356
|
||||
then:
|
||||
@@ -177,7 +177,7 @@ canbus:
|
||||
id(deye${deye_id}_battery_array_discharge_current_limit).publish_state(i_discharge);
|
||||
|
||||
binary_sensor:
|
||||
# Force charge 1
|
||||
# Force charge 1
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} Request force charge 1"
|
||||
id: deye${deye_id}_request_force_charge_1
|
||||
@@ -195,7 +195,7 @@ binary_sensor:
|
||||
# Alarm/warning battery
|
||||
- platform: template
|
||||
id: "deye${deye_id}_charge_over_current"
|
||||
name: "${name} ${deye_name} alarm charge overcurrent"
|
||||
name: "${name} ${deye_name} alarm charge overcurrent"
|
||||
- platform: template
|
||||
id: "deye${deye_id}_discharge_over_current"
|
||||
name: "${name} ${deye_name} alarm discharge overcurrent"
|
||||
@@ -215,11 +215,11 @@ binary_sensor:
|
||||
id: "deye${deye_id}_module_high_voltage"
|
||||
- platform: template
|
||||
id: "deye${deye_id}_module_over_voltage"
|
||||
name: "${name} ${deye_name} alarm module overvoltage"
|
||||
name: "${name} ${deye_name} alarm module overvoltage"
|
||||
- platform: template
|
||||
id: "deye${deye_id}_module_under_voltage"
|
||||
name: "${name} ${deye_name} alarm module undervoltage"
|
||||
|
||||
|
||||
# Alarm/warning cells
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} cell low voltage"
|
||||
@@ -242,12 +242,12 @@ binary_sensor:
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} cell voltage high difference"
|
||||
id: "deye${deye_id}_cell_voltage_high_difference"
|
||||
|
||||
|
||||
# Temperature general
|
||||
- platform: template
|
||||
id: "deye${deye_id}_temperature_sampling_fail"
|
||||
name: "${name} ${deye_name} alarm temperature sampling fail"
|
||||
|
||||
|
||||
# Temperature MOSFET
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} Mosfet high temperature"
|
||||
@@ -255,7 +255,7 @@ binary_sensor:
|
||||
- platform: template
|
||||
id: "deye${deye_id}_mos_over_temperature"
|
||||
name: "${name} ${deye_name} alarm MOSFET over temperature"
|
||||
|
||||
|
||||
# Temperature cells
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} cell low temperature charge"
|
||||
@@ -286,8 +286,8 @@ binary_sensor:
|
||||
id: "deye${deye_id}_cell_temperature_high_difference"
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} alarm cell temperature over difference"
|
||||
id: "deye${deye_id}_cell_temperature_over_difference"
|
||||
|
||||
id: "deye${deye_id}_cell_temperature_over_difference"
|
||||
|
||||
# Heating film
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} alarm heating film overtemperature"
|
||||
@@ -301,7 +301,7 @@ binary_sensor:
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} heating film high temperature"
|
||||
id: "deye${deye_id}_heating_film_high_temperature"
|
||||
|
||||
|
||||
# Misc
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} master address_repeat"
|
||||
@@ -321,13 +321,13 @@ binary_sensor:
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} Mosfet short circuit"
|
||||
id: "deye${deye_id}_mosfet_short_circuit"
|
||||
|
||||
id: "deye${deye_id}_mosfet_short_circuit"
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} AFE communication fail"
|
||||
id: "deye${deye_id}_afe_communication_fail"
|
||||
|
||||
sensor:
|
||||
|
||||
sensor:
|
||||
# Charge voltage
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} charge voltage"
|
||||
@@ -335,8 +335,8 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
|
||||
accuracy_decimals: 2
|
||||
|
||||
# Discharge voltage
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} discharge voltage"
|
||||
@@ -344,8 +344,8 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
|
||||
accuracy_decimals: 2
|
||||
|
||||
# Maximum charging current
|
||||
- platform: template
|
||||
id: deye${deye_id}_max_charge_current
|
||||
@@ -359,7 +359,7 @@ sensor:
|
||||
- throttle: 30s
|
||||
- delta: 10
|
||||
|
||||
# Maximum discharging current
|
||||
# Maximum discharging current
|
||||
- platform: template
|
||||
id: deye${deye_id}_max_discharge_current
|
||||
name: "${name} ${deye_name} max discharging current"
|
||||
@@ -371,8 +371,8 @@ sensor:
|
||||
- or:
|
||||
- throttle: 30s
|
||||
- delta: 10
|
||||
|
||||
|
||||
|
||||
|
||||
# SOC
|
||||
- platform: template
|
||||
unit_of_measurement: '%'
|
||||
@@ -390,14 +390,14 @@ sensor:
|
||||
device_class: 'battery'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
|
||||
# Errors bitmask
|
||||
- platform: template
|
||||
id: deye${deye_id}_bms_errors_bitmask
|
||||
name: "${name} ${deye_name} BMS Errors Bitmask"
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:alert-circle-outline
|
||||
|
||||
|
||||
# Total battery voltage
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
@@ -406,7 +406,7 @@ sensor:
|
||||
accuracy_decimals: 2
|
||||
id: deye${deye_id}_total_voltage
|
||||
name: "${name} ${deye_name} battery voltage"
|
||||
|
||||
|
||||
# Battery current
|
||||
- platform: template
|
||||
unit_of_measurement: 'A'
|
||||
@@ -415,7 +415,7 @@ sensor:
|
||||
accuracy_decimals: 2
|
||||
id: deye${deye_id}_current
|
||||
name: "${name} ${deye_name} battery current"
|
||||
|
||||
|
||||
# Battery temperature
|
||||
- platform: template
|
||||
unit_of_measurement: '°C'
|
||||
@@ -424,7 +424,7 @@ sensor:
|
||||
accuracy_decimals: 1
|
||||
id: deye${deye_id}_temperature_sensor_1
|
||||
name: "${name} ${deye_name} temperature"
|
||||
|
||||
|
||||
# Array charge current limit
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} battery array charge current limit"
|
||||
@@ -450,8 +450,8 @@ sensor:
|
||||
- or:
|
||||
- throttle: 30s
|
||||
- delta: 10
|
||||
|
||||
# Min. cell voltage
|
||||
|
||||
# Min. cell voltage
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
@@ -459,7 +459,7 @@ sensor:
|
||||
accuracy_decimals: 3
|
||||
id: deye${deye_id}_min_cell_voltage
|
||||
name: "${name} ${deye_name} cell voltage min"
|
||||
|
||||
|
||||
# Max. cell voltage
|
||||
- platform: template
|
||||
unit_of_measurement: 'V'
|
||||
@@ -478,7 +478,7 @@ sensor:
|
||||
unit_of_measurement: °C
|
||||
device_class: temperature
|
||||
|
||||
# Max. temperature
|
||||
# Max. temperature
|
||||
- platform: template
|
||||
id: deye${deye_id}_max_temperature
|
||||
name: "${name} ${deye_name} max temperature"
|
||||
@@ -486,7 +486,7 @@ sensor:
|
||||
accuracy_decimals: 1
|
||||
unit_of_measurement: °C
|
||||
device_class: temperature
|
||||
|
||||
|
||||
# Modules in normal state
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} Module amount normal state"
|
||||
@@ -521,8 +521,8 @@ sensor:
|
||||
id: deye${deye_id}_module_amount
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
# Battery capacity
|
||||
|
||||
# Battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} battery capacity"
|
||||
id: deye${deye_id}_battery_capacity
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.05
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,7 +22,7 @@ globals:
|
||||
type: bool
|
||||
restore_value: no
|
||||
initial_value: 'false'
|
||||
|
||||
|
||||
# +-----------------------------------------------+
|
||||
# | DEYE CAN PCS frames |
|
||||
# | Thanks to: |
|
||||
@@ -43,7 +43,7 @@ canbus:
|
||||
id(deye${deye_id}_max_discharge_current).publish_state(i_discharge);
|
||||
float u_min = ((x[7] << 8) | x[6]) / 10.0;
|
||||
id(deye${deye_id}_battery_discharge_voltage).publish_state(u_min);
|
||||
|
||||
|
||||
if (!id(deye${deye_id}_send_flag)) {
|
||||
std::vector<uint8_t> data{0x01};
|
||||
id(${canbus_id})->send_data(0x18A2FF80, true, data);
|
||||
@@ -61,7 +61,7 @@ canbus:
|
||||
|
||||
- can_id: 0x359
|
||||
then:
|
||||
- lambda: |-
|
||||
- lambda: |-
|
||||
uint64_t combined = x[0] | x[1] << 8 | x[3] << 16 | x[4] << 24 | (uint64_t)x[5] << 32;
|
||||
id(deye${deye_id}_bms_errors_bitmask).publish_state(combined);
|
||||
|
||||
@@ -80,7 +80,7 @@ canbus:
|
||||
id(deye${deye_id}_module_amount_communication_disconnected).publish_state(x[3]);
|
||||
id(deye${deye_id}_module_amount).publish_state(x[4]);
|
||||
|
||||
sensor:
|
||||
sensor:
|
||||
# Charge voltage
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} charge voltage"
|
||||
@@ -88,8 +88,8 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
|
||||
accuracy_decimals: 2
|
||||
|
||||
# Discharge voltage
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} discharge voltage"
|
||||
@@ -97,8 +97,8 @@ sensor:
|
||||
unit_of_measurement: 'V'
|
||||
device_class: 'voltage'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 2
|
||||
|
||||
accuracy_decimals: 2
|
||||
|
||||
# Maximum charging current
|
||||
- platform: template
|
||||
id: deye${deye_id}_max_charge_current
|
||||
@@ -112,7 +112,7 @@ sensor:
|
||||
- throttle: 30s
|
||||
- delta: 10
|
||||
|
||||
# Maximum discharging current
|
||||
# Maximum discharging current
|
||||
- platform: template
|
||||
id: deye${deye_id}_max_discharge_current
|
||||
name: "${name} ${deye_name} max discharging current"
|
||||
@@ -124,8 +124,8 @@ sensor:
|
||||
- or:
|
||||
- throttle: 30s
|
||||
- delta: 10
|
||||
|
||||
|
||||
|
||||
|
||||
# SOC
|
||||
- platform: template
|
||||
unit_of_measurement: '%'
|
||||
@@ -143,14 +143,14 @@ sensor:
|
||||
device_class: 'battery'
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
|
||||
# Errors bitmask
|
||||
- platform: template
|
||||
id: deye${deye_id}_bms_errors_bitmask
|
||||
name: "${name} ${deye_name} BMS Errors Bitmask"
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:alert-circle-outline
|
||||
|
||||
|
||||
# Modules in normal state
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} Module amount normal state"
|
||||
@@ -185,8 +185,8 @@ sensor:
|
||||
id: deye${deye_id}_module_amount
|
||||
state_class: 'measurement'
|
||||
accuracy_decimals: 0
|
||||
|
||||
# Battery capacity
|
||||
|
||||
# Battery capacity
|
||||
- platform: template
|
||||
name: "${name} ${deye_name} battery capacity"
|
||||
id: deye${deye_id}_battery_capacity
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.4
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.5
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.1.6
|
||||
# GitHub : https://github.com/syssi/esphome-jdb-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -116,13 +116,14 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} nominal capacity"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
capacity_remaining:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} capacity remaining"
|
||||
battery_cycle_capacity:
|
||||
name: "${name} ${bms_name} battery cycle capacity"
|
||||
# battery_cycle_capacity:
|
||||
# name: "${name} ${bms_name} battery cycle capacity" # https://github.com/syssi/esphome-jbd-bms/issues/143
|
||||
total_voltage:
|
||||
id: bms${bms_id}_total_voltage
|
||||
name: "${name} ${bms_name} total voltage"
|
||||
@@ -303,6 +304,22 @@ sensor:
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_balance_trigger_voltage};
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
internal: true
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
text_sensor:
|
||||
- platform: jbd_bms_ble
|
||||
jbd_bms_ble_id: jbd_bms_ble${bms_id}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.4
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.1.6
|
||||
# GitHub : https://github.com/syssi/esphome-jdb-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -101,13 +101,14 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} nominal capacity"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
capacity_remaining:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} capacity remaining"
|
||||
battery_cycle_capacity:
|
||||
name: "${name} ${bms_name} battery cycle capacity"
|
||||
# battery_cycle_capacity:
|
||||
# name: "${name} ${bms_name} battery cycle capacity" # https://github.com/syssi/esphome-jbd-bms/issues/143
|
||||
total_voltage:
|
||||
id: bms${bms_id}_total_voltage
|
||||
name: "${name} ${bms_name} total voltage"
|
||||
@@ -287,6 +288,22 @@ sensor:
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_balance_trigger_voltage};
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
internal: true
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
text_sensor:
|
||||
- platform: jbd_bms
|
||||
jbd_bms_id: jbd_bms${bms_id}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -28,7 +28,7 @@ ota:
|
||||
then:
|
||||
- switch.turn_off: bms${bms_id}_enable_bluetooth_connection
|
||||
- logger.log: "BLE shutdown for flashing"
|
||||
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
@@ -156,9 +156,12 @@ sensor:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} total battery capacity setting"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
balancing_current:
|
||||
name: "${name} ${bms_name} balancing current"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.21
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -139,9 +139,12 @@ sensor:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
battery_capacity_total_charging_cycle:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} battery capacity total charging cycle"
|
||||
battery_total_runtime:
|
||||
name: "${name} ${bms_name} battery total runtime"
|
||||
@@ -152,9 +155,9 @@ sensor:
|
||||
name: "${name} ${bms_name} errors bitmask"
|
||||
cell_count_real:
|
||||
name: "${name} ${bms_name} cell count real"
|
||||
battery_total_alarms_count:
|
||||
battery_total_alarms_count:
|
||||
name: "${name} ${bms_name} battery total alarms count"
|
||||
battery_total_alarms_active:
|
||||
battery_total_alarms_active:
|
||||
name: "${name} ${bms_name} battery total alarms active"
|
||||
uart1_protocol_number:
|
||||
name: "${name} ${bms_name} uart1 protocol number"
|
||||
@@ -280,7 +283,7 @@ text_sensor:
|
||||
info_device_serial_number:
|
||||
name: "${name} ${bms_name} info device serial number"
|
||||
info_device_setup_passcode:
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
|
||||
number:
|
||||
- platform: jk_rs485_bms
|
||||
@@ -298,7 +301,7 @@ number:
|
||||
name: "${name} ${bms_name} max charging current"
|
||||
max_discharging_current:
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
cell_overvoltage_protection:
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
@@ -323,4 +326,4 @@ number:
|
||||
id: bms${bms_id}_cell_uvpr
|
||||
name: "${name} ${bms_name} cell undervoltage protection recovery"
|
||||
cell_power_off_voltage:
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.6
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.7
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -318,9 +318,12 @@ sensor:
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
battery_capacity_total_charging_cycle:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} battery capacity total charging cycle"
|
||||
battery_total_runtime:
|
||||
name: "${name} ${bms_name} battery total runtime"
|
||||
@@ -339,9 +342,9 @@ sensor:
|
||||
name: "${name} ${bms_name} powertube temperature protection"
|
||||
powertube_temperature_protection_recovery:
|
||||
name: "${name} ${bms_name} powertube temperature protection recovery"
|
||||
battery_total_alarms_count:
|
||||
battery_total_alarms_count:
|
||||
name: "${name} ${bms_name} battery total alarms count"
|
||||
battery_total_alarms_active:
|
||||
battery_total_alarms_active:
|
||||
name: "${name} ${bms_name} battery total alarms active"
|
||||
emergency_time_countdown:
|
||||
name: "${name} ${bms_name} emergency time countdown"
|
||||
@@ -352,17 +355,17 @@ sensor:
|
||||
battery_soh_valuation:
|
||||
id: bms${bms_id}_battery_soh
|
||||
name: "${name} ${bms_name} battery soh valuation"
|
||||
discharging_overcurrent_protection_release_time:
|
||||
discharging_overcurrent_protection_release_time:
|
||||
name: "${name} ${bms_name} discharging overcurrent protection release time"
|
||||
discharging_short_circuit_protection_release_time:
|
||||
discharging_short_circuit_protection_release_time:
|
||||
name: "${name} ${bms_name} discharging short circuit protection release time"
|
||||
charging_overcurrent_protection_release_time:
|
||||
charging_overcurrent_protection_release_time:
|
||||
name: "${name} ${bms_name} charging overcurrent protection release time"
|
||||
charging_short_circuit_protection_release_time:
|
||||
charging_short_circuit_protection_release_time:
|
||||
name: "${name} ${bms_name} charging short circuit protection release time"
|
||||
cell_undervoltage_protection_release_time:
|
||||
cell_undervoltage_protection_release_time:
|
||||
name: "${name} ${bms_name} cell undervoltage protection release time"
|
||||
cell_overvoltage_protection_release_time:
|
||||
cell_overvoltage_protection_release_time:
|
||||
name: "${name} ${bms_name} cell overvoltage protection release time"
|
||||
|
||||
text_sensor:
|
||||
@@ -391,7 +394,7 @@ text_sensor:
|
||||
info_device_serial_number:
|
||||
name: "${name} ${bms_name} info device serial number"
|
||||
info_device_setup_passcode:
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
|
||||
number:
|
||||
- platform: jk_rs485_bms
|
||||
@@ -433,7 +436,7 @@ number:
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
cell_count_settings:
|
||||
id: bms${bms_id}_cell_count
|
||||
name: "${name} ${bms_name} cell count settings"
|
||||
name: "${name} ${bms_name} cell count settings"
|
||||
battery_capacity_total_settings:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} battery capacity total setting"
|
||||
@@ -468,7 +471,7 @@ number:
|
||||
charging_lowtemperature_protection:
|
||||
name: "${name} ${bms_name} charging lowtemperature protection"
|
||||
charging_lowtemperature_protection_recovery:
|
||||
name: "${name} ${bms_name} charging lowtemperature protection recovery"
|
||||
name: "${name} ${bms_name} charging lowtemperature protection recovery"
|
||||
mos_overtemperature_protection:
|
||||
name: "${name} ${bms_name} mos overtemperature protection"
|
||||
mos_overtemperature_protection_recovery:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.6
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.7
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -161,9 +161,12 @@ sensor:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} battery capacity remaining"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
battery_capacity_total_charging_cycle:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} battery capacity total charging cycle"
|
||||
battery_total_runtime:
|
||||
name: "${name} ${bms_name} battery total runtime"
|
||||
@@ -174,9 +177,9 @@ sensor:
|
||||
name: "${name} ${bms_name} errors bitmask"
|
||||
cell_count_real:
|
||||
name: "${name} ${bms_name} cell count real"
|
||||
battery_total_alarms_count:
|
||||
battery_total_alarms_count:
|
||||
name: "${name} ${bms_name} battery total alarms count"
|
||||
battery_total_alarms_active:
|
||||
battery_total_alarms_active:
|
||||
name: "${name} ${bms_name} battery total alarms active"
|
||||
uart1_protocol_number:
|
||||
name: "${name} ${bms_name} uart1 protocol number"
|
||||
@@ -308,7 +311,7 @@ text_sensor:
|
||||
info_device_serial_number:
|
||||
name: "${name} ${bms_name} info device serial number"
|
||||
info_device_setup_passcode:
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
name: "${name} ${bms_name} info device setup passcode"
|
||||
|
||||
number:
|
||||
- platform: jk_rs485_bms
|
||||
@@ -326,7 +329,7 @@ number:
|
||||
name: "${name} ${bms_name} max charging current"
|
||||
max_discharging_current:
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
name: "${name} ${bms_name} max discharging current"
|
||||
cell_overvoltage_protection:
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell overvoltage protection"
|
||||
@@ -351,4 +354,4 @@ number:
|
||||
id: bms${bms_id}_cell_uvpr
|
||||
name: "${name} ${bms_name} cell undervoltage protection recovery"
|
||||
cell_power_off_voltage:
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
name: "${name} ${bms_name} cell power off voltage"
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -214,9 +214,12 @@ sensor:
|
||||
name: "${name} ${bms_name} temperature sensors"
|
||||
entity_category: diagnostic
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
total_charging_cycle_capacity:
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} total charging cycle capacity"
|
||||
battery_strings:
|
||||
id: bms${bms_id}_cell_count
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.1.6
|
||||
# GitHub : https://github.com/syssi/esphome-seplos-bms
|
||||
|
||||
# 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>.
|
||||
|
||||
packages:
|
||||
bms_base: !include bms_base.yaml
|
||||
bms_temperature_sensor: !include bms_temperature_sensor_4.yaml
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
external_components:
|
||||
- source: github://syssi/esphome-seplos-bms@main
|
||||
refresh: 0s
|
||||
|
||||
seplos_bms:
|
||||
- id: seplos_bms${bms_id}
|
||||
address: ${bms_address}
|
||||
protocol_version: ${bms_protocol_version}
|
||||
seplos_modbus_id: ${seplos_modbus_id}
|
||||
update_interval: ${bms_update_interval}
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Component entities |
|
||||
# +--------------------------------------+
|
||||
|
||||
sensor:
|
||||
- platform: seplos_bms
|
||||
seplos_bms_id: seplos_bms${bms_id}
|
||||
min_cell_voltage:
|
||||
id: bms${bms_id}_min_cell_voltage
|
||||
name: "${name} ${bms_name} min cell voltage"
|
||||
max_cell_voltage:
|
||||
id: bms${bms_id}_max_cell_voltage
|
||||
name: "${name} ${bms_name} max cell voltage"
|
||||
min_voltage_cell:
|
||||
id: bms${bms_id}_min_voltage_cell
|
||||
name: "${name} ${bms_name} min voltage cell"
|
||||
max_voltage_cell:
|
||||
id: bms${bms_id}_max_voltage_cell
|
||||
name: "${name} ${bms_name} max voltage cell"
|
||||
delta_cell_voltage:
|
||||
name: "${name} ${bms_name} delta cell voltage"
|
||||
average_cell_voltage:
|
||||
id: bms${bms_id}_average_cell_voltage
|
||||
name: "${name} ${bms_name} average cell voltage"
|
||||
cell_voltage_1:
|
||||
name: "${name} ${bms_name} cell voltage 01"
|
||||
cell_voltage_2:
|
||||
name: "${name} ${bms_name} cell voltage 02"
|
||||
cell_voltage_3:
|
||||
name: "${name} ${bms_name} cell voltage 03"
|
||||
cell_voltage_4:
|
||||
name: "${name} ${bms_name} cell voltage 04"
|
||||
cell_voltage_5:
|
||||
name: "${name} ${bms_name} cell voltage 05"
|
||||
cell_voltage_6:
|
||||
name: "${name} ${bms_name} cell voltage 06"
|
||||
cell_voltage_7:
|
||||
name: "${name} ${bms_name} cell voltage 07"
|
||||
cell_voltage_8:
|
||||
name: "${name} ${bms_name} cell voltage 08"
|
||||
cell_voltage_9:
|
||||
name: "${name} ${bms_name} cell voltage 09"
|
||||
cell_voltage_10:
|
||||
name: "${name} ${bms_name} cell voltage 10"
|
||||
cell_voltage_11:
|
||||
name: "${name} ${bms_name} cell voltage 11"
|
||||
cell_voltage_12:
|
||||
name: "${name} ${bms_name} cell voltage 12"
|
||||
cell_voltage_13:
|
||||
name: "${name} ${bms_name} cell voltage 13"
|
||||
cell_voltage_14:
|
||||
name: "${name} ${bms_name} cell voltage 14"
|
||||
cell_voltage_15:
|
||||
name: "${name} ${bms_name} cell voltage 15"
|
||||
cell_voltage_16:
|
||||
name: "${name} ${bms_name} cell voltage 16"
|
||||
temperature_1:
|
||||
id: bms${bms_id}_temperature_sensor_1
|
||||
name: "${name} ${bms_name} temperature 1"
|
||||
temperature_2:
|
||||
id: bms${bms_id}_temperature_sensor_2
|
||||
name: "${name} ${bms_name} temperature 2"
|
||||
temperature_3:
|
||||
id: bms${bms_id}_temperature_sensor_3
|
||||
name: "${name} ${bms_name} temperature 3"
|
||||
temperature_4:
|
||||
id: bms${bms_id}_temperature_sensor_4
|
||||
name: "${name} ${bms_name} temperature 4"
|
||||
temperature_5:
|
||||
name: "${name} ${bms_name} environment temperature"
|
||||
temperature_6:
|
||||
name: "${name} ${bms_name} mosfet temperature"
|
||||
total_voltage:
|
||||
id: bms${bms_id}_total_voltage
|
||||
name: "${name} ${bms_name} total voltage"
|
||||
current:
|
||||
id: bms${bms_id}_current
|
||||
name: "${name} ${bms_name} current"
|
||||
power:
|
||||
id: bms${bms_id}_power
|
||||
name: "${name} ${bms_name} power"
|
||||
charging_power:
|
||||
id: bms${bms_id}_charging_power
|
||||
name: "${name} ${bms_name} charging power"
|
||||
discharging_power:
|
||||
id: bms${bms_id}_discharging_power
|
||||
name: "${name} ${bms_name} discharging power"
|
||||
residual_capacity:
|
||||
id: bms${bms_id}_capacity_remaining_ah
|
||||
name: "${name} ${bms_name} residual capacity"
|
||||
battery_capacity:
|
||||
id: bms${bms_id}_battery_capacity
|
||||
name: "${name} ${bms_name} battery capacity"
|
||||
rated_capacity:
|
||||
name: "${name} ${bms_name} rated capacity"
|
||||
state_of_charge:
|
||||
id: bms${bms_id}_state_of_charge
|
||||
name: "${name} ${bms_name} state of charge"
|
||||
charging_cycles:
|
||||
id: bms${bms_id}_charging_cycles_raw
|
||||
internal: true
|
||||
name: "${name} ${bms_name} charging cycles"
|
||||
state_of_health:
|
||||
id: bms${bms_id}_battery_soh
|
||||
name: "${name} ${bms_name} state of health"
|
||||
port_voltage:
|
||||
name: "${name} ${bms_name} port voltage"
|
||||
# Required sensors cannot be retrieved from BMS
|
||||
# max_charge_current
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_charge_current
|
||||
name: "${name} ${bms_name} max charge current"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: A
|
||||
icon: mdi:current-dc
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return ${bms_max_charge_current};
|
||||
# max_discharge_current
|
||||
- platform: template
|
||||
id: bms${bms_id}_max_discharge_current
|
||||
name: "${name} ${bms_name} max discharge current"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: A
|
||||
icon: mdi:current-dc
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return ${bms_max_discharge_current};
|
||||
# cell_ovp
|
||||
- platform: template
|
||||
id: bms${bms_id}_cell_ovp
|
||||
name: "${name} ${bms_name} cell ovp"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_cell_ovp};
|
||||
# cell_uvp
|
||||
- platform: template
|
||||
id: bms${bms_id}_cell_uvp
|
||||
name: "${name} ${bms_name} cell uvp"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_cell_uvp};
|
||||
# balance_trigger_voltage
|
||||
- platform: template
|
||||
id: bms${bms_id}_balance_trigger_voltage
|
||||
name: "${name} ${bms_name} balance trigger voltage"
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 3
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 0.001
|
||||
lambda: return ${bms_balance_trigger_voltage};
|
||||
# FAKE errors_bitmask
|
||||
# Alarm management is not supported at this time
|
||||
# Internal : only specifying an id without a name will implicitly set this to true.
|
||||
- platform: template
|
||||
id: bms${bms_id}_yambms_errors_bitmask
|
||||
update_interval: ${bms_update_interval}
|
||||
accuracy_decimals: 0
|
||||
icon: mdi:alert-circle-outline
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return 0;
|
||||
|
||||
# Charging cycle capacity - Calculated from charging cycles and battery capacity
|
||||
- platform: template
|
||||
id: bms${bms_id}_cycle_capacity_raw
|
||||
name: "${name} ${bms_name} charging cycle capacity"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
internal: true
|
||||
filters:
|
||||
- or:
|
||||
- throttle: 10s
|
||||
- delta: 1
|
||||
lambda: return id(bms${bms_id}_charging_cycles_raw).state * id(bms${bms_id}_battery_capacity).state;
|
||||
|
||||
binary_sensor:
|
||||
# Required sensors cannot be retrieved from BMS
|
||||
# online_status
|
||||
- platform: template
|
||||
id: bms${bms_id}_online_status
|
||||
name: "${name} ${bms_name} online status"
|
||||
lambda: |-
|
||||
if (id(bms${bms_id}_total_voltage).state > 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
# equalizing
|
||||
- platform: template
|
||||
id: bms${bms_id}_equalizing
|
||||
name: "${name} ${bms_name} balancing"
|
||||
lambda: return false;
|
||||
# bms_switch_charging
|
||||
- platform: template
|
||||
id: bms${bms_id}_charging_allowed
|
||||
name: "${name} ${bms_name} charging"
|
||||
lambda: return true;
|
||||
# bms_switch_discharging
|
||||
- platform: template
|
||||
id: bms${bms_id}_discharging_allowed
|
||||
name: "${name} ${bms_name} discharging"
|
||||
lambda: return true;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.11.11
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -15,8 +15,8 @@
|
||||
# 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>.
|
||||
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# MIN temperature
|
||||
- platform: template
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.11.11
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -15,8 +15,8 @@
|
||||
# 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>.
|
||||
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# MIN temperature
|
||||
- platform: template
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.11.11
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -15,8 +15,8 @@
|
||||
# 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>.
|
||||
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# MIN temperature
|
||||
- platform: template
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.11.11
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.1.2
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -15,8 +15,8 @@
|
||||
# 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>.
|
||||
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
|
||||
|
||||
sensor:
|
||||
# MIN temperature
|
||||
- platform: template
|
||||
|
||||
@@ -28,8 +28,8 @@ substitutions:
|
||||
tx_pin_2: '6'
|
||||
rx_pin_2: '7'
|
||||
# uart_esp_3
|
||||
tx_pin_3: '8'
|
||||
rx_pin_3: '9'
|
||||
tx_pin_3: '2'
|
||||
rx_pin_3: '3'
|
||||
# canbus_esp32_can (Atomic CAN base)
|
||||
tx_pin_4: '18'
|
||||
rx_pin_4: '19'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,12 +42,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
|
||||
esp32:
|
||||
board: m5stack-atoms3
|
||||
variant: esp32s3
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.07
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,6 +20,7 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "Atom S3"
|
||||
display_update_interval: "500ms"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1 (Grove port)
|
||||
tx_pin_1: '2'
|
||||
@@ -42,26 +43,15 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
display: !include board_options_display_128x128.yaml
|
||||
|
||||
# From platform-espressif32 6.1.0
|
||||
# https://github.com/espressif/esp-idf/releases
|
||||
# https://github.com/platformio/platform-espressif32/releases
|
||||
esp32:
|
||||
board: m5stack-atoms3
|
||||
variant: esp32s3
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Atom S3 - SKU:C123
|
||||
# https://docs.m5stack.com/en/core/AtomS3
|
||||
# esp32:
|
||||
# board: esp32-s3-devkitc-1
|
||||
# variant: esp32s3
|
||||
# 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
|
||||
@@ -145,6 +135,6 @@ display:
|
||||
offset_height: 2
|
||||
offset_width: 1
|
||||
eightbitcolor: true
|
||||
update_interval: 1s
|
||||
update_interval: ${display_update_interval}
|
||||
data_rate: 40Mhz
|
||||
rotation: ${display_rotation}
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.07
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,6 +20,7 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "Atom S3R"
|
||||
display_update_interval: "500ms"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1 (Grove port)
|
||||
tx_pin_1: '2'
|
||||
@@ -42,14 +43,14 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
display: !include board_options_display_128x128.yaml
|
||||
psram: !include board_options_psram_settings.yaml
|
||||
psram: !include board_options_ESP32-S3_PSRAM.yaml
|
||||
|
||||
esp32:
|
||||
board: m5stack-atoms3
|
||||
variant: esp32s3
|
||||
flash_size: 8MB
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -62,11 +63,6 @@ esphome:
|
||||
- output.turn_on:
|
||||
id: white
|
||||
|
||||
# PSRAM activation with default options
|
||||
psram:
|
||||
mode: octal
|
||||
speed: 80MHz
|
||||
|
||||
external_components:
|
||||
# Backlight
|
||||
- source:
|
||||
@@ -111,7 +107,7 @@ i2c:
|
||||
sda: 45
|
||||
scl: 0
|
||||
scan: true
|
||||
|
||||
|
||||
lp5562:
|
||||
- i2c_id: atom_i2c_bus
|
||||
|
||||
@@ -170,6 +166,6 @@ display:
|
||||
offset_height: 2
|
||||
offset_width: 1
|
||||
eightbitcolor: true
|
||||
update_interval: 1s
|
||||
update_interval: ${display_update_interval}
|
||||
data_rate: 40Mhz
|
||||
rotation: ${display_rotation}
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.14
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,6 +20,7 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "Atom S3"
|
||||
display_update_interval: "500ms"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1 (Grove port)
|
||||
tx_pin_1: '2'
|
||||
@@ -42,26 +43,15 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
# display: !include board_options_display_128x128.yaml
|
||||
|
||||
# From platform-espressif32 6.1.0
|
||||
# https://github.com/espressif/esp-idf/releases
|
||||
# https://github.com/platformio/platform-espressif32/releases
|
||||
esp32:
|
||||
board: m5stack-atoms3
|
||||
variant: esp32s3
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Atom S3 - SKU:C123
|
||||
# https://docs.m5stack.com/en/core/AtomS3
|
||||
# esp32:
|
||||
# board: esp32-s3-devkitc-1
|
||||
# variant: esp32s3
|
||||
# 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
|
||||
@@ -145,6 +135,6 @@ display:
|
||||
offset_height: 2
|
||||
offset_width: 1
|
||||
eightbitcolor: true
|
||||
update_interval: 1s
|
||||
update_interval: ${display_update_interval}
|
||||
data_rate: 40Mhz
|
||||
rotation: ${display_rotation}
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -43,12 +43,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
display: !include board_options_display_128x128.yaml
|
||||
|
||||
esp32:
|
||||
board: m5stack-atoms3
|
||||
variant: esp32s3
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -103,7 +103,7 @@ fan:
|
||||
name: "${name} ${board_name} Backlight control"
|
||||
# web_server:
|
||||
# sorting_weight: ${web_server_sorting_group}00
|
||||
# sorting_group_id: group_${web_server_sorting_group}
|
||||
# sorting_group_id: group_${web_server_sorting_group}
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
icon: mdi:brightness-6
|
||||
|
||||
@@ -260,8 +260,8 @@ script:
|
||||
}
|
||||
|
||||
# web_server v3 needs to be added and sorting_groups must be defined to use grouping
|
||||
# web_server:
|
||||
# version: 3
|
||||
# web_server:
|
||||
# version: 3
|
||||
# sorting_groups:
|
||||
# - id: group_666
|
||||
# name: "${board_name} Backlight Control"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.07
|
||||
# Version : 1.2.9
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,13 +42,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
# psram_settings: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -56,11 +55,6 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.07
|
||||
# Version : 1.2.9
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,13 +42,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
# psram_settings: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -56,11 +55,6 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.07
|
||||
# Version : 1.2.9
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,13 +42,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
# psram_settings: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -56,11 +55,6 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.03.21
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.3.0
|
||||
# GitHub : https://github.com/SeByDocKy/pvbrain2
|
||||
|
||||
substitutions:
|
||||
@@ -9,13 +9,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
# psram: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -23,11 +22,6 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.1.1
|
||||
# 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>.
|
||||
|
||||
# https://github.com/Xinyuan-LilyGO/T-Connect-Pro
|
||||
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "LilyGo T-Connect Pro"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1: RS232
|
||||
tx_pin_1: '4'
|
||||
rx_pin_1: '5'
|
||||
# uart_esp_2: RS485
|
||||
tx_pin_2: '17'
|
||||
rx_pin_2: '18'
|
||||
# canbus_esp32_can: CAN
|
||||
tx_pin_4: '6'
|
||||
rx_pin_4: '7'
|
||||
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
variant: esp32s3
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
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
|
||||
|
||||
# ESPHome does not support W5500 and other SPI devices at the same SPI bus:
|
||||
# https://github.com/esphome/esphome/discussions/6720
|
||||
# ethernet:
|
||||
# id: my_network
|
||||
# type: W5500
|
||||
# clk_pin: 12
|
||||
# mosi_pin: 11
|
||||
# miso_pin: 13
|
||||
# cs_pin: 10
|
||||
# interrupt_pin: 9
|
||||
# reset_pin: 48
|
||||
# clock_speed: 40MHz
|
||||
|
||||
logger:
|
||||
baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus"
|
||||
|
||||
# SPI for ethernet/LCD/LoRa
|
||||
spi:
|
||||
- id: lilygo_spi_bus
|
||||
clk_pin: 12
|
||||
mosi_pin: 11
|
||||
miso_pin: 13
|
||||
|
||||
# I2C for touch controller CST226SE
|
||||
i2c:
|
||||
sda: 39
|
||||
scl: 40
|
||||
|
||||
touchscreen:
|
||||
- platform: cst226
|
||||
id: my_touchscreen
|
||||
interrupt_pin: 3
|
||||
reset_pin: 47
|
||||
|
||||
display:
|
||||
# T-Connect-Pro display
|
||||
# https://esphome.io/components/display/ili9xxx
|
||||
- platform: ili9xxx
|
||||
spi_id: lilygo_spi_bus
|
||||
id: my_display
|
||||
model: ST7796
|
||||
cs_pin: 21
|
||||
dc_pin: 41
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
dimensions:
|
||||
height: 222
|
||||
width: 480
|
||||
offset_height: 49
|
||||
offset_width: 0
|
||||
invert_colors: true
|
||||
color_palette: 8BIT
|
||||
update_interval: 10s
|
||||
data_rate: 40Mhz
|
||||
|
||||
# Define a PWM output for the display backlight
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 46
|
||||
id: backlight_pwm
|
||||
|
||||
# ESP32 board without LED
|
||||
- platform: template
|
||||
id: esp_output
|
||||
type: binary
|
||||
write_action:
|
||||
- logger.log: "Inverter Heartbeat Output"
|
||||
|
||||
# Define a monochromatic, dimmable light for the backlight
|
||||
light:
|
||||
- platform: monochromatic
|
||||
output: backlight_pwm
|
||||
name: "Display Backlight"
|
||||
id: back_light
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
|
||||
# ESP Light used to see the inverter heartbeat
|
||||
# Internal : only specifying an id without a name will implicitly set this to true.
|
||||
- platform: binary
|
||||
id: esp_light
|
||||
output: esp_output
|
||||
|
||||
# Relay: IO8
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "Relay"
|
||||
icon: "mdi:electric-switch"
|
||||
pin:
|
||||
number: GPIO8
|
||||
inverted: true
|
||||
mode: OUTPUT_OPEN_DRAIN
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,6 +22,7 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "LilyGo T-Connect"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1
|
||||
tx_pin_1: '4'
|
||||
rx_pin_1: '5'
|
||||
@@ -43,14 +44,13 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
# psram: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
variant: esp32s3
|
||||
flash_size: 16MB # ajust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -58,17 +58,11 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
domain: !secret domain
|
||||
ap:
|
||||
|
||||
logger:
|
||||
baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.30
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,15 +22,13 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "Touch LCD 4.3"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1 UART (USB-C) port
|
||||
tx_pin_1: '43'
|
||||
rx_pin_1: '44'
|
||||
# uart_esp_2 RS485 port
|
||||
tx_pin_2: '15'
|
||||
rx_pin_2: '16'
|
||||
# uart_esp_3
|
||||
tx_pin_3: ''
|
||||
rx_pin_3: ''
|
||||
# canbus_esp32_can USB / CAN port
|
||||
tx_pin_4: '20'
|
||||
rx_pin_4: '19'
|
||||
@@ -46,12 +44,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
variant: esp32s3
|
||||
flash_size: 8MB
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
sdkconfig_options:
|
||||
@@ -103,7 +101,7 @@ output:
|
||||
write_action:
|
||||
- logger.log: "Inverter Heartbeat Output"
|
||||
#- lambda: C++ code; # action to be performed at each inverter heartbeat
|
||||
|
||||
|
||||
# Enable CAN TJA1051 chip
|
||||
- platform: gpio
|
||||
id: USB_SEL
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.05.30
|
||||
# Version : 1.1.1
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -22,15 +22,13 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "Touch LCD 7"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1 UART1 (USB-C) / UART2 port (UART selection switch SW1)
|
||||
tx_pin_1: '43'
|
||||
rx_pin_1: '44'
|
||||
# uart_esp_2 RS485 port
|
||||
tx_pin_2: '15'
|
||||
rx_pin_2: '16'
|
||||
# uart_esp_3
|
||||
tx_pin_3: ''
|
||||
rx_pin_3: ''
|
||||
# canbus_esp32_can USB / CAN port
|
||||
tx_pin_4: '20'
|
||||
rx_pin_4: '19'
|
||||
@@ -46,12 +44,12 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
variant: esp32s3
|
||||
flash_size: 8MB
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
sdkconfig_options:
|
||||
@@ -103,7 +101,7 @@ output:
|
||||
write_action:
|
||||
- logger.log: "Inverter Heartbeat Output"
|
||||
#- lambda: C++ code; # action to be performed at each inverter heartbeat
|
||||
|
||||
|
||||
# Enable CAN TJA1051 chip
|
||||
- platform: gpio
|
||||
id: USB_SEL
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.1.3
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -20,6 +20,7 @@
|
||||
substitutions:
|
||||
board_chip: "ESP32-S3"
|
||||
board_name: "DevKitC-1"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1
|
||||
tx_pin_1: '1'
|
||||
rx_pin_1: '2'
|
||||
@@ -41,12 +42,11 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32-s3.yaml
|
||||
# psram: !include board_options_psram_settings.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 8MB # adjust according to your ESP32-S3 version
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -54,11 +54,6 @@ esphome:
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio # use Dual IO (dio) instead of Quad IO (qio) to prevent boot loop after flashing
|
||||
|
||||
# PSRAM activation with default options
|
||||
# psram:
|
||||
# mode: octal
|
||||
# speed: 80MHz
|
||||
|
||||
wifi:
|
||||
id: my_network
|
||||
ssid: !secret wifi_ssid
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.2
|
||||
# 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-S3"
|
||||
board_name: "YBoard"
|
||||
# Interfaces GPIOs
|
||||
# uart_esp_1
|
||||
tx_pin_1: '20'
|
||||
rx_pin_1: '19'
|
||||
# uart_esp_2
|
||||
tx_pin_2: '15'
|
||||
rx_pin_2: '16'
|
||||
# uart_esp_3
|
||||
tx_pin_3: '13'
|
||||
rx_pin_3: '14'
|
||||
# canbus_esp32_can
|
||||
tx_pin_4: '17'
|
||||
rx_pin_4: '18'
|
||||
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
flash_size: 8MB # ajust according to your ESP32-S3 version
|
||||
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
|
||||
|
||||
logger:
|
||||
baud_rate: 0 # frees the 3rd UART and avoids some bugs like "WK2168 with canbus" or "BLE client with RS485 modbus"
|
||||
hardware_uart: UART0 # UART0 / 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
|
||||
# name: ${name} ESP32 Light
|
||||
rgb_order: GRB
|
||||
pin: 48
|
||||
num_leds: 1
|
||||
# rmt_channel: 0
|
||||
chipset: ws2812
|
||||
entity_category: config
|
||||
default_transition_length: 0ms
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,13 +42,13 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
|
||||
# Atom Lite - SKU:C008
|
||||
# https://docs.m5stack.com/en/core/ATOM%20Lite
|
||||
esp32:
|
||||
board: m5stack-atom
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,13 +42,13 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32.yaml
|
||||
board_rgb_led: !include board_options_rgb_led_status.yaml
|
||||
|
||||
# Atom Matrix - SKU:C008-B
|
||||
# https://docs.m5stack.com/en/core/ATOM%20Matrix
|
||||
esp32:
|
||||
board: m5stack-atom
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.04.01
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,10 +42,10 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32doit-devkit-v1
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.01.16
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -24,10 +24,10 @@ substitutions:
|
||||
packages:
|
||||
device_base: !include ../base/device_base.yaml
|
||||
device_base_wifi: !include ../base/device_base_wifi.yaml
|
||||
device_cpu_freq_240: !include board_options_cpu_freq_240_esp32.yaml
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
cpu_frequency: 240MHz
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
@@ -53,7 +53,7 @@ logger:
|
||||
# +--------------------------+
|
||||
# | ESP32 PIN | HAT PIN |
|
||||
# +--------------------------+
|
||||
# | MOSI | 23 | 19 |
|
||||
# | MOSI | 23 | 19 |
|
||||
# | MISO | 19 | 21 |
|
||||
# | SCLK | 18 | 23 |
|
||||
# | CS_0 | 5 | 24 |
|
||||
|
||||
Loaded 100 of 128 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user