Improve Deye support (#337)
* Fix Deye power update interval * Keep batteries the report CCL/DCL 0A A battery that reports a charge limit (CCL) or discharge limit (DCL) of 0 A now stays in the combine. Before, a full Deye at 0 A CCL, or an empty one at 0 A DCL, dropped out of capacity, SoC and the totals. - Missing values are still caught: a CCL or DCL with no value yet still fails >= 0, because comparisons with NaN are always false. - No effect on the limits: CCL and DCL are added up, so a battery at 0 A adds 0 A to the total. - All BMS models are affected https://github.com/Sleeper85/esphome-yambms/issues/335
This commit is contained in:
1 parent
0d56db9849
commit
c7e498d5ca
3 files changed
+13
-7
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Updated : 2026.08.26
|
||||
# Updated : 2026.11.02
|
||||
# Version : 1.8.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -61,8 +61,8 @@ binary_sensor:
|
||||
(id(bms${bms_id}_battery_capacity).state > 0) &&
|
||||
(id(bms${bms_id}_battery_capacity_remaining).has_state()) &&
|
||||
(id(bms${bms_id}_charging_cycles).has_state()) &&
|
||||
(id(bms${bms_id}_max_charge_current).state > 0) &&
|
||||
(id(bms${bms_id}_max_discharge_current).state > 0) &&
|
||||
(id(bms${bms_id}_max_charge_current).state >= 0) &&
|
||||
(id(bms${bms_id}_max_discharge_current).state >= 0) &&
|
||||
(id(bms${bms_id}_min_cell_voltage).has_state()) &&
|
||||
(id(bms${bms_id}_max_cell_voltage).has_state()) &&
|
||||
(id(bms${bms_id}_min_voltage_cell).has_state()) &&
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2026.10.18
|
||||
# Version : 1.2.3
|
||||
# Updated : 2026.11.02
|
||||
# Version : 1.2.4
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -335,6 +335,7 @@ sensor:
|
||||
id: bms${bms_id}_power
|
||||
device_id: bms_${bms_id}
|
||||
name: "battery power"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: 'W'
|
||||
device_class: 'power'
|
||||
state_class: 'measurement'
|
||||
@@ -349,6 +350,7 @@ sensor:
|
||||
# Charging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "battery power charging"
|
||||
update_interval: ${bms_update_interval}
|
||||
id: bms${bms_id}_charging_power
|
||||
device_id: bms_${bms_id}
|
||||
unit_of_measurement: 'W'
|
||||
@@ -366,6 +368,7 @@ sensor:
|
||||
# Discharging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "battery power discharging"
|
||||
update_interval: ${bms_update_interval}
|
||||
id: bms${bms_id}_discharging_power
|
||||
device_id: bms_${bms_id}
|
||||
unit_of_measurement: 'W'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2026.10.18
|
||||
# Version : 1.2.3
|
||||
# Updated : 2026.11.02
|
||||
# Version : 1.2.4
|
||||
# GitHub : https://github.com/GHswitt/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -192,6 +192,7 @@ sensor:
|
||||
id: bms${bms_id}_power
|
||||
device_id: bms_${bms_id}
|
||||
name: "battery power"
|
||||
update_interval: ${bms_update_interval}
|
||||
unit_of_measurement: 'W'
|
||||
device_class: 'power'
|
||||
state_class: 'measurement'
|
||||
@@ -206,6 +207,7 @@ sensor:
|
||||
# Charging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "battery power charging"
|
||||
update_interval: ${bms_update_interval}
|
||||
id: bms${bms_id}_charging_power
|
||||
device_id: bms_${bms_id}
|
||||
unit_of_measurement: 'W'
|
||||
@@ -223,6 +225,7 @@ sensor:
|
||||
# Discharging power: Calculated from voltage and current
|
||||
- platform: template
|
||||
name: "battery power discharging"
|
||||
update_interval: ${bms_update_interval}
|
||||
id: bms${bms_id}_discharging_power
|
||||
device_id: bms_${bms_id}
|
||||
unit_of_measurement: 'W'
|
||||
|
||||
Reference in new issue
Block a user