@@ -1815,6 +1815,10 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
18151815 # ('H1E', 1 ), # more specific entry comes last and wins
18161816]
18171817
1818+ MIN_SOC : list [tuple [str , int | float ]] = [
1819+ ("10M" , 0 ), # Gen6 X1-VAST allow discharge to 0% per #2187
1820+ ]
1821+
18181822NUMBER_TYPES : Sequence ["SolaxModbusNumberEntityDescription" ] = [
18191823 ###
18201824 #
@@ -1949,6 +1953,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
19491953 native_max_value = 100 ,
19501954 native_step = 1 ,
19511955 native_unit_of_measurement = PERCENTAGE ,
1956+ min_exceptions = MIN_SOC ,
19521957 initvalue = 95 ,
19531958 register_data_type = REGISTER_U16 ,
19541959 write_method = WRITE_DATA_LOCAL ,
@@ -1963,6 +1968,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
19631968 native_max_value = 100 ,
19641969 native_step = 1 ,
19651970 native_unit_of_measurement = PERCENTAGE ,
1971+ min_exceptions = MIN_SOC ,
19661972 initvalue = 10 ,
19671973 register_data_type = REGISTER_U16 ,
19681974 write_method = WRITE_DATA_LOCAL ,
@@ -2214,6 +2220,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
22142220 native_max_value = 25 ,
22152221 native_step = 1 ,
22162222 native_unit_of_measurement = PERCENTAGE ,
2223+ min_exceptions = MIN_SOC ,
22172224 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS ,
22182225 icon = "mdi:battery-charging-low" ,
22192226 ),
@@ -2265,6 +2272,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
22652272 native_max_value = 100 ,
22662273 native_step = 1 ,
22672274 native_unit_of_measurement = PERCENTAGE ,
2275+ min_exceptions = MIN_SOC ,
22682276 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 ,
22692277 icon = "mdi:battery-charging-low" ,
22702278 ),
@@ -2427,6 +2435,7 @@ def value_function_bms_2_max_charge(initval: int, descr: Any, datadict: dict[str
24272435 native_max_value = 100 ,
24282436 native_step = 1 ,
24292437 native_unit_of_measurement = PERCENTAGE ,
2438+ min_exceptions = MIN_SOC ,
24302439 allowedtypes = AC | HYBRID | GEN4 | GEN5 | GEN6 ,
24312440 icon = "mdi:battery-charging-low" ,
24322441 ),
0 commit comments