Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargeController ¶
ChargeController provides controlling of the charger's max allowed power
type ChargeMode ¶
type ChargeMode string
ChargeMode are charge modes modeled after OpenWB
const ( ModeOff ChargeMode = "off" ModeNow ChargeMode = "now" ModeMinPV ChargeMode = "minpv" ModePV ChargeMode = "pv" )
type ChargeStatus ¶
type ChargeStatus string
ChargeStatus is the EVSE models charging status from A to F
const ( StatusNone ChargeStatus = "" StatusA ChargeStatus = "A" // Fzg. angeschlossen: nein Laden möglich: nein StatusB ChargeStatus = "B" // Fzg. angeschlossen: ja Laden möglich: nein StatusC ChargeStatus = "C" // Fzg. angeschlossen: ja Laden möglich: ja StatusD ChargeStatus = "D" // Fzg. angeschlossen: ja Laden möglich: ja StatusE ChargeStatus = "E" // Fzg. angeschlossen: ja Laden möglich: nein StatusF ChargeStatus = "F" // Fzg. angeschlossen: ja Laden möglich: nein )
type Charger ¶
type Charger interface { Status() (ChargeStatus, error) Enabled() (bool, error) Enable(enable bool) error ActualCurrent() (int64, error) }
Charger is able to provide current charging status and to enable/disabler charging
type LoadPoint ¶
type LoadPoint interface { Update() CurrentChargeMode() ChargeMode ChargeMode(mode ChargeMode) error }
LoadPoint ties charger and meter together and contains the controller logic
type Logger ¶
type Logger interface { Println(v ...interface{}) Printf(format string, v ...interface{}) }
Click to show internal directories.
Click to hide internal directories.