Skip to content

Commit 2aff7b3

Browse files
committed
implemented enhancements #127 & #128
1 parent 332d35b commit 2aff7b3

5 files changed

Lines changed: 32 additions & 8 deletions

File tree

custom_components/goecharger_api2/const.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,14 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
816816
icon="mdi:lock-open-outline",
817817
entity_registry_enabled_default=True
818818
),
819+
ExtSelectEntityDescription(
820+
key=Tag.FRM.key,
821+
options=["0", "1", "2"],
822+
#entity_category=EntityCategory.CONFIG,
823+
device_class=None,
824+
icon="mdi:transmission-tower-export",
825+
entity_registry_enabled_default=True
826+
),
819827
]
820828
SENSOR_SENSORS = [
821829
# INDEXED Values...
@@ -1049,7 +1057,7 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
10491057
key=Tag.CDI.key,
10501058
idx="value",
10511059
factor=60000,
1052-
#entity_category=EntityCategory.DIAGNOSTIC,
1060+
entity_category=EntityCategory.DIAGNOSTIC,
10531061
native_unit_of_measurement=UnitOfTime.MINUTES,
10541062
state_class=SensorStateClass.MEASUREMENT,
10551063
device_class=None,
@@ -1224,6 +1232,7 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
12241232
icon="mdi:lock-open-check-outline",
12251233
entity_registry_enabled_default=True
12261234
),
1235+
# can be removed (later) to avoid 'Breaking Change'
12271236
ExtSensorEntityDescription(
12281237
key=Tag.FRM.key,
12291238
entity_category=EntityCategory.DIAGNOSTIC,
@@ -1233,6 +1242,7 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
12331242
icon="mdi:transmission-tower-export",
12341243
entity_registry_enabled_default=False
12351244
),
1245+
# can be removed (later) to avoid 'Breaking Change'
12361246
ExtSensorEntityDescription(
12371247
key=Tag.FRM.key,
12381248
lookup=True,
@@ -1241,7 +1251,7 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
12411251
state_class=None,
12421252
device_class=None,
12431253
icon="mdi:transmission-tower-export",
1244-
entity_registry_enabled_default=True
1254+
entity_registry_enabled_default=False
12451255
),
12461256
ExtSensorEntityDescription(
12471257
key=Tag.LCK.key,
@@ -2016,7 +2026,7 @@ class ExtSwitchEntityDescription(SwitchEntityDescription):
20162026
),
20172027
ExtSwitchEntityDescription(
20182028
key=Tag.SU.key,
2019-
#entity_category=EntityCategory.CONFIG,
2029+
entity_category=EntityCategory.CONFIG,
20202030
device_class=None,
20212031
icon="mdi:ab-testing",
20222032
entity_registry_enabled_default=True

custom_components/goecharger_api2/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"iot_class": "local_push",
1313
"issue_tracker": "https://github.com/marq24/ha-goecharger-api2/issues",
1414
"requirements": ["packaging>=21.0", "msgpack>=1.1.2", "bcrypt>=4.2.0"],
15-
"version": "2026.4.0"
15+
"version": "2026.4.1"
1616
}

custom_components/goecharger_api2/pygoecharger_ha/keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __str__(self):
138138
# forceState (Neutral=0, Off=1, On=2)
139139
FRC = ApiKey(key="frc", cat=CAT.CONFIG, writeable=True)
140140
# roundingMode PreferPowerFromGrid=0, Default=1, PreferPowerToGrid=2
141-
FRM = ApiKey(key="frm", cat=CAT.CONFIG)
141+
FRM = ApiKey(key="frm", cat=CAT.CONFIG, writeable=True)
142142
# force_single_phase, this is only the result of the charging logic, if it wishes single force or not at the moment
143143
FSP = ApiKey(key="fsp", cat=CAT.STATUS)
144144
# force single phase toggle wished since

custom_components/goecharger_api2/translations/de.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"rdre": {"name": "Zufällige max. Verzögerung: Nach Stromausfall"},
139139
"rdpl": {"name": "Zufällige max. Verzögerung: Unbekannt"},
140140
"sh": {"name": "Nachwirkung Stopp"},
141-
"spl3": {"name": "Wechsel zu 3-phasigem Laden bei"},
141+
"spl3": {"name": "Wechsel zu 3-phasigem Laden über"},
142142
"sumd": {"name": "Simuliertes-Ausstecken 'Dauer'"},
143143
"zfo": {"name": "Zero Feed-in Offset"}
144144
},
@@ -241,7 +241,7 @@
241241
}
242242
},
243243
"ust": {
244-
"name": "Kable Entriegelung",
244+
"name": "Kabel Entriegelung",
245245
"state": {
246246
"0": "Standardmodus",
247247
"1": "Automatisch entriegeln",
@@ -332,6 +332,13 @@
332332
"3": "Laden (mit PV-Überschuss aktiv)",
333333
"4": "Blockieren (Laden mit PV-Überschuss aktiv)"
334334
}
335+
},
336+
"frm": {"name": "Rundungs-Modus",
337+
"state": {
338+
"0": "Netzbezug bevorzugen",
339+
"1": "Default",
340+
"2": "Netzeinspeisung bevorzugen"
341+
}
335342
}
336343
},
337344
"sensor": {
@@ -346,7 +353,7 @@
346353
"nrg_8": {"name": "Leistung L2"},
347354
"nrg_9": {"name": "Leistung L3"},
348355
"nrg_10": {"name": "Leistung N"},
349-
"nrg_11": {"name": "Totale-Leistung"},
356+
"nrg_11": {"name": "Aktuelle Leistung (total)"},
350357
"nrg_12": {"name": "Leistungsfaktor L1"},
351358
"nrg_13": {"name": "Leistungsfaktor L2"},
352359
"nrg_14": {"name": "Leistungsfaktor L3"},

custom_components/goecharger_api2/translations/en.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@
332332
"3": "Loading (Surplus active)",
333333
"4": "Blocked (Surplus active)"
334334
}
335+
},
336+
"frm": {"name": "Rounding mode",
337+
"state": {
338+
"0": "Prefer power import from grid",
339+
"1": "Default",
340+
"2": "Prefer power export to grid"
341+
}
335342
}
336343
},
337344
"sensor": {

0 commit comments

Comments
 (0)