From 5e2245ef84ad019c0063ac88b3ea19cdd7ede3f0 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 9 Aug 2020 13:13:38 +0200 Subject: [PATCH] Add model 201 --- meters/sunspec/models.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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: {