Skip to content

Commit dc22ff5

Browse files
authored
Amber: invert feed-in prices to match evcc expectations (#22405)
1 parent 3a59c4c commit dc22ff5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tariff/amber.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ func (t *Amber) run(done chan error) {
109109
if r.AdvancedPrice != nil {
110110
ar.Value = r.AdvancedPrice.Predicted / 1e2
111111
}
112+
113+
// Invert feed-in prices to match evcc expectations (positive = paid for exports)
114+
if t.channel == "feedin" {
115+
ar.Value = -ar.Value
116+
}
112117
data = append(data, ar)
113118
}
114119
}

0 commit comments

Comments
 (0)