Skip to content

Commit 5f1e141

Browse files
authored
Merge pull request #1 from brad5505/brad5505-patch-7
Brad5505 patch 7
2 parents 816fb15 + 551ede8 commit 5f1e141

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

custom_components/solax_modbus/plugin_growatt.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,19 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
11351135
entity_registry_enabled_default=True,
11361136
icon="mdi:dip-switch",
11371137
),
1138+
GrowattModbusSelectEntityDescription(
1139+
name="VPP Allow AC charging",
1140+
key="vpp_allow_ac_charging",
1141+
register=30410,
1142+
option_dict={
1143+
0: "Disabled",
1144+
1: "Enabled",
1145+
},
1146+
allowedtypes=GEN3 | GEN4,
1147+
entity_category=EntityCategory.CONFIG,
1148+
entity_registry_enabled_default=True,
1149+
icon="mdi:dip-switch",
1150+
),
11381151
GrowattModbusSelectEntityDescription(
11391152
name="Inverter Switch",
11401153
key="inverter_switch",
@@ -2321,6 +2334,16 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23212334
scale=1,
23222335
internal=True,
23232336
),
2337+
GrowattModbusSensorEntityDescription(
2338+
key="vpp_allow_ac_charging",
2339+
register=30410,
2340+
scale={
2341+
0: "Disabled",
2342+
1: "Enabled",
2343+
},
2344+
allowedtypes=GEN3 | GEN4,
2345+
internal=True,
2346+
),
23242347
GrowattModbusSensorEntityDescription(
23252348
name="Battery SOH",
23262349
key="battery_soh",

0 commit comments

Comments
 (0)