From 0783bc8ab07c712d48e6f50615f05b4a3912d152 Mon Sep 17 00:00:00 2001 From: Sleeper85 Date: Wed, 26 Aug 2026 23:33:38 +0200 Subject: [PATCH] Added `battery_capacity` number --- .../YamBMS_HA_Dashboard_DEMO.yaml | 5 +++- packages/bms/bms_sensors_FAKE_extended.yaml | 23 +++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/HomeAssistant_Dashboards/YamBMS_HA_Dashboard_DEMO.yaml b/HomeAssistant_Dashboards/YamBMS_HA_Dashboard_DEMO.yaml index 1e5d669..4fd54a5 100644 --- a/HomeAssistant_Dashboards/YamBMS_HA_Dashboard_DEMO.yaml +++ b/HomeAssistant_Dashboards/YamBMS_HA_Dashboard_DEMO.yaml @@ -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 diff --git a/packages/bms/bms_sensors_FAKE_extended.yaml b/packages/bms/bms_sensors_FAKE_extended.yaml index 3d5d62f..84f8bfd 100644 --- a/packages/bms/bms_sensors_FAKE_extended.yaml +++ b/packages/bms/bms_sensors_FAKE_extended.yaml @@ -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