Adjust the tarrif ID to the 22kW
MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
@@ -783,7 +783,7 @@ export default class OCPIUtilsService {
voltage: voltage,
amperage: amperage,
power_type: OCPIUtilsService.convertOCPINumberOfConnectedPhases2PowerType(ocpiNumberOfConnectedPhases),
- tariff_id: OCPIUtilsService.buildTariffID(tenant, chargingStation),
+ tariff_id: OCPIUtilsService.buildTariffID(tenant, chargingStation, connector),
last_updated: chargingStation.lastSeen
};
}
@@ -944,7 +944,7 @@ export default class OCPIUtilsService {
}
}
- private static buildTariffID(tenant: Tenant, chargingStation: ChargingStation): string {
+ private static buildTariffID(tenant: Tenant, chargingStation: ChargingStation, connector: Connector): string {
const defaultTariff = 'Default';
switch (tenant?.id) {
// Station-e
@@ -955,6 +955,11 @@ export default class OCPIUtilsService {
case '60d5a20c9deee6001419cabb':
switch (chargingStation?.id) {
case 'IES-Marcel-Pagnol-Boussy-Saint-Antoine':
+ // Type 2
+ if (connector.type === ConnectorType.TYPE_2) {
+ return 'STE-AC_22k';
+ }
+ // DC
return 'STE-DC_25k';
case 'P91800RMRCLPGNL22AC':
return 'STE-AC_22k';

Adjust the tarrif ID to the 22kW