Added Legrand for testing charging profiles
MODIFY
src/integration/charging-station-vendor/ChargingStationVendorFactory.ts
src/integration/charging-station-vendor/ChargingStationVendorFactory.ts
@@ -2,6 +2,7 @@ import ChargingStation, { ChargerVendor } from '../../types/ChargingStation';
import ChargingStationVendorIntegration from './ChargingStationVendorIntegration';
import DeltaChargingStationVendorIntegration from './delta/DeltaChargingStationVendorIntegration';
+import LegrandChargingStationVendorIntegration from './legrand/LegrandChargingStationVendorIntegration';
import SchneiderChargingStationVendorIntegration from './schneider/SchneiderChargingStationVendorIntegration';
import WebastoChargingStationVendorIntegration from './webasto/WebastoChargingStationVendorIntegration';
@@ -10,18 +11,18 @@ export default class ChargingStationVendorFactory {
static getChargingStationVendorImpl(chargingStation: ChargingStation): ChargingStationVendorIntegration {
let chargingStationVendorImpl = null;
switch (chargingStation.chargePointVendor) {
- // Schneider
case ChargerVendor.SCHNEIDER:
chargingStationVendorImpl = new SchneiderChargingStationVendorIntegration(chargingStation);
break;
- // Webasto
case ChargerVendor.WEBASTO:
chargingStationVendorImpl = new WebastoChargingStationVendorIntegration(chargingStation);
break;
- // Delta
case ChargerVendor.DELTA:
chargingStationVendorImpl = new DeltaChargingStationVendorIntegration(chargingStation);
break;
+ case ChargerVendor.LEGRAND:
+ chargingStationVendorImpl = new LegrandChargingStationVendorIntegration(chargingStation);
+ break;
}
return chargingStationVendorImpl;
}

ADD
src/integration/charging-station-vendor/legrand/LegrandChargingStationVendorIntegration.ts
+import ChargingStation from '../../../types/ChargingStation';
+import ChargingStationVendorIntegration from '../ChargingStationVendorIntegration';
+
+export default class LegrandChargingStationVendorIntegration extends ChargingStationVendorIntegration {
+ constructor(chargingStation: ChargingStation) {
+ super(chargingStation);
+ }
+}

MODIFY
src/types/ChargingStation.ts
src/types/ChargingStation.ts
@@ -253,4 +253,5 @@ export enum ChargerVendor {
WEBASTO = 'Webasto',
DELTA = 'DELTA',
ABB = 'ABB',
+ LEGRAND = 'Legrand',
}

Added Legrand for testing charging profiles