Added battery_capacity number
This commit is contained in:
1 parent
cb3b0eedba
commit
0783bc8ab0
2 files changed
+25
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Updated : 2026.08.11
|
||||
# Updated : 2026.08.26
|
||||
# Version : 1.8.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -715,6 +715,7 @@ views:
|
||||
- entity: switch.bms_1_online_status_switch
|
||||
- entity: switch.bms_1_charge_switch
|
||||
- entity: switch.bms_1_discharge_switch
|
||||
- entity: number.bms_1_battery_capacity_number
|
||||
- entity: number.bms_1_battery_soc_number
|
||||
- entity: number.bms_1_current_number
|
||||
- entity: number.bms_1_min_cell_voltage_number
|
||||
@@ -869,6 +870,7 @@ views:
|
||||
- entity: switch.bms_2_online_status_switch
|
||||
- entity: switch.bms_2_charge_switch
|
||||
- entity: switch.bms_2_discharge_switch
|
||||
- entity: number.bms_2_battery_capacity_number
|
||||
- entity: number.bms_2_battery_soc_number
|
||||
- entity: number.bms_2_current_number
|
||||
- entity: number.bms_2_min_cell_voltage_number
|
||||
@@ -1023,6 +1025,7 @@ views:
|
||||
- entity: switch.bms_3_online_status_switch
|
||||
- entity: switch.bms_3_charge_switch
|
||||
- entity: switch.bms_3_discharge_switch
|
||||
- entity: number.bms_3_battery_capacity_number
|
||||
- entity: number.bms_3_battery_soc_number
|
||||
- entity: number.bms_3_current_number
|
||||
- entity: number.bms_3_min_cell_voltage_number
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2026.03.03
|
||||
# Version : 1.1.2
|
||||
# Updated : 2026.08.26
|
||||
# Version : 1.1.3
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -55,6 +55,25 @@ number:
|
||||
then:
|
||||
- lambda: id(bms${bms_id}_current).publish_state(x);
|
||||
|
||||
# battery_capacity
|
||||
- platform: template
|
||||
id: bms${bms_id}_number_battery_capacity
|
||||
device_id: bms_${bms_id}
|
||||
name: "Battery Capacity number"
|
||||
mode: box
|
||||
step: 1
|
||||
min_value: 0
|
||||
max_value: 2000
|
||||
restore_value: true
|
||||
initial_value: ${bms_battery_capacity}
|
||||
unit_of_measurement: Ah
|
||||
icon: mdi:car-battery
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
on_value:
|
||||
then:
|
||||
- lambda: id(bms${bms_id}_battery_capacity).publish_state(x);
|
||||
|
||||
# min_cell_voltage
|
||||
- platform: template
|
||||
id: bms${bms_id}_number_min_cell_voltage
|
||||
|
||||
Reference in new issue
Block a user