Set to 10%  margin on session in error over consumption
MODIFY
src/storage/mongodb/TransactionStorage.ts
src/storage/mongodb/TransactionStorage.ts
@@ -1195,7 +1195,7 @@ export default class TransactionStorage {
{ $match: { 'activeDuration': { $gt: 0 } } },
{ $addFields: { connector: { $arrayElemAt: ['$chargeBox.connectors', { $subtract: ['$connectorId', 1] }] } } },
{ $addFields: { averagePower: { $abs: { $multiply: [{ $divide: ['$stop.totalConsumptionWh', '$activeDuration'] }, 3600] } } } },
- { $addFields: { impossiblePower: { $lte: [{ $subtract: [{ $multiply: ['$connector.power', 1.05] }, '$averagePower'] }, 0] } } },
+ { $addFields: { impossiblePower: { $lte: [{ $subtract: [{ $multiply: ['$connector.power', 1.10] }, '$averagePower'] }, 0] } } },
{ $match: { 'impossiblePower': { $eq: true } } },
{ $addFields: { 'errorCode': TransactionInErrorType.OVER_CONSUMPTION } }
];

Set to 10%  margin on session in error over consumption