Amber: invert feed-in prices to match evcc expectations (#22405)

This commit is contained in:
ross-w 2025-07-17 03:46:57 +10:00 • committed by GitHub
parent 3a59c4c767
commit dc22ff5e85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}
}