Versions in this module Expand all Collapse all v0 v0.0.3 Nov 9, 2026 v0.0.2 Nov 9, 2026 Changes in this version + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) Run(ctx context.Context) error + func (c *Client) SetBackupReserve(ctx context.Context, percent uint32) error + type Config struct + DebugLog bool + DeviceSN string + Email string + Logger *slog.Logger + OnReport func(Report) + Password string + StreamSwitch bool + type Pack struct + FullCap uint32 + PowerW float32 + RealSOC float32 + SN string + SOC uint32 + type Report struct + BackupRatio uint32 + BackupReserve uint32 + BatterySOC uint32 + BatteryW float32 + ChargeLimit uint32 + Derived bool + GridW float32 + HasLimits bool + HasSOC bool + LoadW float32 + Packs []Pack + SolarMPPT float32 + SolarOtherPV float32 + SolarPV1 float32 + SolarPV2 float32 + SolarPV3 float32 + SolarPVInv float32 + Time time.Time + func (r Report) String() string