Skip to content

Commit 5916cb9

Browse files
authored
Update plugin_growatt.py
1 parent 7ab3d19 commit 5916cb9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

custom_components/solax_modbus/plugin_growatt.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
DEFAULT_READ_EPS,
2727
REG_HOLDING,
2828
REG_INPUT,
29+
REGISTER_U8L,
30+
REGISTER_U8H,
2931
REGISTER_S16,
3032
REGISTER_S32,
3133
REGISTER_STR,
@@ -1135,6 +1137,20 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
11351137
entity_registry_enabled_default=True,
11361138
icon="mdi:dip-switch",
11371139
),
1140+
GrowattModbusSelectEntityDescription(
1141+
name="VPP Allow AC charging",
1142+
key="vpp_allow_ac_charging",
1143+
register=30410,
1144+
register_data_type=REGISTER_U8L,
1145+
option_dict={
1146+
0: "Disabled",
1147+
1: "Enabled",
1148+
},
1149+
allowedtypes=GEN3 | GEN4,
1150+
entity_category=EntityCategory.CONFIG,
1151+
entity_registry_enabled_default=True,
1152+
icon="mdi:dip-switch",
1153+
),
11381154
GrowattModbusSelectEntityDescription(
11391155
name="Inverter Switch",
11401156
key="inverter_switch",

0 commit comments

Comments
 (0)