Improved DEMO/FAKE BMS and dashboard

This commit is contained in:
Sleeper85 committed 2026-01-14 20:13:26 +01:00
1 parent edbb20b719
commit 00109a7c6e
3 files changed
+242 -211

No files matched your search

@@ -1,4 +1,4 @@
# Updated : 2025.12.23
# Updated : 2026.01.14
# Version : 1.6.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -331,6 +331,10 @@ views:
name: Max discharge current
- entity: switch.yambms_demo_yambms_1_temperature_based_current_limitation
name: Temperature-based current limitation
- entity: sensor.yambms_demo_yambms_1_ccl_derating_reason
name: CCL Derating Reason
- entity: sensor.yambms_demo_yambms_1_dcl_derating_reason
name: DCL Derating Reason
title: YamBMS - Max requested current
- type: entities
entities:
@@ -462,31 +466,29 @@ views:
cards:
- type: markdown
content: >-
<center>Charge : <b>{% if
states('switch.bms_1_charge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_1_charge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_1_charge_switch', rounded=True) |
upper }}</font> {% endif %}
<center>Charge : <b>{% if states('switch.bms_1_charge_switch',
rounded=True) == 'on' %} <font color=#41CD52>{{
states('switch.bms_1_charge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_1_charge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Discharge : <b> {% if
states('switch.bms_1_discharge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_1_discharge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_1_discharge_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_1_discharge_switch', rounded=True) == 'on'
%} <font color=#41CD52>{{
states('switch.bms_1_discharge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_1_discharge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Balance : <b> {% if
states('switch.bms_1_balance_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_1_balance_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_1_balance_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_1_balance_switch', rounded=True) == 'on' %}
<font color=#41CD52>{{ states('switch.bms_1_balance_switch',
rounded=True) | upper }}</font> {% else %} <font
color=#3090C7>{{ states('switch.bms_1_balance_switch',
rounded=True) | upper }}</font> {% endif %}
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -495,8 +497,7 @@ views:
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
states('sensor.bms_1_current', rounded=True) }}
A</font></b>
states('sensor.bms_1_current', rounded=True) }} A</font></b>
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -508,13 +509,13 @@ views:
- type: markdown
content: >-
<center><b><font size=4>SoC :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_1_battery_soc',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_1_battery_soc', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center><b><font size=4>SoH :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_1_battery_soh',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_1_battery_soh', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center> Battery Capacity :&nbsp;&nbsp;<font color=#41CD52>{{
@@ -524,7 +525,7 @@ views:
:&nbsp;&nbsp;<font color=#41CD52>3.329 V</font><br> Balance
Cur. :&nbsp;&nbsp;<font color=#41CD52>0.00 A</font><br> Max
temp. :&nbsp;&nbsp;<font color=#41CD52>{{
states('sensor.bms_1_max_temperature', rounded=True) }}
states('number.bms_1_max_temperature', rounded=True) }}
°C</font>
- type: markdown
content: >-
@@ -535,7 +536,7 @@ views:
rounded=True) }}</font><br> Delta Cell Vol. :&nbsp;&nbsp;<font
color=#41CD52>0.007 V</font><br> MOS temp. :&nbsp;&nbsp;<font
color=#41CD52>25.6 °C</font><br> Min temp. :&nbsp;&nbsp;<font
color=#41CD52>{{ states('sensor.bms_1_min_temperature',
color=#41CD52>{{ states('number.bms_1_min_temperature',
rounded=True) }} °C</font>
- type: grid
square: false
@@ -553,21 +554,16 @@ views:
11. 3.311 V / 0.050 Ω<br> 12. 3.312 V / 0.050 Ω<br> 13. 3.313
V / 0.050 Ω<br> 14. 3.314 V / 0.050 Ω<br> 15. 3.315 V / 0.050
Ω<br> 16. 3.316 V / 0.050 Ω<br> </center>
- type: entity-filter
- type: entities
entities:
- entity: switch.bms_1_online_status_switch
- entity: switch.bms_1_charge_switch
name: Charge switch
- entity: switch.bms_1_discharge_switch
name: Discharge switch
- entity: switch.bms_1_balance_switch
name: Balance switch
- entity: switch.bms_1_enable_bluetooth_connection
name: Bluetooth
- entity: number.bms_1_charging_cycles_offset
name: Charging Cycles Offset
conditions:
- condition: state
state_not: unavailable
- entity: number.bms_1_min_cell_voltage
- entity: number.bms_1_max_cell_voltage
- entity: number.bms_1_min_temperature
- entity: number.bms_1_max_temperature
- type: grid
column_span: 1
cards:
@@ -613,31 +609,29 @@ views:
cards:
- type: markdown
content: >-
<center>Charge : <b>{% if
states('switch.bms_2_charge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_2_charge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_2_charge_switch', rounded=True) |
upper }}</font> {% endif %}
<center>Charge : <b>{% if states('switch.bms_2_charge_switch',
rounded=True) == 'on' %} <font color=#41CD52>{{
states('switch.bms_2_charge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_2_charge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Discharge : <b> {% if
states('switch.bms_2_discharge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_2_discharge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_2_discharge_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_2_discharge_switch', rounded=True) == 'on'
%} <font color=#41CD52>{{
states('switch.bms_2_discharge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_2_discharge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Balance : <b> {% if
states('switch.bms_2_balance_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_2_balance_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_2_balance_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_2_balance_switch', rounded=True) == 'on' %}
<font color=#41CD52>{{ states('switch.bms_2_balance_switch',
rounded=True) | upper }}</font> {% else %} <font
color=#3090C7>{{ states('switch.bms_2_balance_switch',
rounded=True) | upper }}</font> {% endif %}
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -646,8 +640,7 @@ views:
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
states('sensor.bms_2_current', rounded=True) }}
A</font></b>
states('sensor.bms_2_current', rounded=True) }} A</font></b>
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -659,13 +652,13 @@ views:
- type: markdown
content: >-
<center><b><font size=4>SoC :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_2_battery_soc',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_2_battery_soc', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center><b><font size=4>SoH :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_2_battery_soh',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_2_battery_soh', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center> Battery Capacity :&nbsp;&nbsp;<font color=#41CD52>{{
@@ -675,7 +668,7 @@ views:
:&nbsp;&nbsp;<font color=#41CD52>3.329 V</font><br> Balance
Cur. :&nbsp;&nbsp;<font color=#41CD52>0.00 A</font><br> Max
temp. :&nbsp;&nbsp;<font color=#41CD52>{{
states('sensor.bms_2_max_temperature', rounded=True) }}
states('number.bms_2_max_temperature', rounded=True) }}
°C</font>
- type: markdown
content: >-
@@ -686,7 +679,7 @@ views:
rounded=True) }}</font><br> Delta Cell Vol. :&nbsp;&nbsp;<font
color=#41CD52>0.007 V</font><br> MOS temp. :&nbsp;&nbsp;<font
color=#41CD52>25.6 °C</font><br> Min temp. :&nbsp;&nbsp;<font
color=#41CD52>{{ states('sensor.bms_2_min_temperature',
color=#41CD52>{{ states('number.bms_2_min_temperature',
rounded=True) }} °C</font>
- type: grid
square: false
@@ -704,21 +697,16 @@ views:
11. 3.311 V / 0.050 Ω<br> 12. 3.312 V / 0.050 Ω<br> 13. 3.313
V / 0.050 Ω<br> 14. 3.314 V / 0.050 Ω<br> 15. 3.315 V / 0.050
Ω<br> 16. 3.316 V / 0.050 Ω<br> </center>
- type: entity-filter
- type: entities
entities:
- entity: switch.bms_2_online_status_switch
- entity: switch.bms_2_charge_switch
name: Charge switch
- entity: switch.bms_2_discharge_switch
name: Discharge switch
- entity: switch.bms_2_balance_switch
name: Balance switch
- entity: switch.bms_2_enable_bluetooth_connection
name: Bluetooth
- entity: number.bms_2_charging_cycles_offset
name: Charging Cycles Offset
conditions:
- condition: state
state_not: unavailable
- entity: number.bms_2_min_cell_voltage
- entity: number.bms_2_max_cell_voltage
- entity: number.bms_2_min_temperature
- entity: number.bms_2_max_temperature
- type: grid
column_span: 1
cards:
@@ -764,31 +752,29 @@ views:
cards:
- type: markdown
content: >-
<center>Charge : <b>{% if
states('switch.bms_3_charge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_3_charge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_3_charge_switch', rounded=True) |
upper }}</font> {% endif %}
<center>Charge : <b>{% if states('switch.bms_3_charge_switch',
rounded=True) == 'on' %} <font color=#41CD52>{{
states('switch.bms_3_charge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_3_charge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Discharge : <b> {% if
states('switch.bms_3_discharge_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_3_discharge_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_3_discharge_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_3_discharge_switch', rounded=True) == 'on'
%} <font color=#41CD52>{{
states('switch.bms_3_discharge_switch', rounded=True) | upper
}}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_3_discharge_switch', rounded=True) | upper
}}</font> {% endif %}
- type: markdown
content: >-
<center>Balance : <b> {% if
states('switch.bms_3_balance_switch', rounded=True) ==
'on' %} <font color=#41CD52>{{
states('switch.bms_3_balance_switch', rounded=True) |
upper }}</font> {% else %} <font color=#3090C7>{{
states('switch.bms_3_balance_switch', rounded=True) |
upper }}</font> {% endif %}
states('switch.bms_3_balance_switch', rounded=True) == 'on' %}
<font color=#41CD52>{{ states('switch.bms_3_balance_switch',
rounded=True) | upper }}</font> {% else %} <font
color=#3090C7>{{ states('switch.bms_3_balance_switch',
rounded=True) | upper }}</font> {% endif %}
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -797,8 +783,7 @@ views:
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
states('sensor.bms_3_current', rounded=True) }}
A</font></b>
states('sensor.bms_3_current', rounded=True) }} A</font></b>
- type: markdown
content: >-
<center><b><font color=#41CD52 size=4>{{
@@ -810,13 +795,13 @@ views:
- type: markdown
content: >-
<center><b><font size=4>SoC :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_3_battery_soc',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_3_battery_soc', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center><b><font size=4>SoH :&nbsp;&nbsp;<font color=#41CD52
size=4>{{ states('sensor.bms_3_battery_soh',
rounded=True) }} %</font></font>
size=4>{{ states('sensor.bms_3_battery_soh', rounded=True) }}
%</font></font>
- type: markdown
content: >-
<center> Battery Capacity :&nbsp;&nbsp;<font color=#41CD52>{{
@@ -826,7 +811,7 @@ views:
:&nbsp;&nbsp;<font color=#41CD52>3.329 V</font><br> Balance
Cur. :&nbsp;&nbsp;<font color=#41CD52>0.00 A</font><br> Max
temp. :&nbsp;&nbsp;<font color=#41CD52>{{
states('sensor.bms_3_max_temperature', rounded=True) }}
states('number.bms_3_max_temperature', rounded=True) }}
°C</font>
- type: markdown
content: >-
@@ -837,7 +822,7 @@ views:
rounded=True) }}</font><br> Delta Cell Vol. :&nbsp;&nbsp;<font
color=#41CD52>0.007 V</font><br> MOS temp. :&nbsp;&nbsp;<font
color=#41CD52>25.6 °C</font><br> Min temp. :&nbsp;&nbsp;<font
color=#41CD52>{{ states('sensor.bms_3_min_temperature',
color=#41CD52>{{ states('number.bms_3_min_temperature',
rounded=True) }} °C</font>
- type: grid
square: false
@@ -855,21 +840,16 @@ views:
11. 3.311 V / 0.050 Ω<br> 12. 3.312 V / 0.050 Ω<br> 13. 3.313
V / 0.050 Ω<br> 14. 3.314 V / 0.050 Ω<br> 15. 3.315 V / 0.050
Ω<br> 16. 3.316 V / 0.050 Ω<br> </center>
- type: entity-filter
- type: entities
entities:
- entity: switch.bms_3_online_status_switch
- entity: switch.bms_3_charge_switch
name: Charge switch
- entity: switch.bms_3_discharge_switch
name: Discharge switch
- entity: switch.bms_3_balance_switch
name: Balance switch
- entity: switch.bms_3_enable_bluetooth_connection
name: Bluetooth
- entity: number.bms_3_charging_cycles_offset
name: Charging Cycles Offset
conditions:
- condition: state
state_not: unavailable
- entity: number.bms_3_min_cell_voltage
- entity: number.bms_3_max_cell_voltage
- entity: number.bms_3_min_temperature
- entity: number.bms_3_max_temperature
- title: Shunt
type: sections
max_columns: 3
+11 -17
View File
@@ -1,4 +1,4 @@
# Updated : 2026.01.07
# Updated : 2026.01.14
# Version : 1.6.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -259,10 +259,10 @@ packages:
shunt_id: '1' # must be a number
shunt_name: 'Shunt 1'
# Shunt sensors values
shunt_voltage: '53.41' # V
shunt_current: '37.5' # A
shunt_power: '2003' # W
shunt_soc: '86' # %e/
shunt_voltage: '52.81' # V
shunt_current: '17.5' # A
shunt_power: '924' # W
shunt_soc: '50' # %
bms:
url: https://github.com/Sleeper85/esphome-yambms
@@ -286,10 +286,8 @@ packages:
bms_min_voltage_cell: '2' # cell number 1~16
bms_max_cell_voltage: '3.341' # V
bms_max_voltage_cell: '11' # cell number 1~16
bms_temperature_sensor_1: '21.1' # °C
bms_temperature_sensor_2: '21.3' # °C
bms_temperature_sensor_3: '21.5' # °C
bms_temperature_sensor_4: '21.7' # °C
bms_min_temperature: '9.1' # °C
bms_max_temperature: '9.3' # °C
bms_max_charge_current: '100' # A
bms_max_discharge_current: '100' # A
bms_cell_ovp: '3.650' # V Used by 'Auto CCL' functions
@@ -313,10 +311,8 @@ packages:
bms_min_voltage_cell: '14' # cell number 1~16
bms_max_cell_voltage: '3.339' # V
bms_max_voltage_cell: '3' # cell number 1~16
bms_temperature_sensor_1: '21.8' # °C
bms_temperature_sensor_2: '21.6' # °C
bms_temperature_sensor_3: '21.4' # °C
bms_temperature_sensor_4: '21.2' # °C
bms_min_temperature: '15.1' # °C
bms_max_temperature: '15.3' # °C
bms_max_charge_current: '100' # A
bms_max_discharge_current: '100' # A
bms_cell_ovp: '3.650' # V Used by 'Auto CCL' functions
@@ -340,10 +336,8 @@ packages:
bms_min_voltage_cell: '7' # cell number 1~16
bms_max_cell_voltage: '3.336' # V
bms_max_voltage_cell: '9' # cell number 1~16
bms_temperature_sensor_1: '21.9' # °C
bms_temperature_sensor_2: '22.0' # °C
bms_temperature_sensor_3: '22.1' # °C
bms_temperature_sensor_4: '22.2' # °C
bms_min_temperature: '20.1' # °C
bms_max_temperature: '20.3' # °C
bms_max_charge_current: '100' # A
bms_max_discharge_current: '100' # A
bms_cell_ovp: '3.650' # V Used by 'Auto CCL' functions
+136 -79
View File
@@ -1,5 +1,5 @@
# Updated : 2025.12.22
# Version : 1.2.2
# Updated : 2026.01.14
# Version : 1.2.3
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -20,8 +20,8 @@
packages:
balancer: !include bms_base_balancer.yaml
bms_battery_soc: !include bms_base_battery_soc.yaml
bms_temperature_sensor: !include bms_temperature_sensor_4.yaml
sub_device: !include bms_base_sub_device.yaml
# bms_temperature_sensor: !include bms_temperature_sensor_4.yaml
number:
# errors_bitmask (16bits)
@@ -29,6 +29,7 @@ number:
id: bms${bms_id}_yambms_errors_bitmask_number
device_id: bms_${bms_id}
name: "YamBMS Errors Bitmask"
mode: box
step: 1
min_value: 0
max_value: 65535
@@ -37,6 +38,64 @@ number:
icon: mdi:alert-circle-outline
optimistic: true
entity_category: config
# min_cell_voltage
- platform: template
id: bms${bms_id}_min_cell_voltage
device_id: bms_${bms_id}
name: "min cell voltage"
mode: box
step: 0.005
min_value: 2.5
max_value: 3.65
restore_value: true
initial_value: ${bms_min_cell_voltage}
device_class: voltage
optimistic: true
entity_category: config
# max_cell_voltage
- platform: template
id: bms${bms_id}_max_cell_voltage
device_id: bms_${bms_id}
name: "max cell voltage"
mode: box
step: 0.005
min_value: 2.5
max_value: 3.65
restore_value: true
initial_value: ${bms_max_cell_voltage}
device_class: voltage
optimistic: true
entity_category: config
# min_temperature
- platform: template
id: bms${bms_id}_min_temperature
device_id: bms_${bms_id}
name: "min temperature"
mode: box
step: 0.1
min_value: -30.0
max_value: 60.0
restore_value: true
initial_value: ${bms_min_temperature}
unit_of_measurement: °C
device_class: temperature
optimistic: true
entity_category: config
# max_temperature
- platform: template
id: bms${bms_id}_max_temperature
device_id: bms_${bms_id}
name: "max temperature"
mode: box
step: 0.1
min_value: -30.0
max_value: 60.0
restore_value: true
initial_value: ${bms_max_temperature}
unit_of_measurement: °C
device_class: temperature
optimistic: true
entity_category: config
switch:
- platform: template
@@ -224,95 +283,33 @@ sensor:
- delta: 1
lambda: return ${bms_max_voltage_cell};
# min_cell_voltage
# MIN temperature sensor
- platform: template
id: bms${bms_id}_min_cell_voltage
id: bms${bms_id}_min_temperature_sensor
device_id: bms_${bms_id}
name: "Min Cell Voltage"
name: "min temperature sensor"
update_interval: ${bms_update_interval}
accuracy_decimals: 3
unit_of_measurement: V
device_class: voltage
accuracy_decimals: 0
icon: mdi:numeric
filters:
- or:
- throttle: 10s
- delta: 0.001
lambda: return ${bms_min_cell_voltage};
- delta: 1
lambda: return ${bms_id}01;
# max_cell_voltage
# MAX temperature sensor
- platform: template
id: bms${bms_id}_max_cell_voltage
id: bms${bms_id}_max_temperature_sensor
device_id: bms_${bms_id}
name: "Max Cell Voltage"
name: "max temperature sensor"
update_interval: ${bms_update_interval}
accuracy_decimals: 3
unit_of_measurement: V
device_class: voltage
accuracy_decimals: 0
icon: mdi:numeric
filters:
- or:
- throttle: 10s
- delta: 0.001
lambda: return ${bms_max_cell_voltage};
# temperature_sensor_1
- platform: template
id: bms${bms_id}_temperature_sensor_1
device_id: bms_${bms_id}
name: "Temperature Sensor 1"
update_interval: ${bms_update_interval}
accuracy_decimals: 1
unit_of_measurement: °C
device_class: temperature
filters:
- or:
- throttle: 10s
- delta: 0.1
lambda: return ${bms_temperature_sensor_1};
# temperature_sensor_2
- platform: template
id: bms${bms_id}_temperature_sensor_2
device_id: bms_${bms_id}
name: "Temperature Sensor 2"
update_interval: ${bms_update_interval}
accuracy_decimals: 1
unit_of_measurement: °C
device_class: temperature
filters:
- or:
- throttle: 10s
- delta: 0.1
lambda: return ${bms_temperature_sensor_2};
# temperature_sensor_3
- platform: template
id: bms${bms_id}_temperature_sensor_3
device_id: bms_${bms_id}
name: "Temperature Sensor 3"
update_interval: ${bms_update_interval}
accuracy_decimals: 1
unit_of_measurement: °C
device_class: temperature
filters:
- or:
- throttle: 10s
- delta: 0.1
lambda: return ${bms_temperature_sensor_3};
# temperature_sensor_4
- platform: template
id: bms${bms_id}_temperature_sensor_4
device_id: bms_${bms_id}
name: "Temperature Sensor 4"
update_interval: ${bms_update_interval}
accuracy_decimals: 1
unit_of_measurement: °C
device_class: temperature
filters:
- or:
- throttle: 10s
- delta: 0.1
lambda: return ${bms_temperature_sensor_4};
- delta: 1
lambda: return ${bms_id}02;
# max_charge_current
- platform: template
@@ -444,3 +441,63 @@ sensor:
- throttle: 10s
- delta: 1
lambda: return id(bms${bms_id}_yambms_errors_bitmask_number).state;
# # temperature_sensor_1
# - platform: template
# id: bms${bms_id}_temperature_sensor_1
# device_id: bms_${bms_id}
# name: "Temperature Sensor 1"
# update_interval: ${bms_update_interval}
# accuracy_decimals: 1
# unit_of_measurement: °C
# device_class: temperature
# filters:
# - or:
# - throttle: 10s
# - delta: 0.1
# lambda: return ${bms_temperature_sensor_1};
# # temperature_sensor_2
# - platform: template
# id: bms${bms_id}_temperature_sensor_2
# device_id: bms_${bms_id}
# name: "Temperature Sensor 2"
# update_interval: ${bms_update_interval}
# accuracy_decimals: 1
# unit_of_measurement: °C
# device_class: temperature
# filters:
# - or:
# - throttle: 10s
# - delta: 0.1
# lambda: return ${bms_temperature_sensor_2};
# # temperature_sensor_3
# - platform: template
# id: bms${bms_id}_temperature_sensor_3
# device_id: bms_${bms_id}
# name: "Temperature Sensor 3"
# update_interval: ${bms_update_interval}
# accuracy_decimals: 1
# unit_of_measurement: °C
# device_class: temperature
# filters:
# - or:
# - throttle: 10s
# - delta: 0.1
# lambda: return ${bms_temperature_sensor_3};
# # temperature_sensor_4
# - platform: template
# id: bms${bms_id}_temperature_sensor_4
# device_id: bms_${bms_id}
# name: "Temperature Sensor 4"
# update_interval: ${bms_update_interval}
# accuracy_decimals: 1
# unit_of_measurement: °C
# device_class: temperature
# filters:
# - or:
# - throttle: 10s
# - delta: 0.1
# lambda: return ${bms_temperature_sensor_4};