Amber: invert feed-in prices to match evcc expectations (#22405)
This commit is contained in:
parent
3a59c4c767
commit
dc22ff5e85
1 changed files with 5 additions and 0 deletions
|
|
@ -109,6 +109,11 @@ func (t *Amber) run(done chan error) {
|
|||
if r.AdvancedPrice != nil {
|
||||
ar.Value = r.AdvancedPrice.Predicted / 1e2
|
||||
}
|
||||
|
||||
// Invert feed-in prices to match evcc expectations (positive = paid for exports)
|
||||
if t.channel == "feedin" {
|
||||
ar.Value = -ar.Value
|
||||
}
|
||||
data = append(data, ar)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue