chore: added smappee api
This commit is contained in:
@@ -33,11 +33,11 @@ internal class SmappeeChargerService : IChargerService
|
||||
var response = request switch
|
||||
{
|
||||
ChargerRequests.Enable => await httpClient.PutAsJsonAsync<SmappeeRequestBody>(
|
||||
$"/dev/v3/chargingstations/${options.ChargingStation}/connectors/{options.Connector}/mode",
|
||||
$"/dev/v3/chargingstations/{options.ChargingStation}/connectors/{options.Connector}/mode",
|
||||
new SmappeeRequestBody("NORMAL", new Limit("AMPERE", 6))
|
||||
),
|
||||
ChargerRequests.Disable => await httpClient.PutAsJsonAsync(
|
||||
"/dev/v3/chargingstations",
|
||||
$"/dev/v3/chargingstations/{options.ChargingStation}/connectors/{options.Connector}/mode",
|
||||
new SmappeeRequestBody("PAUSED", null)
|
||||
),
|
||||
_ => throw new NotImplementedException(),
|
||||
|
||||
Reference in New Issue
Block a user