From 0d65dfb82169cfa38d606dbe6c23ef92cdd5c34f Mon Sep 17 00:00:00 2001 From: Antony Male Date: Fri, 21 Feb 2025 10:52:14 +0000 Subject: [PATCH] Add support for Enpal I-X inverters Fixes: #785 --- custom_components/foxess_modbus/common/types.py | 1 + custom_components/foxess_modbus/inverter_profiles.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/custom_components/foxess_modbus/common/types.py b/custom_components/foxess_modbus/common/types.py index 92b1c5f..6f7bf8b 100644 --- a/custom_components/foxess_modbus/common/types.py +++ b/custom_components/foxess_modbus/common/types.py @@ -53,6 +53,7 @@ class InverterModel(StrEnum): STAR_H3 = "STAR-H3" SOLAVITA_SP = "SOLAVITA-SP" ATRONIX_AX = "ATRONIX_AX" + ENPAL_IX = "ENPAL_IX" H3_PRO = "H3_PRO" diff --git a/custom_components/foxess_modbus/inverter_profiles.py b/custom_components/foxess_modbus/inverter_profiles.py index 9902cdf..da29edc 100644 --- a/custom_components/foxess_modbus/inverter_profiles.py +++ b/custom_components/foxess_modbus/inverter_profiles.py @@ -407,6 +407,15 @@ def inverter_capacity(self, inverter_model: str) -> int: versions={None: Inv.H3_PRE180}, special_registers=H3_REGISTERS, ), + # Enpal I-X range + # These have the form 'I-X5', with powers 5, 6, 8, 9.9, 10, 12, 15kW + # See https://github.com/nathanmarlor/foxess_modbus/issues/785 + InverterModelProfile(InverterModel.ENPAL_IX, r"^I-X([\d\.]+)").add_connection_type( + ConnectionType.AUX, + RegisterType.HOLDING, + versions={None: Inv.H3_PRE180}, + special_registers=H3_REGISTERS, + ), # E.g. H3-Pro-20.0 InverterModelProfile(InverterModel.H3_PRO, r"^H3-Pro-([\d\.]+)").add_connection_type( ConnectionType.AUX,