Skip to content
Draft
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
3 changes: 3 additions & 0 deletions custom_components/smaev/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@
},
"full_charge_disconnect": {
"name": "Disconnection after full charge"
},
"lock_charging_cable": {
"name": "Lock the charging cable to the charging station"
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions custom_components/smaev/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ class SmaEvChargerSwitchEntityDescription(SwitchEntityDescription):
entity_registry_enabled_default=True,
entity_category=EntityCategory.DIAGNOSTIC,
),
SmaEvChargerSwitchEntityDescription(
key="lock_charging_cable",
translation_key="lock_charging_cable",
type=SMAEV_PARAMETER,
channel="Parameter.Chrg.CblLok",
value_mapping={
SmaEvChargerParameters.On: True,
SmaEvChargerParameters.Off: False,
},
entity_registry_enabled_default=True,
),
)


Expand Down
3 changes: 3 additions & 0 deletions custom_components/smaev/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@
},
"manual_charging_release": {
"name": "Manuelle Ladefreigabe"
},
"lock_charging_cable": {
"name": "Ladekabel an Ladestation verriegeln"
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions custom_components/smaev/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@
},
"full_charge_disconnect": {
"name": "Disconnection after full charge"
},
"lock_charging_cable": {
"name": "Lock the charging cable to the charging station"
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions tests/fixtures/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,17 @@
"Wifi2",
"Wifi3"
]
},
{
"channelId": "Parameter.Chrg.CblLok",
"editable": true,
"possibleValues": [
"303",
"308"
],
"state": "Confirmed",
"timestamp": "2025-08-23T08:45:00.000Z",
"value": "303"
}
]
}
Expand Down