Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions custom_components/evcc_intg/pyevcc_ha/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ class EVCCCONF_DEVICE_TYPES(Enum):
"batterymode": {
"unknown": "Unbekannt",
"normal": "normal",
"hold": "angehalten/gesperrt",
"hold": "entladen sperren",
"charge": "laden...",
"holdcharge": "laden sperren",
},
"phaseaction":{
"scale1p": "Reduziere auf einphasig",
Expand All @@ -173,8 +174,9 @@ class EVCCCONF_DEVICE_TYPES(Enum):
"batterymode": {
"unknown": "unknown",
"normal": "normal",
"hold": "on-hold",
"hold": "lock discharge",
"charge": "charging...",
"holdcharge": "lock charge",
},
"phaseaction":{
"scale1p": "Reducing to 1-phase charging",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/evcc_intg/pyevcc_ha/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def __str__(self):
# "auxPower": 1116.8,
AUXPOWER = ApiKey(json_key="auxPower", type=EP_TYPE.SITE)

# "batteryMode": unknown|normal|hold|charge
# POST /api/batterymode/<mode>: set battery mode (unknown/normal/hold/charge)
# "batteryMode": unknown|normal|hold|charge|holdcharge
# POST /api/batterymode/<mode>: set battery mode (unknown/normal/hold/charge/holdcharge)
# Directly controls the mode of all controllable batteries. evcc behavior like 'price limit' or 'prevent discharge while fast charging' is overruled. External mode resets after 60s. The external system has to call this endpoint regularly.
BATTERYMODE = ApiKey(json_key="batteryMode", type=EP_TYPE.SITE, writeable=True, write_key="batterymode", options=["null", "unknown", "normal", "hold", "charge"])
BATTERYMODE = ApiKey(json_key="batteryMode", type=EP_TYPE.SITE, writeable=True, write_key="batterymode", options=["null", "unknown", "normal", "hold", "charge", "holdcharge"])

# "battery":[{"power":0,"capacity":12,"soc":81,"controllable":false}], -> we must access this attribute via json_idx
BATTERY = ApiKey(json_key="battery", type=EP_TYPE.SITE)
Expand Down
5 changes: 3 additions & 2 deletions custom_components/evcc_intg/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@
"null": "löschen",
"unknown": "unbekannt",
"normal": "normal",
"hold": "halten",
"charge": "laden"
"hold": "entladen sperren",
"charge": "laden",
"holdcharge": "laden sperren"
}
},
"prioritysoc": {
Expand Down
5 changes: 3 additions & 2 deletions custom_components/evcc_intg/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@
"null": "delete",
"unknown": "unknown",
"normal": "normal",
"hold": "hold",
"charge": "charge"
"hold": "lock discharge",
"charge": "charge",
"holdcharge": "lock charge"
}
},
"prioritysoc": {
Expand Down