Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Peak Shaving work mode for H3 Inverters & H1 (Gen 2) #731

Closed
wants to merge 9 commits into from
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=41000, models=Inv.H1_G2 | Inv.H3_SET),
],
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
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@
"values": {
"0": "Self Use",
"1": "Feed-in First",
"2": "Back-up"
"2": "Back-up",
"4": "Peak Shaving"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,7 @@
"type": "select",
"values": {
"0": "Self Use",
"1": "Feed-in First",
"2": "Back-up"
"1": "Feed-in First"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@
"values": {
"0": "Self Use",
"1": "Feed-in First",
"2": "Back-up"
"2": "Back-up",
"4": "Peak Shaving"
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@
"values": {
"0": "Self Use",
"1": "Feed-in First",
"2": "Back-up"
"2": "Back-up",
"4": "Peak Shaving"
}
}
]
Loading