control

package
v0.0.0-...-0042d8f Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CHARGER_STATE = "sensor.powerhouse_solar_charger_charge_state"
View Source
const CHARGER_VOLTAGE = "sensor.powerhouse_solar_charger_battery_voltage"
View Source
const LOAD_POWER = "sensor.powerwall_load_now"
View Source
const LOAD_POWER_AVERAGE = "sensor.powerwall_load_now_average"
View Source
const POWERHOUSE_CONTROL_MANUAL = "input_boolean.powerhouse_control_manual"
View Source
const POWERHOUSE_DEBUG_STRING = "input_text.powerhouse_control_debug"
View Source
const SOLAR_GENERATION = "sensor.powerhouse_solar_charger_solar_power"
View Source
const SOLAR_GENERATION_AVERAGE = "sensor.powerhouse_solar_charger_solar_power_average"
View Source
const UNAVAILABLE = "unavailable"

Variables

This section is empty.

Functions

func DumpPower

func DumpPower(detailsIn <-chan Details)

func Run

func Run()

Types

type Details

type Details interface {
	ChargerState() string
	AverageSolarGeneration() float64
	CurrentSolarGeneration() float64
	AverageLoadPower() float64
	CurrentLoadPower() float64
	PowerPerInverter() float64
	EnabledInverters() int64

	SetDebug(debug string)
	SetInverterCount(count int64)
	EnableInverters(count int64)
	DisableInverters(count int64)
}

type MapDetails

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

func (MapDetails) AverageLoadPower

func (d MapDetails) AverageLoadPower() float64

func (MapDetails) AverageSolarGeneration

func (d MapDetails) AverageSolarGeneration() float64

func (MapDetails) ChargerState

func (d MapDetails) ChargerState() string

func (MapDetails) CurrentLoadPower

func (d MapDetails) CurrentLoadPower() float64

func (MapDetails) CurrentSolarGeneration

func (d MapDetails) CurrentSolarGeneration() float64

func (MapDetails) DisableInverters

func (d MapDetails) DisableInverters(count int64)

func (MapDetails) EnableInverters

func (d MapDetails) EnableInverters(count int64)

func (MapDetails) EnabledInverters

func (d MapDetails) EnabledInverters() int64

func (MapDetails) PowerPerInverter

func (d MapDetails) PowerPerInverter() float64

func (MapDetails) SetDebug

func (d MapDetails) SetDebug(debug string)

func (MapDetails) SetInverterCount

func (d MapDetails) SetInverterCount(count int64)

Jump to

Keyboard shortcuts

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