Skip to content

Commit

Permalink
Add Peak Shaving work mode for H3 & H1 (Gen 2)
Browse files Browse the repository at this point in the history
Adds the Peak Shaving work mode to the select for the H3 inverters and H1 (Gen 2) inverters.

See #699
  • Loading branch information
FozzieUK authored Jan 16, 2025
1 parent f52282a commit 427c77b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion custom_components/foxess_modbus/entities/entity_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2095,12 +2095,26 @@ def _configuration_entities() -> Iterable[EntityFactory]:
key="work_mode",
address=[
ModbusAddressSpec(input=41000, models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressSpec(holding=41000, models=Inv.H1_G1 | Inv.H1_G2 | Inv.KH_119 | Inv.H3_SET),
ModbusAddressSpec(holding=41000, models=Inv.H1_G1 | Inv.KH_119),
],
name="Work Mode",
options_map={0: "Self Use", 1: "Feed-in First", 2: "Back-up"},
)

yield ModbusWorkModeSelectDescription(
key="work_mode",
address=[
ModbusAddressSpec(holding=49203, models=Inv.H3_SET | Inv.H1_G2),
],
name="Work Mode",
options_map={
0: "Self Use",
1: "Feed-in First",
2: "Back-up",
4: "Peak Shaving",
},
)

yield ModbusWorkModeSelectDescription(
key="work_mode",
address=[
Expand Down

0 comments on commit 427c77b

Please sign in to comment.