Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Supported models:
- FoxESS H1 (including AC1, AIO-H1 and G2)
- FoxESS H3 (including AC3 and AOI-H3)
- FoxESS H3 PRO
- FoxESS P1
- FoxESS KH
- Kuara H3
- Sonnenkraft SK-HWR
Expand Down
2 changes: 2 additions & 0 deletions custom_components/foxess_modbus/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class InverterModel(StrEnum):
H1_G1 = "H1" # Can't change the value, as it's set in people's configs
H1_G2 = "H1_G2"

P1 = "P1"

AC1 = "AC1"
AC1_G2 = "AC1_G2"
AIO_H1 = "AIO-H1"
Expand Down
8 changes: 8 additions & 0 deletions custom_components/foxess_modbus/inverter_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ def inverter_capacity(self, inverter_model: str) -> int:
RegisterType.HOLDING,
versions={Version(1, 44): Inv.H1_G2_PRE144, None: Inv.H1_G2_144},
special_registers=H1_G2_REGISTERS,
),
InverterModelProfile(
InverterModel.P1, r"^P1-([\d\.]+)-E", capacity_parser=CapacityParser.H1
).add_connection_type(
ConnectionType.AUX,
RegisterType.HOLDING,
versions={Version(1, 44): Inv.H1_G2_PRE144, None: Inv.H1_G2_144},
special_registers=H1_G2_REGISTERS,
),
InverterModelProfile(InverterModel.AC1, r"^AC1-([\d\.]+)", capacity_parser=CapacityParser.H1)
.add_connection_type(
Expand Down