Fixed Force Bulk issue #215
This commit is contained in:
1 parent
70e566d4ec
commit
de35aa593c
1 file changed
+1
-8
@@ -1,4 +1,4 @@
|
||||
# Updated : 2026.02.10
|
||||
# Updated : 2026.02.12
|
||||
# Version : 1.7.0
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -212,10 +212,6 @@ globals:
|
||||
type: bool
|
||||
restore_value: no
|
||||
initial_value: 'false'
|
||||
- id: ${yambms_id}_var_force_bulk
|
||||
type: bool
|
||||
restore_value: no
|
||||
initial_value: 'false'
|
||||
- id: ${yambms_id}_var_force_float
|
||||
type: bool
|
||||
restore_value: no
|
||||
@@ -693,8 +689,6 @@ interval:
|
||||
if ((id(${yambms_id}_var_charge_status) == "EOC") && (id(${yambms_id}_switch_float).state)) id(${yambms_id}_var_charge_status) = "Float";
|
||||
// No Float => EOC
|
||||
else if ((id(${yambms_id}_var_charge_status) == "Float") && (!id(${yambms_id}_switch_float).state)) id(${yambms_id}_var_charge_status) = "EOC";
|
||||
// No Force Bulk => Wait
|
||||
else if ((id(${yambms_id}_var_force_bulk) == true) && (!id(${yambms_id}_switch_force_bulk).state)) id(${yambms_id}_var_charge_status) = "Wait";
|
||||
// Force Float
|
||||
else if (id(${yambms_id}_var_force_float) == true) id(${yambms_id}_var_charge_status) = "Float";
|
||||
|
||||
@@ -713,7 +707,6 @@ interval:
|
||||
// +-----------------------------------------------+
|
||||
if (id(${yambms_id}_switch_force_bulk).state)
|
||||
{
|
||||
id(${yambms_id}_var_force_bulk) = true;
|
||||
// Stop Force Bulk when entering the Cut-Off phase
|
||||
if (id(${yambms_id}_var_charge_status) == "Cut-Off")
|
||||
id(${yambms_id}_switch_force_bulk).turn_off();
|
||||
|
||||
Reference in new issue
Block a user