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
13 changes: 12 additions & 1 deletion custom_components/zendure_ha/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,18 @@ def create_entities(self) -> None:
self.socLimit = ZendureSensor(self, "socLimit", state=0)
self.byPass = ZendureSensor(self, "pass", state=0)

fuseGroups = {0: "unused", 1: "owncircuit", 2: "group800", 3: "group800_2400", 4: "group1200", 5: "group2000", 6: "group2400", 7: "group3600"}
fuseGroups = {
0: "unused",
1: "owncircuit",
2: "group800",
3: "group800_2400",
4: "group1200",
5: "group2000",
6: "group2400",
7: "group3600",
8: "group4000",
9: "group5000",
}
self.fuseGroup = ZendureRestoreSelect(self, "fuseGroup", fuseGroups, None)
self.acMode = ZendureSelect(self, "acMode", {1: "input", 2: "output"}, self.entityWrite, 1)
self.electricLevel = ZendureSensor(self, "electricLevel", None, "%", "battery", "measurement")
Expand Down
6 changes: 6 additions & 0 deletions custom_components/zendure_ha/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ async def updateFuseGroup(_entity: ZendureRestoreSelect, _value: Any) -> None:
fg = FuseGroup(device.name, 2000, -2000)
case "group2400":
fg = FuseGroup(device.name, 2400, -2400)
case "group4000":
fg = FuseGroup(device.name, 4000, -4000)
case "group5000":
fg = FuseGroup(device.name, 5000, -5000)
case "unused":
# only switch off, if Manager is used
if self.operation != ManagerMode.OFF:
Expand Down Expand Up @@ -222,6 +226,8 @@ async def updateFuseGroup(_entity: ZendureRestoreSelect, _value: Any) -> None:
5: "group2000",
6: "group2400",
7: "group3600",
8: "group4000",
9: "group5000",
}
for deviceId, fg in fuseGroups.items():
if deviceId != device.deviceId:
Expand Down
6 changes: 4 additions & 2 deletions custom_components/zendure_ha/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,15 @@
"name": "Geräte-Sicherungsgruppe",
"state": {
"unused": "Nicht verwendet, Gerät hat keine Sicherungsgruppe",
"owncircuit": "Gerät hat einen eigenen Stromkreis oder eine eigene Phase",
"owncircuit": "Gerät hat einen eigenen Stromkreis oder eine eigene Phase, max. 3600 W",
"group800": "Sicherungsgruppe max. 800 W / 1200W laden",
"group800_2400": "Sicherungsgruppe max. 800 W / 2400W laden",
"group1200": "Sicherungsgruppe max. 1200 W",
"group2000": "Sicherungsgruppe max. 2000 W",
"group2400": "Sicherungsgruppe max. 2400 W",
"group3600": "Sicherungsgruppe max. 3600 W"
"group3600": "Sicherungsgruppe max. 3600 W",
"group4000": "Sicherungsgruppe max. 4000 W",
"group5000": "Sicherungsgruppe max. 5000 W"
}
},
"connection": {
Expand Down
6 changes: 4 additions & 2 deletions custom_components/zendure_ha/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,15 @@
"name": "Device Fuse Group",
"state": {
"unused": "Unused, device has No FuseGroup",
"owncircuit": "Device has its own circuit or phase",
"owncircuit": "Device has its own circuit or phase, max. 3600w",
"group800": "FuseGroup max. 800w / 1200w charge",
"group800_2400": "FuseGroup max. 800w / 2400w charge",
"group1200": "FuseGroup max. 1200w",
"group2000": "FuseGroup max. 2000w",
"group2400": "FuseGroup max. 2400w",
"group3600": "FuseGroup max. 3600w"
"group3600": "FuseGroup max. 3600w",
"group4000": "FuseGroup max. 4000w",
"group5000": "FuseGroup max. 5000w"
}
},
"connection": {
Expand Down
6 changes: 4 additions & 2 deletions custom_components/zendure_ha/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,15 @@
"name": "groupe de fusible de l'appareil",
"state": {
"unused": "Aucun (appareil NON-utilisé en couplage intelligent)",
"owncircuit": "L'appareil a son propre circuit ou phase",
"owncircuit": "L'appareil a son propre circuit ou phase, max. 3600 W",
"group800": "groupe de fusible max. 800 W / 1200 W charge",
"group800_2400": "groupe de fusible max. 800 W / 2400 W charge",
"group1200": "groupe de fusible max. 1200 W",
"group2000": "groupe de fusible max. 2000 W",
"group2400": "groupe de fusible max. 2400 W",
"group3600": "groupe de fusible max. 3600 W"
"group3600": "groupe de fusible max. 3600 W",
"group4000": "groupe de fusible max. 4000 W",
"group5000": "groupe de fusible max. 5000 W"
}
},
"connection": {
Expand Down
6 changes: 4 additions & 2 deletions custom_components/zendure_ha/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,15 @@
"name": "Device fusegroup",
"state": {
"unused": "Niet gebruikt, apparaat heeft geen zekeringgroep",
"owncircuit": "Apparaat is aangesloten op aparte groep of fase",
"owncircuit": "Apparaat is aangesloten op aparte groep of fase, max. 3600w",
"group800": "Zekeringgroep max. 800w / 1200w batterijlading",
"group800_2400": "Zekeringgroep max. 800w / 2400w batterijlading",
"group1200": "Zekeringgroep max. 1200w",
"group2000": "Zekeringgroep max. 2000w",
"group2400": "Zekeringgroep max. 2400w",
"group3600": "Zekeringgroep max. 3600w"
"group3600": "Zekeringgroep max. 3600w",
"group4000": "Zekeringgroep max. 4000w",
"group5000": "Zekeringgroep max. 5000w"
}
},
"connection": {
Expand Down
6 changes: 4 additions & 2 deletions custom_components/zendure_ha/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,15 @@
"name": "Grupa bezpiecznikowa urządzenia",
"state": {
"unused": "Nieużywana, urządzenie nie ma grupy bezpiecznikowej",
"owncircuit": "Urządzenie ma własny obwód lub fazę",
"owncircuit": "Urządzenie ma własny obwód lub fazę, maks. 3600 W",
"group800": "Grupa bezpiecznikowa maks. 800 W / 1200 W ładowanie",
"group800_2400": "Grupa bezpiecznikowa maks. 800 W / 2400 W ładowanie",
"group1200": "Grupa bezpiecznikowa maks. 1200 W",
"group2000": "Grupa bezpiecznikowa maks. 2000 W",
"group2400": "Grupa bezpiecznikowa maks. 2400 W",
"group3600": "Grupa bezpiecznikowa maks. 3600 W"
"group3600": "Grupa bezpiecznikowa maks. 3600 W",
"group4000": "Grupa bezpiecznikowa maks. 4000 W",
"group5000": "Grupa bezpiecznikowa maks. 5000 W"
}
},
"connection": {
Expand Down
Loading