Skip to content

Commit

Permalink
Add model 201
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 9, 2020
1 parent 8172e18 commit 5e2245e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions meters/sunspec/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 5e2245e

Please sign in to comment.