Skip to content

Commit

Permalink
Merge pull request #598 from canton7/feature/aio-h1
Browse files Browse the repository at this point in the history
Add (experimental) support for AIO-AC1
  • Loading branch information
canton7 authored Apr 20, 2024
2 parents 2c88db7 + 3b9fa78 commit 7fb80e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/foxess_modbus/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class InverterModel(StrEnum):

AC1 = "AC1"
AIO_H1 = "AIO-H1"
AIO_AC1 = "AIO-AC1"

KH = "KH"

Expand Down
6 changes: 6 additions & 0 deletions custom_components/foxess_modbus/inverter_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ def inverter_capacity(self, inverter_model: str) -> int:
ConnectionType.LAN,
RegisterType.HOLDING,
),
InverterModelProfile(InverterModel.AIO_AC1, r"^AIO-AC1-([\d\.]+)").add_connection_type(
Inv.H1_G1,
ConnectionType.AUX,
RegisterType.INPUT,
special_registers=H1_AC1_REGISTERS,
),
# The KH doesn't have a LAN port. It supports both input and holding over RS485
# Some models start with KH-, but some are just e.g. KH10.5
InverterModelProfile(InverterModel.KH, r"^KH([\d\.]+)").add_connection_type(
Expand Down

0 comments on commit 7fb80e2

Please sign in to comment.