chargingStation.isRegistered() ||
(!chargingStation.getOcppStrictCompliance() && chargingStation.isInUnknownState())
) {
- if (this.incomingRequestHandlers.has(commandName)) {
+ if (
+ this.incomingRequestHandlers.has(commandName) &&
+ ChargingStationUtils.isCommandSupported(commandName, chargingStation.stationInfo)
+ ) {
try {
// Call the method to build the response
response = await this.incomingRequestHandlers.get(commandName)(