bosch

package
v0.0.0-...-aad484d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instances = new(sync.Map)

Functions

This section is empty.

Types

type API

type API struct {
	*request.Helper
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(log *util.Logger, uri string, cache time.Duration) *API

func (*API) Login

func (c *API) Login() (err error)

func (*API) Status

func (c *API) Status() (StatusResponse, error)

type LoginResponse

type LoginResponse struct {
	// contains filtered or unexported fields
}

type StatusResponse

type StatusResponse struct {
	CurrentBatterySoc     float64
	SellToGrid            float64
	BuyFromGrid           float64
	PvPower               float64
	BatteryChargePower    float64
	BatteryDischargePower float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL