simple set charging mode (no turbo)

This commit is contained in:
kvanonavk committed 2024-07-01 18:16:58 +03:00
1 parent c96f551024
commit 1fbcf83b1b
3 files changed
+8 -3

No files matched your search

@@ -1,7 +1,6 @@
"""AC180P fields."""
from typing import List
from enum import Enum, unique
from ..field_enums import ChargingMode
from ..utils.commands import ReadHoldingRegisters
@@ -23,7 +22,7 @@ class AC180P(ProtocolV2Device):
# Controls (2000)
self.struct.add_bool_field('ac_output_on_switch', 2011)
self.struct.add_bool_field('dc_output_on_switch', 2012)
self.struct.add_enum_field('charging_mode', 2020, ChargingMode)
self.struct.add_bool_field('silent_charging_on', 2020)
self.struct.add_bool_field('power_lifting_on', 2021)
# Controls (2200)
@@ -321,6 +321,11 @@ FIELD_ATTRIBUTES: dict[str, FieldAttributes] = {
setter=True,
name="Grid Enhancement Mode",
),
"silent_charging_on": FieldAttributes(
type=FieldType.BOOL,
setter=True,
name="Silet Charging",
),
}