@@ -1900,6 +1900,10 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
19001900 # ('H1E', 1 ), # more specific entry comes last and wins
19011901]
19021902
1903+ MIN_SOC : list [tuple [str , int | float ]] = [
1904+ ("10M" , 0 ), # Gen6 X1-VAST allow discharge to 0% per #2187
1905+ ]
1906+
19031907NUMBER_TYPES : Sequence ["SolaxModbusNumberEntityDescription" ] = [
19041908 ###
19051909 #
@@ -2034,6 +2038,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
20342038 native_max_value = 100 ,
20352039 native_step = 1 ,
20362040 native_unit_of_measurement = PERCENTAGE ,
2041+ min_exceptions = MIN_SOC ,
20372042 initvalue = 95 ,
20382043 register_data_type = REGISTER_U16 ,
20392044 write_method = WRITE_DATA_LOCAL ,
@@ -2048,6 +2053,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
20482053 native_max_value = 100 ,
20492054 native_step = 1 ,
20502055 native_unit_of_measurement = PERCENTAGE ,
2056+ min_exceptions = MIN_SOC ,
20512057 initvalue = 10 ,
20522058 register_data_type = REGISTER_U16 ,
20532059 write_method = WRITE_DATA_LOCAL ,
@@ -2299,6 +2305,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
22992305 native_max_value = 25 ,
23002306 native_step = 1 ,
23012307 native_unit_of_measurement = PERCENTAGE ,
2308+ min_exceptions = MIN_SOC ,
23022309 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS ,
23032310 icon = "mdi:battery-charging-low" ,
23042311 ),
@@ -2350,6 +2357,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
23502357 native_max_value = 100 ,
23512358 native_step = 1 ,
23522359 native_unit_of_measurement = PERCENTAGE ,
2360+ min_exceptions = MIN_SOC ,
23532361 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 ,
23542362 icon = "mdi:battery-charging-low" ,
23552363 ),
@@ -2512,6 +2520,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
25122520 native_max_value = 100 ,
25132521 native_step = 1 ,
25142522 native_unit_of_measurement = PERCENTAGE ,
2523+ min_exceptions = MIN_SOC ,
25152524 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 ,
25162525 icon = "mdi:battery-charging-low" ,
25172526 ),
0 commit comments