diff --git a/meters/sunspec/models.go b/meters/sunspec/models.go index fea179fc..d37d9814 100644 --- a/meters/sunspec/models.go +++ b/meters/sunspec/models.go @@ -8,6 +8,7 @@ import ( "github.com/andig/gosunspec/models/model113" "github.com/andig/gosunspec/models/model124" "github.com/andig/gosunspec/models/model160" + "github.com/andig/gosunspec/models/model201" "github.com/andig/gosunspec/models/model203" "github.com/volkszaehler/mbmd/meters" @@ -115,6 +116,20 @@ var modelMap = map[sunspec.ModelId]map[int]map[string]meters.Measurement{ model160.DCWH: meters.DCEnergyS3, }, }, + // single phase (AN or AB) meter + model201.ModelID: { + 0: { + model201.A: meters.Current, + model201.Hz: meters.Frequency, + model201.PF: meters.Cosphi, + model201.PhV: meters.Voltage, + model201.TotWhExp: meters.Export, + model201.TotWhImp: meters.Import, + model201.VA: meters.ApparentPower, + model201.VAR: meters.ReactivePower, + model201.W: meters.Power, + }, + }, // wye-connect three phase (abcn) meter model203.ModelID: { 0: {