From e14ed01de8b6a09ae7710a177525675b12a52ad9 Mon Sep 17 00:00:00 2001 From: "ahmed.magdy" Date: Mon, 18 Nov 2024 16:12:14 +0200 Subject: [PATCH] Have LoadControlLimits in OPEV and OSCEV filter for limits in units of Amperes only --- usecases/cem/opev/public.go | 1 + usecases/cem/oscev/public.go | 1 + 2 files changed, 2 insertions(+) diff --git a/usecases/cem/opev/public.go b/usecases/cem/opev/public.go index 48baf2b4..893f6b4b 100644 --- a/usecases/cem/opev/public.go +++ b/usecases/cem/opev/public.go @@ -65,6 +65,7 @@ func (e *OPEV) LoadControlLimits(entity spineapi.EntityRemoteInterface) ( filter := model.LoadControlLimitDescriptionDataType{ LimitType: util.Ptr(model.LoadControlLimitTypeTypeMaxValueLimit), LimitCategory: util.Ptr(model.LoadControlCategoryTypeObligation), + Unit: util.Ptr(model.UnitOfMeasurementTypeA), ScopeType: util.Ptr(model.ScopeTypeTypeOverloadProtection), } return internal.LoadControlLimits(e.LocalEntity, entity, filter) diff --git a/usecases/cem/oscev/public.go b/usecases/cem/oscev/public.go index de4cba0b..6e030e37 100644 --- a/usecases/cem/oscev/public.go +++ b/usecases/cem/oscev/public.go @@ -65,6 +65,7 @@ func (e *OSCEV) LoadControlLimits(entity spineapi.EntityRemoteInterface) ( filter := model.LoadControlLimitDescriptionDataType{ LimitType: util.Ptr(model.LoadControlLimitTypeTypeMaxValueLimit), LimitCategory: util.Ptr(model.LoadControlCategoryTypeRecommendation), + Unit: util.Ptr(model.UnitOfMeasurementTypeA), ScopeType: util.Ptr(model.ScopeTypeTypeSelfConsumption), } return internal.LoadControlLimits(e.LocalEntity, entity, filter)