diff --git a/charger/ocpp/cp_core.go b/charger/ocpp/cp_core.go index f913e27181..30be766550 100644 --- a/charger/ocpp/cp_core.go +++ b/charger/ocpp/cp_core.go @@ -58,6 +58,10 @@ func (cp *CP) StatusNotification(request *core.StatusNotificationRequest) (*core return nil, ErrInvalidRequest } + if request.ConnectorId == 0 { + return new(core.StatusNotificationConfirmation), nil + } + conn := cp.connectorByID(request.ConnectorId) if conn == nil { return nil, ErrInvalidConnector