Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5da5cce67c | ||
|
|
17b7500f0c | ||
|
|
b9632e0eb5 | ||
|
|
53d8a189b2 | ||
|
|
53e754c753 | ||
|
|
5ba0a5cf26 | ||
|
|
34fda6c92a | ||
|
|
5ffffb74b6 | ||
|
|
ef90c2de0d | ||
|
|
cdc86cc298 | ||
|
|
c18b9c8d55 | ||
|
|
62b5844ec2 | ||
|
|
4c6dba8add | ||
|
|
da0acaa3c5 | ||
|
|
2fa5b4d4f3 | ||
|
|
b143d9bd60 | ||
|
|
1bacb100d1 | ||
|
|
d0e42a27a4 | ||
|
|
965ad74127 | ||
|
|
85e3c90043 | ||
|
|
32b2dfc450 | ||
|
|
348f7f2e0c | ||
|
|
a6e4f24df5 | ||
|
|
02dec09cfd | ||
|
|
750cfd11a5 | ||
|
|
b5c05bf350 | ||
|
|
b3333e4949 | ||
|
|
c00aa954f5 | ||
|
|
a0cfea8b5d | ||
|
|
345181c185 | ||
|
|
7c97912913 |
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.07.08
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -245,6 +245,17 @@ views:
|
||||
- entity: switch.yambms_demo_yambms_1_automatic_discharge_current
|
||||
name: Automatic Discharge Current
|
||||
title: YamBMS - Auto CCL / DCL
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: select.yambms_yambms_1_automatic_float_voltage
|
||||
name: Automatic Float Voltage
|
||||
- entity: sensor.yambms_yambms_1_auto_float_voltage
|
||||
name: Auto Float Voltage
|
||||
- entity: number.yambms_yambms_1_auto_float_update_interval
|
||||
name: Update Interval
|
||||
- entity: number.yambms_yambms_1_auto_float_voltage_step
|
||||
name: Voltage Step
|
||||
title: YamBMS - Auto Float
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: number.yambms_demo_yambms_1_rebulk_soc
|
||||
@@ -256,9 +267,9 @@ views:
|
||||
title: YamBMS - ReBulk
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: number.yambms_demo_yambms_1_max_charge_current
|
||||
- entity: number.yambms_demo_yambms_1_max_charge_current_percent
|
||||
name: Max charge current (%)
|
||||
- entity: number.yambms_demo_yambms_1_max_discharge_current
|
||||
- entity: number.yambms_demo_yambms_1_max_discharge_current_percent
|
||||
name: Max discharge current (%)
|
||||
title: YamBMS - Max current (%)
|
||||
- type: entities
|
||||
@@ -305,20 +316,29 @@ views:
|
||||
- entity: sensor.yambms_demo_canbus_1_inverter_heartbeat
|
||||
name: CANBUS 1 Inverter Heartbeat
|
||||
title: YamBMS - Inverter Heartbeat
|
||||
- type: entities
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: sensor.yambms_demo_debug_heap_free
|
||||
- entity: sensor.yambms_debug_free_psram_percent
|
||||
name: Debug Free PSRAM (%)
|
||||
- entity: sensor.yambms_debug_free_psram
|
||||
name: Debug Free PSRAM
|
||||
- entity: sensor.yambms_debug_heap_free_percent
|
||||
name: Debug Heap free (%)
|
||||
- entity: sensor.yambms_demo_debug_heap_free_2
|
||||
- entity: sensor.yambms_debug_heap_free
|
||||
name: Debug Heap free
|
||||
- entity: sensor.yambms_demo_debug_heap_max_block
|
||||
- entity: sensor.yambms_debug_heap_max_block_percent
|
||||
name: Debug Heap max block (%)
|
||||
- entity: sensor.yambms_demo_debug_heap_max_block_2
|
||||
- entity: sensor.yambms_debug_heap_max_block
|
||||
name: Debug Heap max block
|
||||
- entity: sensor.yambms_demo_debug_loop_time
|
||||
- entity: sensor.yambms_debug_loop_time
|
||||
name: Debug Loop time
|
||||
- entity: sensor.yambms_demo_debug_reset_reason
|
||||
- entity: sensor.yambms_esp32_esphome_version
|
||||
name: ESPHome version
|
||||
- entity: sensor.yambms_debug_reset_reason
|
||||
name: Debug Reset reason
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
title: YamBMS - DEBUG
|
||||
- title: BMS
|
||||
type: sections
|
||||
@@ -355,43 +375,43 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Charge : <b>{% if
|
||||
states('switch.yambms_demo_bms_1_charge_switch') == 'on'
|
||||
states('switch.yambms_demo_bms_1_charge_switch', rounded=True) == 'on'
|
||||
%} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_1_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_1_charge_switch', rounded=True) | upper
|
||||
}}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_1_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_1_charge_switch', rounded=True) | upper
|
||||
}}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Discharge : <b> {% if
|
||||
states('switch.yambms_demo_bms_1_discharge_switch') ==
|
||||
states('switch.yambms_demo_bms_1_discharge_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_1_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_1_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_1_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_1_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Balance : <b> {% if
|
||||
states('switch.yambms_demo_bms_1_balance_switch') ==
|
||||
states('switch.yambms_demo_bms_1_balance_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_1_balance_switch') |
|
||||
states('switch.yambms_demo_bms_1_balance_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_1_balance_switch') |
|
||||
states('switch.yambms_demo_bms_1_balance_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_1_total_voltage') }}
|
||||
states('sensor.yambms_demo_bms_1_total_voltage', rounded=True) }}
|
||||
V</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_1_current') }} A</font></b>
|
||||
states('sensor.yambms_demo_bms_1_current', rounded=True) }} A</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_1_power') }} W</font>
|
||||
states('sensor.yambms_demo_bms_1_power', rounded=True) }} W</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -399,32 +419,32 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soc')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soc', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soh')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_1_battery_soh', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_1_battery_capacity') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_1_battery_capacity', rounded=True) }} Ah</font><br>
|
||||
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>{{
|
||||
states('sensor.yambms_demo_bms_1_max_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_1_max_temperature', rounded=True) }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Remain Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_1_capacity_remaining') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_1_capacity_remaining', rounded=True) }} Ah</font><br>
|
||||
Cycle Count : <font color=#41CD52>
|
||||
{{ states('sensor.yambms_demo_bms_1_charging_cycles') }}</font><br>
|
||||
{{ states('sensor.yambms_demo_bms_1_charging_cycles', rounded=True) }}</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>{{
|
||||
states('sensor.yambms_demo_bms_1_min_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_1_min_temperature', rounded=True) }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -512,43 +532,43 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Charge : <b>{% if
|
||||
states('switch.yambms_demo_bms_2_charge_switch') == 'on'
|
||||
states('switch.yambms_demo_bms_2_charge_switch', rounded=True) == 'on'
|
||||
%} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_2_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_2_charge_switch', rounded=True) | upper
|
||||
}}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_2_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_2_charge_switch', rounded=True) | upper
|
||||
}}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Discharge : <b> {% if
|
||||
states('switch.yambms_demo_bms_2_discharge_switch') ==
|
||||
states('switch.yambms_demo_bms_2_discharge_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_2_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_2_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_2_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_2_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Balance : <b> {% if
|
||||
states('switch.yambms_demo_bms_2_balance_switch') ==
|
||||
states('switch.yambms_demo_bms_2_balance_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_2_balance_switch') |
|
||||
states('switch.yambms_demo_bms_2_balance_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_2_balance_switch') |
|
||||
states('switch.yambms_demo_bms_2_balance_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_2_total_voltage') }}
|
||||
states('sensor.yambms_demo_bms_2_total_voltage', rounded=True) }}
|
||||
V</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_2_current') }} A</font></b>
|
||||
states('sensor.yambms_demo_bms_2_current', rounded=True) }} A</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_2_power') }} W</font>
|
||||
states('sensor.yambms_demo_bms_2_power', rounded=True) }} W</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -556,32 +576,32 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soc')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soc', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soh')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_2_battery_soh', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_2_battery_capacity') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_2_battery_capacity', rounded=True) }} Ah</font><br>
|
||||
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>{{
|
||||
states('sensor.yambms_demo_bms_2_max_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_2_max_temperature', rounded=True) }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Remain Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_2_capacity_remaining') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_2_capacity_remaining', rounded=True) }} Ah</font><br>
|
||||
Cycle Count : <font color=#41CD52>
|
||||
{{ states('sensor.yambms_demo_bms_2_charging_cycles') }}</font><br>
|
||||
{{ states('sensor.yambms_demo_bms_2_charging_cycles', rounded=True) }}</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>{{
|
||||
states('sensor.yambms_demo_bms_2_min_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_2_min_temperature', rounded=True) }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -669,43 +689,43 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Charge : <b>{% if
|
||||
states('switch.yambms_demo_bms_3_charge_switch') == 'on'
|
||||
states('switch.yambms_demo_bms_3_charge_switch', rounded=True) == 'on'
|
||||
%} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_3_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_3_charge_switch', rounded=True) | upper
|
||||
}}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_3_charge_switch') | upper
|
||||
states('switch.yambms_demo_bms_3_charge_switch', rounded=True) | upper
|
||||
}}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Discharge : <b> {% if
|
||||
states('switch.yambms_demo_bms_3_discharge_switch') ==
|
||||
states('switch.yambms_demo_bms_3_discharge_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_3_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_3_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_3_discharge_switch') |
|
||||
states('switch.yambms_demo_bms_3_discharge_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center>Balance : <b> {% if
|
||||
states('switch.yambms_demo_bms_3_balance_switch') ==
|
||||
states('switch.yambms_demo_bms_3_balance_switch', rounded=True) ==
|
||||
'on' %} <font color=#41CD52>{{
|
||||
states('switch.yambms_demo_bms_3_balance_switch') |
|
||||
states('switch.yambms_demo_bms_3_balance_switch', rounded=True) |
|
||||
upper }}</font> {% else %} <font color=#3090C7>{{
|
||||
states('switch.yambms_demo_bms_3_balance_switch') |
|
||||
states('switch.yambms_demo_bms_3_balance_switch', rounded=True) |
|
||||
upper }}</font> {% endif %}
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_3_total_voltage') }}
|
||||
states('sensor.yambms_demo_bms_3_total_voltage', rounded=True) }}
|
||||
V</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_3_current') }} A</font></b>
|
||||
states('sensor.yambms_demo_bms_3_current', rounded=True) }} A</font></b>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font color=#41CD52 size=4>{{
|
||||
states('sensor.yambms_demo_bms_3_power') }} W</font>
|
||||
states('sensor.yambms_demo_bms_3_power', rounded=True) }} W</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -713,32 +733,32 @@ views:
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoC : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soc')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soc', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center><b><font size=4>SoH : <font color=#41CD52
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soh')
|
||||
size=4>{{ states('sensor.yambms_demo_bms_3_battery_soh', rounded=True)
|
||||
}} %</font></font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Battery Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_3_battery_capacity') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_3_battery_capacity', rounded=True) }} Ah</font><br>
|
||||
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>{{
|
||||
states('sensor.yambms_demo_bms_3_max_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_3_max_temperature', rounded=True) }} °C</font>
|
||||
- type: markdown
|
||||
content: >-
|
||||
<center> Remain Capacity : <font color=#41CD52>{{
|
||||
states('sensor.yambms_demo_bms_3_capacity_remaining') }} Ah</font><br>
|
||||
states('sensor.yambms_demo_bms_3_capacity_remaining', rounded=True) }} Ah</font><br>
|
||||
Cycle Count : <font color=#41CD52>
|
||||
{{ states('sensor.yambms_demo_bms_3_charging_cycles') }}</font><br>
|
||||
{{ states('sensor.yambms_demo_bms_3_charging_cycles', rounded=True) }}</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>{{
|
||||
states('sensor.yambms_demo_bms_3_min_temperature') }} °C</font>
|
||||
states('sensor.yambms_demo_bms_3_min_temperature', rounded=True) }} °C</font>
|
||||
- type: grid
|
||||
square: false
|
||||
columns: 2
|
||||
@@ -812,7 +832,7 @@ views:
|
||||
hours_to_show: 8
|
||||
- graph: line
|
||||
type: sensor
|
||||
entity: sensor.yambms_demo_shunt_1_soc
|
||||
entity: sensor.yambms_demo_shunt_1_state_of_charge
|
||||
detail: 2
|
||||
name: SoC
|
||||
hours_to_show: 8
|
||||
@@ -850,7 +870,7 @@ views:
|
||||
name: Shunt 1 Current
|
||||
- entity: sensor.yambms_demo_shunt_1_power
|
||||
name: Shunt 1 Power
|
||||
- entity: sensor.yambms_demo_shunt_1_soc
|
||||
- entity: sensor.yambms_demo_shunt_1_state_of_charge
|
||||
name: Shunt 1 SoC
|
||||
- entity: sensor.yambms_demo_shunt_1_temperature
|
||||
name: Shunt 1 Temperature
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.19
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -245,6 +245,17 @@ views:
|
||||
- entity: switch.yambms_yambms_1_automatic_discharge_current
|
||||
name: Automatic Discharge Current
|
||||
title: YamBMS - Auto CCL / DCL
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: select.yambms_yambms_1_automatic_float_voltage
|
||||
name: Automatic Float Voltage
|
||||
- entity: sensor.yambms_yambms_1_auto_float_voltage
|
||||
name: Auto Float Voltage
|
||||
- entity: number.yambms_yambms_1_auto_float_update_interval
|
||||
name: Update Interval
|
||||
- entity: number.yambms_yambms_1_auto_float_voltage_step
|
||||
name: Voltage Step
|
||||
title: YamBMS - Auto Float
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: number.yambms_yambms_1_rebulk_soc
|
||||
@@ -256,9 +267,9 @@ views:
|
||||
title: YamBMS - ReBulk
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: number.yambms_yambms_1_max_charge_current
|
||||
- entity: number.yambms_yambms_1_max_charge_current_percent
|
||||
name: Max charge current (%)
|
||||
- entity: number.yambms_yambms_1_max_discharge_current
|
||||
- entity: number.yambms_yambms_1_max_discharge_current_percent
|
||||
name: Max discharge current (%)
|
||||
title: YamBMS - Max current (%)
|
||||
- type: entities
|
||||
@@ -305,18 +316,27 @@ views:
|
||||
- entity: sensor.yambms_canbus_1_inverter_heartbeat
|
||||
name: CANBUS 1 Inverter Heartbeat
|
||||
title: YamBMS - Inverter Heartbeat
|
||||
- type: entities
|
||||
- type: entity-filter
|
||||
entities:
|
||||
- entity: sensor.yambms_debug_heap_free
|
||||
- entity: sensor.yambms_debug_free_psram_percent
|
||||
name: Debug Free PSRAM (%)
|
||||
- entity: sensor.yambms_debug_free_psram
|
||||
name: Debug Free PSRAM
|
||||
- entity: sensor.yambms_debug_heap_free_percent
|
||||
name: Debug Heap free (%)
|
||||
- entity: sensor.yambms_debug_heap_free_2
|
||||
- entity: sensor.yambms_debug_heap_free
|
||||
name: Debug Heap free
|
||||
- entity: sensor.yambms_debug_heap_max_block
|
||||
- entity: sensor.yambms_debug_heap_max_block_percent
|
||||
name: Debug Heap max block (%)
|
||||
- entity: sensor.yambms_debug_heap_max_block_2
|
||||
- entity: sensor.yambms_debug_heap_max_block
|
||||
name: Debug Heap max block
|
||||
- entity: sensor.yambms_debug_loop_time
|
||||
name: Debug Loop time
|
||||
- entity: sensor.yambms_esp32_esphome_version
|
||||
name: ESPHome version
|
||||
- entity: sensor.yambms_debug_reset_reason
|
||||
name: Debug Reset reason
|
||||
conditions:
|
||||
- condition: state
|
||||
state_not: unavailable
|
||||
title: YamBMS - DEBUG
|
||||
@@ -113,7 +113,7 @@ rx_pin: 22 # to CAN board CRX (with 4.7K resistor except for SN65HVD230)
|
||||
|
||||
## Requirements
|
||||
|
||||
* [ESPHome 2025.5.0 or higher](https://github.com/esphome/esphome/releases)
|
||||
* [ESPHome 2025.6.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)
|
||||
@@ -142,6 +142,16 @@ for statistics collection. Only [@Sleeper85](https://github.com/Sleeper85) have
|
||||
|
||||
## Changelog
|
||||
|
||||
* YamBMS 1.5.7 :
|
||||
* Adapted the default `min/max` values for the `Float` slider
|
||||
* Merged [PR 53](https://github.com/Sleeper85/esphome-yambms/pull/53) Add feature `Auto Float Voltage`
|
||||
* New dashboard for `Auto Float Voltage` function
|
||||
* Defining `state_class` for all YamBMS sensors
|
||||
* Set esphome `min_version` to `2025.6.0`
|
||||
* Fixed: change `Charge Status` to `Bulk` when `Force Charge` is requested
|
||||
* Merged [PR 70](https://github.com/Sleeper85/esphome-yambms/pull/70) Dashboards compatible with `HA 2025.7`
|
||||
* Merged [PR 70](https://github.com/Sleeper85/esphome-yambms/pull/71) Dashboard `max/min` cell voltage in color using macro
|
||||
* Removed all special characters in entities name + dashboards correction
|
||||
* 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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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 Demo' # Prefix added in front of all entity names and also to classify them.
|
||||
friendly_name : 'YamBMS Demo' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'pvbrain2' # 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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'pvbrain2' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.19
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -32,9 +32,9 @@ logger:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | Shunt Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,10 +67,10 @@ api:
|
||||
# | 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'
|
||||
# Name
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -68,9 +68,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.17
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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 Demo' # Prefix added in front of all entity names and also to classify them.
|
||||
friendly_name : 'YamBMS Demo' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
|
||||
# This YAML is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation, either version 3
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <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
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | 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_JK_UART_4G-GPS_full.yaml'
|
||||
vars:
|
||||
bms_id: '1' # must be a number
|
||||
bms_name: 'JK-BMS 1'
|
||||
bms_uart_id: 'uart_esp_1'
|
||||
# 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_UART_4G-GPS_full.yaml'
|
||||
vars:
|
||||
bms_id: '2' # must be a number
|
||||
bms_name: 'JK-BMS 2'
|
||||
bms_uart_id: 'uart_esp_2'
|
||||
# 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.06.14
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
substitutions:
|
||||
# Name
|
||||
name: '' # Name that can be added as a second prefix after the friendly name, you can leave it blank.
|
||||
hostname: 'pvbrain2' # 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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'pvbrain2' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.14
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.26
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -67,9 +67,9 @@ api:
|
||||
# +--------------------------------------+
|
||||
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.
|
||||
friendly_name : 'YamBMS' # Prefix added in front of the `entity display name`, also used to classify them.
|
||||
hostname: 'yambms' # Name of your ESPHome node registered on the IP network (DNS name, must be unique) and prefix added in front of the `entity id`.
|
||||
name: '' # This name can be added as a second prefix, both for the `entity display name` and the `entity id`, you can leave it blank.
|
||||
# +--------------------------------------+
|
||||
# | YamBMS Settings |
|
||||
# +--------------------------------------+
|
||||
|
||||
@@ -21,7 +21,7 @@ Other configurations are possible, don't hesitate to communicate what works well
|
||||
| Inverter | Battery mode | CAN protocol |
|
||||
| --- | --- | --- |
|
||||
| Deye | Lithium 00 | PYLON 1.2 |
|
||||
| GoodWe | LX U5.4-L | PYLON + |
|
||||
| GoodWe | LX U5.4-L | PYLON V2 |
|
||||
| Sofar | Automatic | PYLON 1.2 |
|
||||
| Growatt | CAN L52 | PYLON 1.2 |
|
||||
| Solis | AoBo | SMA |
|
||||
@@ -115,6 +115,20 @@ You can compare `Auto CCL` to a max speed limiter in a car.
|
||||
|
||||
Current control should work with any inverter that uses `CAN` control.
|
||||
|
||||
## Auto Float Voltage
|
||||
|
||||
When switching from `Bulk` to `Float`, therefore lowering the `Requested Charge Voltage (CVL)`, some inverters (e.g. Deye SUN-12K) will start to discharge the battery (into the grid) with up to max. discharge current until the
|
||||
`Requested Charge Voltage (CVL)` is reached. The reason behind this is that the inverter sees this as battery overvoltage and wants to counter it.
|
||||
As workaround, by enabling `Automatic Float Voltage`, it will lower the `Requested Charge Voltage (CVL)` gradually in small steps until the float voltage is reached, allowing the battery more time to settle down.
|
||||
There are two modes available: `Follow` and `Immediately`.
|
||||
|
||||
- `Follow`: Waits until the battery voltage itself is below the current `Requested Charge Voltage (CVL)` before lowering `Requested Charge Voltage (CVL)` further. It follows the battery voltage until the target float voltage is reached.
|
||||
- `Immediately`: Immediately start lowering the `Requested Charge Voltage (CVL)`, independent of the current battery voltage. That means it can go below the current battery voltage.
|
||||
|
||||
This feature might not work with all inverters as good or is not required if these do not discharge the battery.
|
||||
|
||||
The voltage steps can be configured (default `0.1V`) with `Auto Float Voltage Step`. The update interval can be configured (default `3 minutes`) with `Auto Float Update Interval`.
|
||||
|
||||
## Requested Values
|
||||
|
||||

|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.19
|
||||
# Version : 1.5.7
|
||||
# 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>.
|
||||
|
||||
substitutions:
|
||||
yambms_version: "1.5.6"
|
||||
yambms_version: "1.5.7"
|
||||
|
||||
esphome:
|
||||
name: ${hostname}
|
||||
@@ -28,4 +28,4 @@ esphome:
|
||||
project:
|
||||
name: Sleeper85.YamBMS
|
||||
version: ${yambms_version}
|
||||
min_version: 2025.5.0
|
||||
min_version: 2025.6.0
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.08.28
|
||||
# Version : 1.1.3
|
||||
# Updated : 2025.07.11
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -42,7 +42,7 @@ sensor:
|
||||
id: esp32_loop_time
|
||||
|
||||
- platform: template
|
||||
name: ${name} ${debug_name} Heap free (%)
|
||||
name: ${name} ${debug_name} Heap free percent
|
||||
id: esp32_heap_free_percent
|
||||
unit_of_measurement: '%'
|
||||
accuracy_decimals: 2
|
||||
@@ -54,7 +54,7 @@ sensor:
|
||||
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
|
||||
|
||||
- platform: template
|
||||
name: ${name} ${debug_name} Heap max block (%)
|
||||
name: ${name} ${debug_name} Heap max block percent
|
||||
id: esp32_heap_max_block_percent
|
||||
unit_of_measurement: '%'
|
||||
accuracy_decimals: 2
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.08.28
|
||||
# Version : 1.1.3
|
||||
# Updated : 2025.07.11
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -45,7 +45,7 @@ sensor:
|
||||
id: esp32_loop_time
|
||||
|
||||
- platform: template
|
||||
name: ${name} ${debug_name} Heap free (%)
|
||||
name: ${name} ${debug_name} Heap free percent
|
||||
id: esp32_heap_free_percent
|
||||
unit_of_measurement: '%'
|
||||
accuracy_decimals: 2
|
||||
@@ -57,7 +57,7 @@ sensor:
|
||||
lambda: return ( id(esp32_heap_free).state * 100 / 327680 );
|
||||
|
||||
- platform: template
|
||||
name: ${name} ${debug_name} Heap max block (%)
|
||||
name: ${name} ${debug_name} Heap max block percent
|
||||
id: esp32_heap_max_block_percent
|
||||
unit_of_measurement: '%'
|
||||
accuracy_decimals: 2
|
||||
@@ -69,7 +69,7 @@ sensor:
|
||||
lambda: return ( id(esp32_heap_max_block).state * 100 / 327680 );
|
||||
|
||||
- platform: template
|
||||
name: ${name} ${debug_name} Free PSRAM (%)
|
||||
name: ${name} ${debug_name} Free PSRAM percent
|
||||
id: esp32_free_psram_percent
|
||||
unit_of_measurement: '%'
|
||||
accuracy_decimals: 2
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.10
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.06.19
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# This YAML is free software: you can redistribute it and/or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -101,6 +101,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} Discharge switch"
|
||||
balancer:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} Balance switch"
|
||||
# Commits 2024.01.20 : Add new switch entities of firmware version 14 (from V11)
|
||||
heating:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -98,6 +98,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} Discharge switch"
|
||||
balancer:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} Balance switch"
|
||||
# +--------------------------------------+
|
||||
- platform: ble_client
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -98,6 +98,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} Discharge switch"
|
||||
balancer:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} Balance switch"
|
||||
# +--------------------------------------+
|
||||
- platform: ble_client
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.6
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.7
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -49,6 +49,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} discharging"
|
||||
balancing:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} balancing"
|
||||
emergency:
|
||||
name: "${name} ${bms_name} emergency"
|
||||
|
||||
+7
-12
@@ -1,4 +1,4 @@
|
||||
# Updated : 2025.03.12
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.1.1
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -17,17 +17,12 @@
|
||||
# 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>.
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "${name} ${yambms_name} Force Float"
|
||||
id: ${yambms_id}_switch_force_float
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
|
||||
interval:
|
||||
- interval: ${yambms_update_interval}
|
||||
- interval: ${bms_update_interval}
|
||||
then:
|
||||
- lambda: |-
|
||||
// Force Float => Float
|
||||
if (id(${yambms_id}_switch_force_float).state) id(${yambms_id}_charge_status) = "Float";
|
||||
if (id(bms${bms_id}_max_cell_voltage).state > ${bms_top_v})
|
||||
id(bms${bms_id}_balance_switch).turn_on();
|
||||
else if (id(bms${bms_id}_min_cell_voltage).state < ${bms_bot_v})
|
||||
id(bms${bms_id}_balance_switch).turn_on();
|
||||
else id(bms${bms_id}_balance_switch).turn_off();
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.12
|
||||
# Version : 1.1.5
|
||||
# Updated : 2025.06.28
|
||||
# Version : 1.1.6
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -312,6 +312,30 @@ sensor:
|
||||
- delta: 1
|
||||
lambda: return ${bms_charging_cycles};
|
||||
|
||||
# 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;
|
||||
|
||||
number:
|
||||
# errors_bitmask (16bits)
|
||||
- platform: template
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.8
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.9
|
||||
# GitHub : https://github.com/syssi/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -93,6 +93,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} Discharge switch"
|
||||
balancer:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} Balance switch"
|
||||
# +--------------------------------------+
|
||||
- platform: ble_client
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -46,6 +46,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} discharging"
|
||||
balancing:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} balancing"
|
||||
emergency:
|
||||
name: "${name} ${bms_name} emergency"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -48,6 +48,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} discharging"
|
||||
balancing:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} balancing"
|
||||
emergency:
|
||||
name: "${name} ${bms_name} emergency"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.11
|
||||
# Version : 1.2.7
|
||||
# Updated : 2025.07.07
|
||||
# Version : 1.2.8
|
||||
# GitHub : https://github.com/txubelaxu/esphome-jk-bms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -48,6 +48,7 @@ switch:
|
||||
id: bms${bms_id}_discharge_switch
|
||||
name: "${name} ${bms_name} discharging"
|
||||
balancing:
|
||||
id: bms${bms_id}_balance_switch
|
||||
name: "${name} ${bms_name} balancing"
|
||||
emergency:
|
||||
name: "${name} ${bms_name} emergency"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2024.11.11
|
||||
# Version : 1.1.2
|
||||
# Updated : 2025.10.11
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -79,7 +79,7 @@ sensor:
|
||||
# state_of_charge
|
||||
- platform: template
|
||||
id: shunt${shunt_id}_soc
|
||||
name: "${name} ${shunt_name} SoC"
|
||||
name: "${name} ${shunt_name} State of Charge"
|
||||
update_interval: ${shunt_update_interval}
|
||||
accuracy_decimals: 0
|
||||
unit_of_measurement: '%'
|
||||
|
||||
+33
-13
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.07.11
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -17,6 +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>.
|
||||
|
||||
substitutions:
|
||||
yambms_version: "1.5.7"
|
||||
# Max. charge current : corresponds to the maximum charge current which may be requested by YamBMS.
|
||||
# The current requested will be proportional to the BMS count without ever exceeding this value.
|
||||
yambms_max_requested_charge_current: '300' # in Ampere
|
||||
# Max. discharge current : corresponds to the maximum discharge current which may be requested by YamBMS.
|
||||
# The current requested will be proportional to the BMS count without ever exceeding this value.
|
||||
yambms_max_requested_discharge_current: '300' # in Ampere
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Packages |
|
||||
# +--------------------------------------+
|
||||
@@ -28,6 +37,7 @@ packages:
|
||||
yambms_auto_cvl: !include yambms_auto_cvl.yaml
|
||||
yambms_auto_ccl: !include yambms_auto_ccl.yaml
|
||||
yambms_auto_dcl: !include yambms_auto_dcl.yaml
|
||||
yambms_auto_float: !include yambms_auto_float.yaml
|
||||
|
||||
# Execute once
|
||||
esphome:
|
||||
@@ -41,7 +51,7 @@ esphome:
|
||||
{
|
||||
// LFP
|
||||
id(${yambms_id}_cell_nominal_v) = 3.20;
|
||||
id(${yambms_id}_cell_min_charge_v) = 3.37; // Fully charged at rest
|
||||
id(${yambms_id}_cell_min_charge_v) = 3.35; // Fully charged at rest
|
||||
id(${yambms_id}_cell_max_charge_v) = 3.65;
|
||||
id(${yambms_id}_cell_max_discharge_v) = 3.00; // Not used
|
||||
}
|
||||
@@ -66,8 +76,8 @@ esphome:
|
||||
id(${yambms_id}_bulk_voltage).traits.set_min_value(round(cell_count * id(${yambms_id}_cell_min_charge_v) * 10) / 10);
|
||||
id(${yambms_id}_bulk_voltage).traits.set_max_value(round(cell_count * id(${yambms_id}_cell_max_charge_v) * 10) / 10);
|
||||
// Float V.
|
||||
id(${yambms_id}_float_voltage).traits.set_min_value(round(cell_count * (id(${yambms_id}_cell_min_charge_v) - 0.1) * 10) / 10);
|
||||
id(${yambms_id}_float_voltage).traits.set_max_value(round(cell_count * (id(${yambms_id}_cell_min_charge_v) + 0.1) * 10) / 10);
|
||||
id(${yambms_id}_float_voltage).traits.set_min_value(round(cell_count * (id(${yambms_id}_cell_min_charge_v) - 0.15) * 10) / 10);
|
||||
id(${yambms_id}_float_voltage).traits.set_max_value(round(cell_count * (id(${yambms_id}_cell_min_charge_v) + 0.05) * 10) / 10);
|
||||
// Rebulk V.
|
||||
id(${yambms_id}_rebulk_voltage).traits.set_min_value(round(cell_count * id(${yambms_id}_cell_nominal_v) * 10) / 10);
|
||||
id(${yambms_id}_rebulk_voltage).traits.set_max_value(round(cell_count * id(${yambms_id}_cell_min_charge_v) * 10) / 10);
|
||||
@@ -123,6 +133,10 @@ globals:
|
||||
type: float
|
||||
restore_value: no
|
||||
initial_value: '0.0'
|
||||
- id: ${yambms_id}_auto_float
|
||||
type: float
|
||||
restore_value: no
|
||||
initial_value: '0.0'
|
||||
- id: ${yambms_id}_eoc
|
||||
type: bool
|
||||
restore_value: no
|
||||
@@ -244,7 +258,7 @@ number:
|
||||
entity_category: config
|
||||
# internal: true
|
||||
- platform: template
|
||||
name: "${name} ${yambms_name} Max charge current (%)"
|
||||
name: "${name} ${yambms_name} Max charge current percent"
|
||||
id: "${yambms_id}_max_charge_current_pct"
|
||||
step: 1
|
||||
min_value: 0
|
||||
@@ -257,7 +271,7 @@ number:
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
- platform: template
|
||||
name: "${name} ${yambms_name} Max discharge current (%)"
|
||||
name: "${name} ${yambms_name} Max discharge current percent"
|
||||
id: "${yambms_id}_max_discharge_current_pct"
|
||||
step: 1
|
||||
min_value: 0
|
||||
@@ -321,9 +335,6 @@ script:
|
||||
id(${yambms_id}_eoc_timestamp) = id(my_time).utcnow().timestamp; // Store charge completion timestamp
|
||||
|
||||
sensor:
|
||||
# +--------------------------------------+
|
||||
# | Total Daily Energy |
|
||||
# +--------------------------------------+
|
||||
# Battery Charging Power
|
||||
- platform: template
|
||||
name: ${name} ${yambms_name} Battery Charging Power
|
||||
@@ -331,6 +342,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: 'W'
|
||||
device_class: power
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
if (id(${yambms_id}_power).state > 0)
|
||||
@@ -344,6 +356,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: 'W'
|
||||
device_class: power
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
lambda: |-
|
||||
if (id(${yambms_id}_power).state <= 0)
|
||||
@@ -355,8 +368,8 @@ sensor:
|
||||
name: "${name} ${yambms_name} Daily Charging Energy"
|
||||
power_id: ${yambms_id}_battery_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
|
||||
@@ -367,8 +380,8 @@ sensor:
|
||||
name: "${name} ${yambms_name} Daily Discharging Energy"
|
||||
power_id: ${yambms_id}_battery_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
|
||||
@@ -402,6 +415,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -415,7 +429,7 @@ sensor:
|
||||
return (id(${yambms_id}_bulk_voltage).state + id(${yambms_id}_inverter_offset_v).state + id(${yambms_id}_auto_cvl));
|
||||
// Float
|
||||
else if (id(${yambms_id}_charging_instruction).state == "Float")
|
||||
return (id(${yambms_id}_float_voltage).state + id(${yambms_id}_inverter_offset_v).state);
|
||||
return (id(${yambms_id}_float_voltage).state + id(${yambms_id}_inverter_offset_v).state) + id(${yambms_id}_auto_float);
|
||||
// Stop Charging
|
||||
else return (id(${yambms_id}_rebulk_voltage).state + id(${yambms_id}_inverter_offset_v).state);
|
||||
|
||||
@@ -428,6 +442,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -448,6 +463,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: A
|
||||
device_class: current
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -469,6 +485,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: A
|
||||
device_class: current
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -490,6 +507,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: "%"
|
||||
device_class: battery
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -584,6 +602,8 @@ text_sensor:
|
||||
else if (id(${yambms_id}_max_cell_voltage).state <= cell_rebulk_v) id(${yambms_id}_charge_status) = "Bulk";
|
||||
// SoC <= 85% (default value)
|
||||
else if (id(${yambms_id}_battery_soc).state <= id(${yambms_id}_rebulk_soc).state) id(${yambms_id}_charge_status) = "Bulk";
|
||||
// Force Charge requested
|
||||
else if (id(${yambms_id}_requested_force_charge).state) id(${yambms_id}_charge_status) = "Bulk";
|
||||
|
||||
// +-----------------------------------------------+
|
||||
// | Charging Logic (Bulk) |
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
# Updated : 2025.06.19
|
||||
# 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>.
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
name: ${name} ${yambms_name} Automatic Float Voltage
|
||||
id: ${yambms_id}_auto_float_mode
|
||||
options:
|
||||
- "Disabled"
|
||||
- "Follow"
|
||||
- "Immediately"
|
||||
restore_value: true
|
||||
initial_option: "Disabled"
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
set_action:
|
||||
- logger.log:
|
||||
format: "Auto Float chosen option: %s"
|
||||
args: ["x.c_str()"]
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
name: "${name} ${yambms_name} Auto Float Voltage Step"
|
||||
id: "${yambms_id}_auto_float_step_v"
|
||||
step: 0.1
|
||||
min_value: 0.1
|
||||
max_value: 0.5
|
||||
restore_value: true
|
||||
mode: "${yambms_input_number_mode}"
|
||||
initial_value: 0.1
|
||||
unit_of_measurement: V
|
||||
icon: mdi:sine-wave
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
|
||||
- platform: template
|
||||
name: "${name} ${yambms_name} Auto Float Update Interval"
|
||||
id: "${yambms_id}_auto_float_interval"
|
||||
step: 1
|
||||
min_value: 1
|
||||
max_value: 10
|
||||
restore_value: true
|
||||
mode: "${yambms_input_number_mode}"
|
||||
initial_value: 3
|
||||
unit_of_measurement: min
|
||||
icon: mdi:timer-sand
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
|
||||
sensor:
|
||||
# Filter total voltage (max)
|
||||
- platform: template
|
||||
id: "auto_float_total_voltage"
|
||||
update_interval: 30s
|
||||
filters:
|
||||
- max:
|
||||
window_size: 4
|
||||
lambda: return id(${yambms_id}_total_voltage).state;
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Auto Float Voltage Control |
|
||||
# +--------------------------------------+
|
||||
- platform: template
|
||||
name: ${name} ${yambms_name} Auto Float Voltage
|
||||
id: auto_float
|
||||
update_interval: 60s # Keep this at 60s, otherwise "Auto Float Update Interval" won't work!
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
#internal: true
|
||||
filters:
|
||||
- round: 1
|
||||
lambda: |-
|
||||
// Variables
|
||||
const auto mode = id(${yambms_id}_auto_float_mode).active_index(); // Mode: 0 - Disabled, 1 - Follow, 2 - Immediately
|
||||
const double bulk_v = id(${yambms_id}_bulk_voltage).state; // Bulk voltage
|
||||
const double target_float_v = id(${yambms_id}_float_voltage).state; // Target float voltage
|
||||
const double step_v = id(${yambms_id}_auto_float_step_v).state; // Voltage step for each decrement
|
||||
const double max_total_v = id(auto_float_total_voltage).state; // Total voltage (mean and max)
|
||||
const auto update_interval = id(${yambms_id}_auto_float_interval).state; // Update interval in minutes
|
||||
static double float_v = bulk_v; // Initialize float voltage
|
||||
static uint8_t time_count = 0; // Interval counter
|
||||
bool decrement = false;
|
||||
|
||||
// Auto Float disabled OR Bulk voltage <= Float voltage
|
||||
if ((mode == 0) || (bulk_v <= target_float_v))
|
||||
{
|
||||
// Return Float voltage
|
||||
id(${yambms_id}_auto_float) = 0;
|
||||
return target_float_v;
|
||||
}
|
||||
// Auto Float enabled + Floating
|
||||
else if (id(${yambms_id}_charge_status) == "Float")
|
||||
{
|
||||
// Check update interval
|
||||
if (++time_count >= update_interval)
|
||||
{
|
||||
// Follow mode : Wait for battery to drop below current float voltage
|
||||
if (mode == 1)
|
||||
{
|
||||
// Check battery voltage and wait for the battery voltage to reach current float voltage
|
||||
if ((id(${yambms_id}_total_voltage).state > 0) && (max_total_v <= float_v)) decrement = true;
|
||||
}
|
||||
// Immediately mode : Start immediately
|
||||
else if (mode == 2) decrement = true;
|
||||
|
||||
// Decrement Float voltage
|
||||
if (decrement && (float_v > target_float_v)) float_v -= step_v;
|
||||
// Stop Decrement
|
||||
if (float_v < target_float_v) float_v = target_float_v;
|
||||
|
||||
// Reset update interval counter
|
||||
time_count = 0;
|
||||
}
|
||||
}
|
||||
// Auto Float enabled + No Floating
|
||||
else
|
||||
{
|
||||
// Reset values
|
||||
id(${yambms_id}_auto_float) = 0;
|
||||
float_v = bulk_v;
|
||||
time_count = 0;
|
||||
}
|
||||
|
||||
// Store difference for CVL calculation
|
||||
id(${yambms_id}_auto_float) = float_v - target_float_v;
|
||||
|
||||
// Return Auto Float voltage
|
||||
return float_v;
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.06.16
|
||||
# Version : 1.5.6
|
||||
# Updated : 2025.07.10
|
||||
# Version : 1.5.7
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -382,10 +382,11 @@ sensor:
|
||||
# max_charge_current SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_max_charge_current
|
||||
name: "${name} ${yambms_name} Max Charge current (Σ)"
|
||||
name: "${name} ${yambms_name} Max Charge current"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: A
|
||||
device_class: current
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -395,10 +396,11 @@ sensor:
|
||||
# max_discharge_current SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_max_discharge_current
|
||||
name: "${name} ${yambms_name} Max Discharge Current (Σ)"
|
||||
name: "${name} ${yambms_name} Max Discharge Current"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: A
|
||||
device_class: current
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -411,6 +413,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Min Voltage Cell"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:numeric
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -423,6 +426,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Max Voltage Cell"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:numeric
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -436,6 +440,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -449,6 +454,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -462,6 +468,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -472,10 +479,11 @@ sensor:
|
||||
# total_voltage MEAN
|
||||
- platform: template
|
||||
id: ${yambms_id}_total_voltage
|
||||
name: "${name} ${yambms_name} Total Voltage (Ø)"
|
||||
name: "${name} ${yambms_name} Total Voltage"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 2
|
||||
filters:
|
||||
- or:
|
||||
@@ -485,10 +493,11 @@ sensor:
|
||||
# current SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_current
|
||||
name: "${name} ${yambms_name} Current (Σ)"
|
||||
name: "${name} ${yambms_name} Current"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: A
|
||||
device_class: current
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -498,10 +507,11 @@ sensor:
|
||||
# power SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_power
|
||||
name: "${name} ${yambms_name} Power (Σ)"
|
||||
name: "${name} ${yambms_name} Power"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: W
|
||||
device_class: power
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -511,10 +521,11 @@ sensor:
|
||||
# state_of_charge MEAN
|
||||
- platform: template
|
||||
id: ${yambms_id}_state_of_charge
|
||||
name: "${name} ${yambms_name} SoC (Ø)"
|
||||
name: "${name} ${yambms_name} SoC"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: '%'
|
||||
device_class: battery
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -529,6 +540,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: "%"
|
||||
device_class: battery
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -538,10 +550,10 @@ sensor:
|
||||
# installed_battery_capacity SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_installed_battery_capacity
|
||||
name: "${name} ${yambms_name} Installed Battery Capacity (Σ)"
|
||||
name: "${name} ${yambms_name} Installed Battery Capacity"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
state_class: measurement
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
@@ -553,10 +565,10 @@ sensor:
|
||||
# battery_capacity SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_battery_capacity
|
||||
name: "${name} ${yambms_name} Battery Capacity (Σ)"
|
||||
name: "${name} ${yambms_name} Battery Capacity"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
state_class: measurement
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
@@ -567,10 +579,10 @@ sensor:
|
||||
# capacity_remaining_ah SUM
|
||||
- platform: template
|
||||
id: ${yambms_id}_capacity_remaining_ah
|
||||
name: "${name} ${yambms_name} Capacity Remaining (Σ)"
|
||||
name: "${name} ${yambms_name} Capacity Remaining"
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: Ah
|
||||
state_class: total
|
||||
state_class: measurement
|
||||
icon: mdi:car-battery
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
@@ -585,6 +597,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -598,6 +611,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -611,6 +625,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: V
|
||||
device_class: voltage
|
||||
state_class: measurement
|
||||
accuracy_decimals: 3
|
||||
filters:
|
||||
- or:
|
||||
@@ -624,6 +639,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: °C
|
||||
device_class: temperature
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -637,6 +653,7 @@ sensor:
|
||||
update_interval: ${yambms_update_interval}
|
||||
unit_of_measurement: °C
|
||||
device_class: temperature
|
||||
state_class: measurement
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- or:
|
||||
@@ -649,6 +666,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Min temperature sensor"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:numeric
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -661,6 +679,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Max temperature sensor"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:numeric
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -670,9 +689,10 @@ sensor:
|
||||
# charging_cycles MEAN
|
||||
- platform: template
|
||||
id: ${yambms_id}_charging_cycles
|
||||
name: "${name} ${yambms_name} Charging Cycles (Ø)"
|
||||
name: "${name} ${yambms_name} Charging Cycles"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -685,6 +705,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Errors Bitmask Alarm"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:alert-circle-outline
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -697,6 +718,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} Errors Bitmask Warning"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:alert-circle-outline
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -709,6 +731,7 @@ sensor:
|
||||
name: "${name} ${yambms_name} BMS in alarm"
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -721,6 +744,7 @@ sensor:
|
||||
id: ${yambms_id}_bms_count
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -734,6 +758,7 @@ sensor:
|
||||
id: ${yambms_id}_bms_combined
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -747,6 +772,7 @@ sensor:
|
||||
id: ${yambms_id}_bms_blocking_charge
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -759,6 +785,7 @@ sensor:
|
||||
id: ${yambms_id}_bms_blocking_discharge
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -771,6 +798,7 @@ sensor:
|
||||
id: ${yambms_id}_shunt_count
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
@@ -784,6 +812,7 @@ sensor:
|
||||
id: ${yambms_id}_shunt_combined
|
||||
update_interval: ${yambms_update_interval}
|
||||
icon: mdi:counter
|
||||
state_class: measurement
|
||||
accuracy_decimals: 0
|
||||
filters:
|
||||
- or:
|
||||
|
||||
Reference in new issue
Block a user