evcc-io/api/tariff.go
Daniel Martin d68e5e5809
Tariffs: add outdoor temperature type and OpenMeteo (#27780)
Co-authored-by: Michael Geers <michael@geers.tv>
2026-07-17 12:54:56 +00:00

28 lines
613 B
Go

package api
//go:generate go tool enumer -type TariffType -trimprefix TariffType -transform=lower -text
//go:generate go tool enumer -type TariffUsage -trimprefix TariffUsage -transform=lower
type TariffType int
const (
_ TariffType = iota
TariffTypePriceStatic
TariffTypePriceDynamic
TariffTypePriceForecast
TariffTypeCo2
TariffTypeSolar
TariffTypeTemperature // outdoor temperature forecast in °C
)
type TariffUsage int
const (
_ TariffUsage = iota
TariffUsageCo2
TariffUsageFeedIn
TariffUsageGrid
TariffUsagePlanner
TariffUsageSolar
TariffUsageTemperature // outdoor temperature forecast
)