Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 10, 2025
1 parent 8f0400f commit 27a8311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion core/keys/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const (
Ext = "ext"
GreenShareHome = "greenShareHome"
GreenShareLoadpoints = "greenShareLoadpoints"
GridConfigured = "gridConfigured"
Grid = "grid"
HomePower = "homePower"
PrioritySoc = "prioritySoc"
Expand Down
4 changes: 3 additions & 1 deletion core/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,9 +918,11 @@ func (site *Site) prepare() {

site.publish(keys.SiteTitle, site.Title)

site.publish(keys.GridConfigured, site.gridMeter != nil)
site.publish(keys.Grid, api.Meter(nil))
site.publish(keys.Pv, make([]api.Meter, len(site.pvMeters)))
site.publish(keys.Battery, make([]api.Meter, len(site.batteryMeters)))
site.publish(keys.Aux, make([]api.Meter, len(site.auxMeters)))
site.publish(keys.Ext, make([]api.Meter, len(site.extMeters)))
site.publish(keys.PrioritySoc, site.prioritySoc)
site.publish(keys.BufferSoc, site.bufferSoc)
site.publish(keys.BufferStartSoc, site.bufferStartSoc)
Expand Down

0 comments on commit 27a8311

Please sign in to comment.