Small OCPP enhancements
MODIFY
src/integration/charging-station-vendor/ChargingStationVendorFactory.ts
src/integration/charging-station-vendor/ChargingStationVendorFactory.ts
@@ -15,52 +15,7 @@ export default class ChargingStationVendorFactory {
case ChargerVendor.KEBA:
chargingStationVendorImpl = new KebaChargingStationVendorIntegration(chargingStation);
break;
- case ChargerVendor.ABB:
- case ChargerVendor.ARK_AC_EV_CHARGER:
- case ChargerVendor.DBTCEV:
- case ChargerVendor.SCHNEIDER:
- case ChargerVendor.EVMETER:
- case ChargerVendor.INNOGY:
- case ChargerVendor.INGETEAM:
- case ChargerVendor.INGETEAM_ENERGY:
- case ChargerVendor.IES:
- case ChargerVendor.WALLBOX_CHARGERS:
- case ChargerVendor.ENPLUS:
- case ChargerVendor.EXADYS:
- case ChargerVendor.EBEE:
- case ChargerVendor.BENDER:
- case ChargerVendor.WEBASTO:
- case ChargerVendor.MENNEKES:
- case ChargerVendor.DELTA_ELECTRONICS:
- case ChargerVendor.DELTA:
- case ChargerVendor.LEGRAND:
- case ChargerVendor.ATESS:
- case ChargerVendor.SAP_LABS_FRANCE:
- case ChargerVendor.CIRCONTROL:
- case ChargerVendor.XCHARGE:
- case ChargerVendor.JOINON:
- case ChargerVendor.LAFON_TECHNOLOGIES:
- case ChargerVendor.ALFEN:
- case ChargerVendor.ALPITRONIC:
- case ChargerVendor.CFOS:
- case ChargerVendor.ECOTAP:
- case ChargerVendor.EFACEC:
- case ChargerVendor.HDM:
- case ChargerVendor.HAGER:
- case ChargerVendor.JOINT:
- case ChargerVendor.AIXCHARGE:
- case ChargerVendor.TRITIUM:
- case ChargerVendor.GREEN_MOTION:
- case ChargerVendor.NEXANS:
- case ChargerVendor.G2_MOBILITY:
- case ChargerVendor.MEAECN:
- case ChargerVendor.KOSTAD:
- case ChargerVendor.KEMPOWER:
- case ChargerVendor.GROWATT:
- case ChargerVendor.ELECTRIC_LOADING:
- case ChargerVendor.CHARGEX_GMBH:
- case ChargerVendor.SETEC:
- case ChargerVendor.VESTEL:
+ default:
chargingStationVendorImpl = new DefaultChargingStationVendorIntegration(chargingStation);
break;
}

MODIFY
src/integration/smart-charging/SmartChargingIntegration.ts
src/integration/smart-charging/SmartChargingIntegration.ts
@@ -58,7 +58,6 @@ export default abstract class SmartChargingIntegration<T extends SmartChargingSe
continue;
}
actionsResponse.inError++;
- // Log failed
await Logging.logError({
tenantID: this.tenant.id,
siteID: chargingProfile.chargingStation.siteID,

MODIFY
src/server/ocpp/services/OCPPService.ts
src/server/ocpp/services/OCPPService.ts
@@ -372,10 +372,11 @@ export default class OCPPService {
}
// Cleanup ongoing Transaction
await this.processExistingTransaction(tenant, chargingStation, startTransaction.connectorId);
- // Handle car and current SOC
+ // Handle Car
await this.processTransactionCar(tenant, newTransaction, chargingStation, null, user, TransactionAction.START);
- // Pricing
+ // Create consumption
const firstConsumption = await OCPPUtils.createFirstConsumption(tenant, chargingStation, newTransaction);
+ // Pricing
await OCPPUtils.processTransactionPricing(tenant, newTransaction, chargingStation, firstConsumption, TransactionAction.START);
// Billing
await BillingFacade.processStartTransaction(tenant, newTransaction, chargingStation, chargingStation.siteArea, user);

MODIFY
src/types/ChargingStation.ts
src/types/ChargingStation.ts
@@ -363,5 +363,5 @@ export enum ChargerVendor {
SETEC = 'setec-power',
ELECTRIC_LOADING = 'electric loading',
VESTEL = 'vestel',
- CHARGEX_GMBH = "Chargex gmbh",
+ CHARGEX_GMBH = 'Chargex gmbh',
}

Small OCPP enhancements