Skip to content

Commit

Permalink
Added autolimit options to evse mode and added some transaltions
Browse files Browse the repository at this point in the history
  • Loading branch information
persuader72 committed Feb 2, 2025
1 parent f7e73fe commit 4662f94
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 9 deletions.
2 changes: 1 addition & 1 deletion custom_components/silla_prism/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"issue_tracker": "https://github.com/persuader72/silla-prism-integration/blob/main/README.md",
"requirements": [],
"ssdp": [],
"version": "0.5.7",
"version": "0.5.8",
"zeroconf": []
}
11 changes: 9 additions & 2 deletions custom_components/silla_prism/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,19 @@ async def async_will_remove_from_hass(self) -> None:
has_entity_name=True,
translation_key="total_output_energy",
),
# FIXME: suspended is not 4 but 7
PrismSensorEntityDescription(
key="current_port_mode_{}",
topic="{}/mode",
device_class=SensorDeviceClass.ENUM,
options=["solar", "normal", "paused", "suspended"],
options=[
"solar",
"normal",
"paused",
"suspended",
"unknown",
"unknown",
"autolimit",
],
has_entity_name=True,
translation_key="current_port_mode",
),
Expand Down
24 changes: 21 additions & 3 deletions custom_components/silla_prism/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
"name": "Long touch"
},
"online": {
"name": "Is online"
"name": "Connection status",
"state": {
"on": "Online",
"off": "Offline"
}
}
},
"number": {
Expand All @@ -58,7 +62,15 @@
"name": "Output current"
},
"current_port_mode": {
"name": "Current port output mode"
"name": "Current port output mode",
"state": {
"solar": "Solar",
"normal": "Normal",
"paused": "Paused",
"suspended": "Suspended",
"unknown": "Unknown",
"autolimit": "Auto limit"
}
},
"output_car_current": {
"name": "Car requested by car"
Expand All @@ -67,7 +79,13 @@
"name": "Power from utility"
},
"current_state": {
"name": "Wallbox current state"
"name": "Wallbox current state",
"state": {
"idle": "Idle",
"waiting": "Waiting",
"charging": "Charging",
"pause": "Paused"
}
},
"current_set_by_user": {
"name": "Current limited by user"
Expand Down
24 changes: 21 additions & 3 deletions custom_components/silla_prism/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
"name": "Pressione lunga"
},
"online": {
"name": "Connesione attiva"
"name": "Stato connessione",
"state": {
"on": "Connesso",
"off": "Disconnesso"
}
}
},
"number": {
Expand All @@ -58,7 +62,15 @@
"name": "Corrente erogata"
},
"current_port_mode": {
"name": "Modo della porta"
"name": "Modo della porta",
"state": {
"solar": "Solare",
"normal": "Normale",
"paused": "In pausa",
"suspended": "In sospeso",
"unknown": "Sconosciuto",
"autolimit": "Auto limitazione"
}
},
"output_car_current": {
"name": "Corrente pilotata dall'auto"
Expand All @@ -67,7 +79,13 @@
"name": "Potenza prelevata dalla rete"
},
"current_state": {
"name": "Stato wallbox"
"name": "Stato wallbox",
"state": {
"idle": "Inattivo",
"waiting": "In attesa",
"charging": "In carica",
"pause": "In pausa"
}
},
"current_set_by_user": {
"name": "Corrente limitata dall'utente"
Expand Down

0 comments on commit 4662f94

Please sign in to comment.