Skip to content

Commit 16cc047

Browse files
authored
Merge pull request #2071 from TCWORLD/missing-solax-eps-regs
Additional Hybrid EPS Entities
2 parents 5c7d1f1 + c77359b commit 16cc047

1 file changed

Lines changed: 42 additions & 10 deletions

File tree

custom_components/solax_modbus/plugin_solax.py

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,30 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
21012101
max_exceptions=MAX_EXPORT,
21022102
icon="mdi:home-export-outline",
21032103
),
2104+
SolaxModbusNumberEntityDescription(
2105+
name="EPS Min SOC",
2106+
key="eps_min_soc",
2107+
register=0x44,
2108+
fmt="i",
2109+
native_min_value=10,
2110+
native_max_value=25,
2111+
native_step=1,
2112+
native_unit_of_measurement=PERCENTAGE,
2113+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
2114+
icon="mdi:battery-charging-low",
2115+
),
2116+
SolaxModbusNumberEntityDescription(
2117+
name="EPS Restart SOC",
2118+
key="eps_restart_soc",
2119+
register=0x8E,
2120+
fmt="i",
2121+
native_min_value=15,
2122+
native_max_value=100,
2123+
native_step=1,
2124+
native_unit_of_measurement=PERCENTAGE,
2125+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
2126+
icon="mdi:battery-charging-medium",
2127+
),
21042128
SolaxModbusNumberEntityDescription(
21052129
name="Generator Max Charge",
21062130
key="generator_max_charge",
@@ -4573,6 +4597,14 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
45734597
allowedtypes=HYBRID | GEN2,
45744598
internal=True,
45754599
),
4600+
SolaXModbusSensorEntityDescription(
4601+
name="EPS Restart SOC",
4602+
key="eps_restart_soc",
4603+
native_unit_of_measurement=PERCENTAGE,
4604+
register=0xA0,
4605+
allowedtypes=HYBRID | GEN4 | GEN5 | GEN6 | EPS,
4606+
internal=True,
4607+
),
45764608
SolaXModbusSensorEntityDescription(
45774609
key="hotstandby",
45784610
register=0xA1,
@@ -4761,6 +4793,14 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
47614793
},
47624794
allowedtypes=AC | HYBRID | GEN2 | GEN3 | EPS,
47634795
),
4796+
SolaXModbusSensorEntityDescription(
4797+
name="EPS Min SOC",
4798+
key="eps_min_soc",
4799+
native_unit_of_measurement=PERCENTAGE,
4800+
register=0xB8,
4801+
internal=True,
4802+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
4803+
),
47644804
SolaXModbusSensorEntityDescription(
47654805
name="EPS Set Frequency",
47664806
key="eps_set_frequency",
@@ -4769,17 +4809,9 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
47694809
0: "50Hz",
47704810
1: "60Hz",
47714811
},
4772-
allowedtypes=AC | HYBRID | GEN4 | GEN5 | EPS,
4773-
modbus_min=102,
4774-
),
4775-
SolaXModbusSensorEntityDescription(
4776-
name="EPS Min SOC",
4777-
key="eps_min_soc",
4778-
native_unit_of_measurement=PERCENTAGE,
4779-
register=0xB8,
47804812
entity_registry_enabled_default=False,
4781-
allowedtypes=HYBRID | GEN4 | GEN5 | EPS,
4782-
modbus_min=102,
4813+
entity_category=EntityCategory.DIAGNOSTIC,
4814+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
47834815
),
47844816
SolaXModbusSensorEntityDescription(
47854817
name="Inverter Rated Output Power",

0 commit comments

Comments
 (0)