Documentation ¶
Index ¶
- Constants
- func DumpPower(detailsIn <-chan Details)
- func Run()
- type Details
- type MapDetails
- func (d MapDetails) AverageLoadPower() float64
- func (d MapDetails) AverageSolarGeneration() float64
- func (d MapDetails) ChargerState() string
- func (d MapDetails) CurrentLoadPower() float64
- func (d MapDetails) CurrentSolarGeneration() float64
- func (d MapDetails) DisableInverters(count int64)
- func (d MapDetails) EnableInverters(count int64)
- func (d MapDetails) EnabledInverters() int64
- func (d MapDetails) PowerPerInverter() float64
- func (d MapDetails) SetDebug(debug string)
- func (d MapDetails) SetInverterCount(count int64)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.