diff --git a/charger/ocpp.go b/charger/ocpp.go index 81663f86e..324e8d896 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -239,6 +239,11 @@ func NewOCPP(id string, connector int, idtag string, c.idtag = *opt.Value c.log.DEBUG.Printf("overriding default `idTag` with Alfen-specific value: %s", c.idtag) } + + case ocpp.KeyEvBoxSupportedMeasurands: + if meterValues == "" { + meterValues = *opt.Value + } } if err != nil { diff --git a/charger/ocpp/const.go b/charger/ocpp/const.go index 23adf372a..872f0fd67 100644 --- a/charger/ocpp/const.go +++ b/charger/ocpp/const.go @@ -17,4 +17,5 @@ const ( // Vendor specific keys KeyAlfenPlugAndChargeIdentifier = "PlugAndChargeIdentifier" + KeyEvBoxSupportedMeasurands = "evb_SupportedMeasurands" )