Skip to content

Commit c77359b

Browse files
committed
Additional Hybrid EPS Entities
Add controls for EPS Min SoC and EPS Restart SoC registers. Also add read-only sensor entitiy for EPS Set Frequency. This is technically a control also, but leaving as read-only as writing to this is potentially dangerous and should never really be changed post-install.
1 parent f9dfd41 commit c77359b

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
@@ -2094,6 +2094,30 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
20942094
max_exceptions=MAX_EXPORT,
20952095
icon="mdi:home-export-outline",
20962096
),
2097+
SolaxModbusNumberEntityDescription(
2098+
name="EPS Min SOC",
2099+
key="eps_min_soc",
2100+
register=0x44,
2101+
fmt="i",
2102+
native_min_value=10,
2103+
native_max_value=25,
2104+
native_step=1,
2105+
native_unit_of_measurement=PERCENTAGE,
2106+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
2107+
icon="mdi:battery-charging-low",
2108+
),
2109+
SolaxModbusNumberEntityDescription(
2110+
name="EPS Restart SOC",
2111+
key="eps_restart_soc",
2112+
register=0x8E,
2113+
fmt="i",
2114+
native_min_value=15,
2115+
native_max_value=100,
2116+
native_step=1,
2117+
native_unit_of_measurement=PERCENTAGE,
2118+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
2119+
icon="mdi:battery-charging-medium",
2120+
),
20972121
SolaxModbusNumberEntityDescription(
20982122
name="Generator Max Charge",
20992123
key="generator_max_charge",
@@ -4566,6 +4590,14 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
45664590
allowedtypes=HYBRID | GEN2,
45674591
internal=True,
45684592
),
4593+
SolaXModbusSensorEntityDescription(
4594+
name="EPS Restart SOC",
4595+
key="eps_restart_soc",
4596+
native_unit_of_measurement=PERCENTAGE,
4597+
register=0xA0,
4598+
allowedtypes=HYBRID | GEN4 | GEN5 | GEN6 | EPS,
4599+
internal=True,
4600+
),
45694601
SolaXModbusSensorEntityDescription(
45704602
key="hotstandby",
45714603
register=0xA1,
@@ -4754,6 +4786,14 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
47544786
},
47554787
allowedtypes=AC | HYBRID | GEN2 | GEN3 | EPS,
47564788
),
4789+
SolaXModbusSensorEntityDescription(
4790+
name="EPS Min SOC",
4791+
key="eps_min_soc",
4792+
native_unit_of_measurement=PERCENTAGE,
4793+
register=0xB8,
4794+
internal=True,
4795+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
4796+
),
47574797
SolaXModbusSensorEntityDescription(
47584798
name="EPS Set Frequency",
47594799
key="eps_set_frequency",
@@ -4762,17 +4802,9 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
47624802
0: "50Hz",
47634803
1: "60Hz",
47644804
},
4765-
allowedtypes=AC | HYBRID | GEN4 | GEN5 | EPS,
4766-
modbus_min=102,
4767-
),
4768-
SolaXModbusSensorEntityDescription(
4769-
name="EPS Min SOC",
4770-
key="eps_min_soc",
4771-
native_unit_of_measurement=PERCENTAGE,
4772-
register=0xB8,
47734805
entity_registry_enabled_default=False,
4774-
allowedtypes=HYBRID | GEN4 | GEN5 | EPS,
4775-
modbus_min=102,
4806+
entity_category=EntityCategory.DIAGNOSTIC,
4807+
allowedtypes=AC | HYBRID | GEN4 | GEN5 | GEN6 | EPS,
47764808
),
47774809
SolaXModbusSensorEntityDescription(
47784810
name="Inverter Rated Output Power",

0 commit comments

Comments
 (0)