Documentation
¶
Overview ¶
Package simulate provides fake device sources for "pvmon simulate": a small, deterministic household model whose values are encoded through the real profiles, so the whole pipeline runs as with real devices (spec 13).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Probe ¶
func Probe(loc *time.Location) func(*site.Site, *site.Device, collector.Transport, util.Clock, zerolog.Logger) (collector.Source, func(), error)
Probe is an app.ProbeFactory that simulates the probed device like a running one.
Types ¶
type Powers ¶
type Powers struct {
// W; battery + = discharging, grid + = import. House is the whole house load,
// Backup the part of it on the inverter's backup output.
PV, Battery, Grid, House, Backup, Wallbox, HeatPump float64
}
Powers are the instantaneous powers of the household by role.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source simulates one device: every block of its profile follows the household model.