hot fix for Compleo CS - LOcation is not set at all
MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -1166,7 +1166,8 @@ export default class OCPPUtils {
public static isEnergyActiveImportMeterValue(meterValue: OCPPNormalizedMeterValue): boolean {
return !meterValue.attribute ||
(meterValue.attribute.measurand === OCPPMeasurand.ENERGY_ACTIVE_IMPORT_REGISTER &&
- meterValue.attribute.location === OCPPLocation.OUTLET &&
+ // Let's take it only if Location is Outlet (or not set)
+ meterValue.attribute.location !== OCPPLocation.INLET &&
(meterValue.attribute.context === OCPPReadingContext.SAMPLE_PERIODIC ||
meterValue.attribute.context === OCPPReadingContext.TRANSACTION_END ||
meterValue.attribute.context === OCPPReadingContext.SAMPLE_CLOCK));

hot fix for Compleo CS - LOcation is not set at all