Skip to content

Commit f92a13b

Browse files
authored
Update plugin_growatt.py
VPP AC Charging
1 parent 36378a6 commit f92a13b

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",
@@ -2320,6 +2333,16 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23202333
allowedtypes=GEN3 | GEN4,
23212334
scale=1,
23222335
internal=True,
2336+
),
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,
23232346
),
23242347
GrowattModbusSensorEntityDescription(
23252348
name="Battery SOH",

0 commit comments

Comments
 (0)