diff --git a/core/site.go b/core/site.go index e905f07fc..04c7db6a3 100644 --- a/core/site.go +++ b/core/site.go @@ -381,6 +381,18 @@ func (site *Site) DumpConfig() { } } + site.log.INFO.Println(" tariffs:") + trf := func(u api.TariffUsage) string { + if t := site.GetTariff(u); t != nil { + return t.Type().String() + } + return presence[false] + } + site.log.INFO.Printf(" grid: %s", trf(api.TariffUsageGrid)) + site.log.INFO.Printf(" feed-in: %s", trf(api.TariffUsageFeedIn)) + site.log.INFO.Printf(" co2: %s", trf(api.TariffUsageCo2)) + site.log.INFO.Printf(" solar: %s", trf(api.TariffUsageSolar)) + for i, lp := range site.loadpoints { lp.log.INFO.Printf("loadpoint %d:", i+1) lp.log.INFO.Printf(" mode: %s", lp.GetMode())