Documentation ¶
Index ¶
- func NewAiwaysFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewAudiFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewBMWFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewBMWMiniFromConfig(brand string, other map[string]interface{}) (api.Vehicle, error)
- func NewCarWingsFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCitroenFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCloudFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewConfigurableFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCupraFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewDSFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewEnyaqFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFiatFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFordFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFromConfig(typ string, other map[string]interface{}) (v api.Vehicle, err error)
- func NewHyundaiFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewIDFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewJLRFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewKiaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewMiniFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewNissanFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewNiuFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewOpelFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewOvmsFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewPeugeotFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewPorscheFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewRenaultDaciaFromConfig(brand string, other map[string]interface{}) (api.Vehicle, error)
- func NewSeatFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewSkodaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewSmartFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewTeslaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewTronityFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVWFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVehicleFromTemplateConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVolvoConnectedFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVolvoFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func Types() []string
- type Aiways
- type Audi
- type BMW
- type Bluelink
- func (v Bluelink) Capacity() float64
- func (v Bluelink) Features() []api.Feature
- func (v Bluelink) Icon() string
- func (v Bluelink) Identifiers() []string
- func (v Bluelink) OnIdentified() api.ActionConfig
- func (v Bluelink) Phases() int
- func (v Bluelink) SetTitle(title string)
- func (v Bluelink) Title() string
- type CarWings
- func (v CarWings) Capacity() float64
- func (v *CarWings) Climater() (bool, error)
- func (v CarWings) Features() []api.Feature
- func (v CarWings) Icon() string
- func (v CarWings) Identifiers() []string
- func (v CarWings) OnIdentified() api.ActionConfig
- func (v CarWings) Phases() int
- func (v *CarWings) Range() (int64, error)
- func (v CarWings) SetTitle(title string)
- func (v *CarWings) Soc() (float64, error)
- func (v *CarWings) Status() (api.ChargeStatus, error)
- func (v CarWings) Title() string
- type ClientCredentials
- type Cloud
- func (v Cloud) Capacity() float64
- func (v Cloud) Features() []api.Feature
- func (v Cloud) Icon() string
- func (v Cloud) Identifiers() []string
- func (v Cloud) OnIdentified() api.ActionConfig
- func (v Cloud) Phases() int
- func (v Cloud) SetTitle(title string)
- func (v *Cloud) Soc() (float64, error)
- func (v Cloud) Title() string
- type Cupra
- type Enyaq
- type Fiat
- type Ford
- type ID
- type JLR
- func (v JLR) Capacity() float64
- func (v JLR) Features() []api.Feature
- func (v JLR) Icon() string
- func (v JLR) Identifiers() []string
- func (v JLR) OnIdentified() api.ActionConfig
- func (v JLR) Phases() int
- func (v *JLR) RegisterDevice(log *util.Logger, user, device string, t jlr.Token) error
- func (v JLR) SetTitle(title string)
- func (v JLR) Title() string
- type Nissan
- type Niu
- func (v Niu) Capacity() float64
- func (v Niu) Features() []api.Feature
- func (v Niu) Icon() string
- func (v Niu) Identifiers() []string
- func (v Niu) OnIdentified() api.ActionConfig
- func (v Niu) Phases() int
- func (v *Niu) Range() (int64, error)
- func (v Niu) SetTitle(title string)
- func (v *Niu) Soc() (float64, error)
- func (v *Niu) Status() (api.ChargeStatus, error)
- func (v Niu) Title() string
- type Ovms
- func (v Ovms) Capacity() float64
- func (v Ovms) Features() []api.Feature
- func (v *Ovms) FinishTime() (time.Time, error)
- func (v Ovms) Icon() string
- func (v Ovms) Identifiers() []string
- func (v *Ovms) Odometer() (float64, error)
- func (v Ovms) OnIdentified() api.ActionConfig
- func (v Ovms) Phases() int
- func (v *Ovms) Position() (float64, float64, error)
- func (v *Ovms) Range() (int64, error)
- func (v Ovms) SetTitle(title string)
- func (v *Ovms) Soc() (float64, error)
- func (v *Ovms) Status() (api.ChargeStatus, error)
- func (v Ovms) Title() string
- type PSA
- type Porsche
- type Renault
- type Seat
- type Skoda
- type Smart
- type Tesla
- func (v Tesla) Capacity() float64
- func (v *Tesla) ChargedEnergy() (float64, error)
- func (v Tesla) Features() []api.Feature
- func (v *Tesla) FinishTime() (time.Time, error)
- func (v Tesla) Icon() string
- func (v Tesla) Identifiers() []string
- func (v *Tesla) MaxCurrent(current int64) error
- func (v *Tesla) Odometer() (float64, error)
- func (v Tesla) OnIdentified() api.ActionConfig
- func (v Tesla) Phases() int
- func (v *Tesla) Position() (float64, float64, error)
- func (v *Tesla) Range() (int64, error)
- func (v Tesla) SetTitle(title string)
- func (v *Tesla) Soc() (float64, error)
- func (v *Tesla) StartCharge() error
- func (v *Tesla) Status() (api.ChargeStatus, error)
- func (v *Tesla) StopCharge() error
- func (v *Tesla) TargetSoc() (float64, error)
- func (v Tesla) Title() string
- func (v *Tesla) WakeUp() error
- type Tokens
- type Tronity
- func (v Tronity) Capacity() float64
- func (v Tronity) Features() []api.Feature
- func (v Tronity) Icon() string
- func (v Tronity) Identifiers() []string
- func (v Tronity) OnIdentified() api.ActionConfig
- func (v Tronity) Phases() int
- func (v *Tronity) Range() (int64, error)
- func (v *Tronity) RefreshToken(_ *oauth2.Token) (*oauth2.Token, error)
- func (v Tronity) SetTitle(title string)
- func (v *Tronity) Soc() (float64, error)
- func (v Tronity) Title() string
- type VW
- type Vehicle
- func (v Vehicle) Capacity() float64
- func (v Vehicle) Features() []api.Feature
- func (v Vehicle) Icon() string
- func (v Vehicle) Identifiers() []string
- func (v Vehicle) OnIdentified() api.ActionConfig
- func (v Vehicle) Phases() int
- func (v Vehicle) SetTitle(title string)
- func (v *Vehicle) Soc() (float64, error)
- func (v Vehicle) Title() string
- type Volvo
- func (v Volvo) Capacity() float64
- func (v Volvo) Features() []api.Feature
- func (v *Volvo) FinishTime() (time.Time, error)
- func (v Volvo) Icon() string
- func (v Volvo) Identifiers() []string
- func (v *Volvo) Odometer() (float64, error)
- func (v Volvo) OnIdentified() api.ActionConfig
- func (v Volvo) Phases() int
- func (v *Volvo) Range() (int64, error)
- func (v Volvo) SetTitle(title string)
- func (v *Volvo) Soc() (float64, error)
- func (v *Volvo) Status() (api.ChargeStatus, error)
- func (v *Volvo) StatusRequest() (volvo.Status, error)
- func (v Volvo) Title() string
- func (v *Volvo) Vehicles() ([]string, error)
- type VolvoConnected
- func (v VolvoConnected) Capacity() float64
- func (v VolvoConnected) Features() []api.Feature
- func (v VolvoConnected) Icon() string
- func (v VolvoConnected) Identifiers() []string
- func (v VolvoConnected) OnIdentified() api.ActionConfig
- func (v VolvoConnected) Phases() int
- func (v VolvoConnected) SetTitle(title string)
- func (v VolvoConnected) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAiwaysFromConfig ¶
NewAiwaysFromConfig creates a new vehicle
func NewAudiFromConfig ¶
NewAudiFromConfig creates a new vehicle
func NewBMWFromConfig ¶
NewBMWFromConfig creates a new vehicle
func NewBMWMiniFromConfig ¶
NewBMWMiniFromConfig creates a new vehicle
func NewCarWingsFromConfig ¶
NewCarWingsFromConfig creates a new vehicle
func NewCitroenFromConfig ¶
NewCitroenFromConfig creates a new vehicle
func NewCloudFromConfig ¶
NewCloudFromConfig creates a new vehicle
func NewConfigurableFromConfig ¶
NewConfigurableFromConfig creates a new Vehicle
func NewCupraFromConfig ¶
NewCupraFromConfig creates a new vehicle
func NewDSFromConfig ¶
NewDSFromConfig creates a new vehicle
func NewEnyaqFromConfig ¶
NewEnyaqFromConfig creates a new vehicle
func NewFiatFromConfig ¶
NewFiatFromConfig creates a new vehicle
func NewFordFromConfig ¶
NewFordFromConfig creates a new vehicle
func NewFromConfig ¶
NewFromConfig creates vehicle from configuration
func NewHyundaiFromConfig ¶
NewHyundaiFromConfig creates a new vehicle
func NewIDFromConfig ¶
NewIDFromConfig creates a new vehicle
func NewJLRFromConfig ¶
NewJLRFromConfig creates a new vehicle
func NewKiaFromConfig ¶
NewKiaFromConfig creates a new vehicle
func NewMiniFromConfig ¶
NewMiniFromConfig creates a new vehicle
func NewNissanFromConfig ¶
NewNissanFromConfig creates a new vehicle
func NewNiuFromConfig ¶
NewFordFromConfig creates a new vehicle
func NewOpelFromConfig ¶
NewOpelFromConfig creates a new vehicle
func NewOvmsFromConfig ¶
NewOVMSFromConfig creates a new vehicle
func NewPeugeotFromConfig ¶
NewPeugeotFromConfig creates a new vehicle
func NewPorscheFromConfig ¶
NewPorscheFromConfig creates a new vehicle
func NewRenaultDaciaFromConfig ¶
NewRenaultDaciaFromConfig creates a new Renault/Dacia vehicle
func NewSeatFromConfig ¶
NewSeatFromConfig creates a new vehicle
func NewSkodaFromConfig ¶
NewSkodaFromConfig creates a new vehicle
func NewSmartFromConfig ¶
NewSmartFromConfig creates a new vehicle
func NewTeslaFromConfig ¶
NewTeslaFromConfig creates a new vehicle
func NewTronityFromConfig ¶
NewTronityFromConfig creates a new vehicle
func NewVWFromConfig ¶
NewVWFromConfig creates a new vehicle
func NewVolvoConnectedFromConfig ¶
NewVolvoConnectedFromConfig creates a new VolvoConnected vehicle
func NewVolvoFromConfig ¶
NewVolvoFromConfig creates a new vehicle
Types ¶
type Aiways ¶
type Aiways struct { *aiways.Provider // provides the api implementations // contains filtered or unexported fields }
Aiways is an api.Vehicle implementation for Aiways cars
func (Aiways) Capacity ¶
func (v Aiways) Capacity() float64
Capacity implements the api.Vehicle interface
func (Aiways) Identifiers ¶
func (v Aiways) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Aiways) OnIdentified ¶
func (v Aiways) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Audi ¶
type Audi struct { *id.Provider // provides the api implementations // contains filtered or unexported fields }
Audi is an api.Vehicle implementation for Audi cars
func (Audi) Capacity ¶
func (v Audi) Capacity() float64
Capacity implements the api.Vehicle interface
func (Audi) Identifiers ¶
func (v Audi) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Audi) OnIdentified ¶
func (v Audi) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type BMW ¶
type BMW struct { *bmw.Provider // provides the api implementations // contains filtered or unexported fields }
BMW is an api.Vehicle implementation for BMW and Mini cars
func (BMW) Identifiers ¶
func (v BMW) Identifiers() []string
Identifiers implements the api.Identifier interface
func (BMW) OnIdentified ¶
func (v BMW) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Bluelink ¶
Bluelink is an api.Vehicle implementation
func (Bluelink) Capacity ¶
func (v Bluelink) Capacity() float64
Capacity implements the api.Vehicle interface
func (Bluelink) Identifiers ¶
func (v Bluelink) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Bluelink) OnIdentified ¶
func (v Bluelink) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Bluelink) Phases ¶
func (v Bluelink) Phases() int
Phases returns the phases used by the vehicle
type CarWings ¶
type CarWings struct {
// contains filtered or unexported fields
}
CarWings is an api.Vehicle implementation for CarWings cars
func (CarWings) Capacity ¶
func (v CarWings) Capacity() float64
Capacity implements the api.Vehicle interface
func (CarWings) Identifiers ¶
func (v CarWings) Identifiers() []string
Identifiers implements the api.Identifier interface
func (CarWings) OnIdentified ¶
func (v CarWings) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (CarWings) Phases ¶
func (v CarWings) Phases() int
Phases returns the phases used by the vehicle
func (CarWings) SetTitle ¶
func (v CarWings) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type ClientCredentials ¶
type ClientCredentials struct {
ID, Secret string
}
ClientCredentials contains OAuth2 client id and secret
func (*ClientCredentials) Error ¶
func (c *ClientCredentials) Error() error
Error validates the credentials and returns an error if they are incomplete
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
Cloud is an api.Vehicle implementation
func (Cloud) Capacity ¶
func (v Cloud) Capacity() float64
Capacity implements the api.Vehicle interface
func (Cloud) Identifiers ¶
func (v Cloud) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Cloud) OnIdentified ¶
func (v Cloud) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Cupra ¶
type Cupra struct { *cupra.Provider // provides the api implementations // contains filtered or unexported fields }
Cupra is an api.Vehicle implementation for Seat Cupra cars
func (Cupra) Capacity ¶
func (v Cupra) Capacity() float64
Capacity implements the api.Vehicle interface
func (Cupra) Identifiers ¶
func (v Cupra) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Cupra) OnIdentified ¶
func (v Cupra) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Enyaq ¶
type Enyaq struct { *skoda.Provider // provides the api implementations // contains filtered or unexported fields }
Enyaq is an api.Vehicle implementation for Skoda Enyaq cars
func (Enyaq) Capacity ¶
func (v Enyaq) Capacity() float64
Capacity implements the api.Vehicle interface
func (Enyaq) Identifiers ¶
func (v Enyaq) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Enyaq) OnIdentified ¶
func (v Enyaq) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Fiat ¶
Fiat is an api.Vehicle implementation for Fiat cars
func (Fiat) Capacity ¶
func (v Fiat) Capacity() float64
Capacity implements the api.Vehicle interface
func (Fiat) Identifiers ¶
func (v Fiat) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Fiat) OnIdentified ¶
func (v Fiat) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Ford ¶
Ford is an api.Vehicle implementation for Ford cars
func (Ford) Capacity ¶
func (v Ford) Capacity() float64
Capacity implements the api.Vehicle interface
func (Ford) Identifiers ¶
func (v Ford) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Ford) OnIdentified ¶
func (v Ford) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type ID ¶
type ID struct { *id.Provider // provides the api implementations // contains filtered or unexported fields }
ID is an api.Vehicle implementation for ID cars
func (ID) Identifiers ¶
func (v ID) Identifiers() []string
Identifiers implements the api.Identifier interface
func (ID) OnIdentified ¶
func (v ID) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type JLR ¶
JLR is an api.Vehicle implementation for Jaguar LandRover cars
func (JLR) Identifiers ¶
func (v JLR) Identifiers() []string
Identifiers implements the api.Identifier interface
func (JLR) OnIdentified ¶
func (v JLR) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (*JLR) RegisterDevice ¶
type Nissan ¶
Nissan is an api.Vehicle implementation for Nissan cars
func (Nissan) Capacity ¶
func (v Nissan) Capacity() float64
Capacity implements the api.Vehicle interface
func (Nissan) Identifiers ¶
func (v Nissan) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Nissan) OnIdentified ¶
func (v Nissan) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Niu ¶
Niu is an api.Vehicle implementation for Niu vehicles
func (Niu) Identifiers ¶
func (v Niu) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Niu) OnIdentified ¶
func (v Niu) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Niu) SetTitle ¶
func (v Niu) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type Ovms ¶
OVMS is an api.Vehicle implementation for dexters-web server requests
func (Ovms) Capacity ¶
func (v Ovms) Capacity() float64
Capacity implements the api.Vehicle interface
func (*Ovms) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (Ovms) Identifiers ¶
func (v Ovms) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Ovms) OnIdentified ¶
func (v Ovms) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Ovms) SetTitle ¶
func (v Ovms) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type PSA ¶
type PSA struct { *psa.Provider // provides the api implementations // contains filtered or unexported fields }
PSA is an api.Vehicle implementation for PSA cars
func (PSA) Identifiers ¶
func (v PSA) Identifiers() []string
Identifiers implements the api.Identifier interface
func (PSA) OnIdentified ¶
func (v PSA) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Porsche ¶
Porsche is an api.Vehicle implementation for Porsche cars
func (Porsche) Capacity ¶
func (v Porsche) Capacity() float64
Capacity implements the api.Vehicle interface
func (Porsche) Identifiers ¶
func (v Porsche) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Porsche) OnIdentified ¶
func (v Porsche) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Renault ¶
Renault is an api.Vehicle implementation for Renault cars
func (Renault) Capacity ¶
func (v Renault) Capacity() float64
Capacity implements the api.Vehicle interface
func (Renault) Identifiers ¶
func (v Renault) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Renault) OnIdentified ¶
func (v Renault) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Seat ¶
type Seat struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
Seat is an api.Vehicle implementation for Seat cars
func (Seat) Capacity ¶
func (v Seat) Capacity() float64
Capacity implements the api.Vehicle interface
func (Seat) Identifiers ¶
func (v Seat) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Seat) OnIdentified ¶
func (v Seat) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Skoda ¶
type Skoda struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
Skoda is an api.Vehicle implementation for Skoda cars
func (Skoda) Capacity ¶
func (v Skoda) Capacity() float64
Capacity implements the api.Vehicle interface
func (Skoda) Identifiers ¶
func (v Skoda) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Skoda) OnIdentified ¶
func (v Skoda) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Smart ¶
Smart is an api.Vehicle implementation for Smart cars
func (Smart) Capacity ¶
func (v Smart) Capacity() float64
Capacity implements the api.Vehicle interface
func (Smart) Identifiers ¶
func (v Smart) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Smart) OnIdentified ¶
func (v Smart) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Tesla ¶
type Tesla struct {
// contains filtered or unexported fields
}
Tesla is an api.Vehicle implementation for Tesla cars
func (Tesla) Capacity ¶
func (v Tesla) Capacity() float64
Capacity implements the api.Vehicle interface
func (*Tesla) ChargedEnergy ¶
ChargedEnergy implements the api.ChargeRater interface
func (*Tesla) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (Tesla) Identifiers ¶
func (v Tesla) Identifiers() []string
Identifiers implements the api.Identifier interface
func (*Tesla) MaxCurrent ¶
StartCharge implements the api.VehicleChargeController interface
func (Tesla) OnIdentified ¶
func (v Tesla) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Tesla) SetTitle ¶
func (v Tesla) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
func (*Tesla) StartCharge ¶
StartCharge implements the api.VehicleChargeController interface
func (*Tesla) Status ¶
func (v *Tesla) Status() (api.ChargeStatus, error)
Status implements the api.ChargeState interface
func (*Tesla) StopCharge ¶
StopCharge implements the api.VehicleChargeController interface
type Tokens ¶
type Tokens struct {
Access, Refresh string
}
Tokens contains access and refresh tokens
type Tronity ¶
Tronity is an api.Vehicle implementation for the Tronity api
func (Tronity) Capacity ¶
func (v Tronity) Capacity() float64
Capacity implements the api.Vehicle interface
func (Tronity) Identifiers ¶
func (v Tronity) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Tronity) OnIdentified ¶
func (v Tronity) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (*Tronity) RefreshToken ¶
RefreshToken performs token refresh by logging in with app context
func (Tronity) SetTitle ¶
func (v Tronity) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type VW ¶
type VW struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
VW is an api.Vehicle implementation for VW cars
func (VW) Identifiers ¶
func (v VW) Identifiers() []string
Identifiers implements the api.Identifier interface
func (VW) OnIdentified ¶
func (v VW) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Vehicle ¶
type Vehicle struct {
// contains filtered or unexported fields
}
Vehicle is an api.Vehicle implementation with configurable getters and setters.
func (Vehicle) Capacity ¶
func (v Vehicle) Capacity() float64
Capacity implements the api.Vehicle interface
func (Vehicle) Identifiers ¶
func (v Vehicle) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Vehicle) OnIdentified ¶
func (v Vehicle) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Vehicle) SetTitle ¶
func (v Vehicle) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type Volvo ¶
Volvo is an api.Vehicle implementation for Volvo. cars
func (Volvo) Capacity ¶
func (v Volvo) Capacity() float64
Capacity implements the api.Vehicle interface
func (*Volvo) FinishTime ¶
FinishTime implements the VehicleFinishTimer interface
func (Volvo) Identifiers ¶
func (v Volvo) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Volvo) OnIdentified ¶
func (v Volvo) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Volvo) SetTitle ¶
func (v Volvo) SetTitle(title string)
SetTitle implements the api.TitleSetter interface
type VolvoConnected ¶
VolvoConnected is an api.Vehicle implementation for Volvo Connected Car vehicles
func (VolvoConnected) Capacity ¶
func (v VolvoConnected) Capacity() float64
Capacity implements the api.Vehicle interface
func (VolvoConnected) Icon ¶
func (v VolvoConnected) Icon() string
Icon implements the api.Vehicle interface
func (VolvoConnected) Identifiers ¶
func (v VolvoConnected) Identifiers() []string
Identifiers implements the api.Identifier interface
func (VolvoConnected) OnIdentified ¶
func (v VolvoConnected) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (VolvoConnected) Phases ¶
func (v VolvoConnected) Phases() int
Phases returns the phases used by the vehicle
Source Files ¶
- aiways.go
- audi.go
- bluelink.go
- bmw.go
- carwings.go
- cloud.go
- config.go
- embed.go
- fiat.go
- ford.go
- helper.go
- jlr.go
- nissan.go
- niu.go
- ovms.go
- porsche.go
- psa.go
- renault.go
- seat-cupra.go
- seat.go
- skoda-enyaq.go
- skoda.go
- smart.go
- template.go
- tesla.go
- tronity.go
- tronity_decorators.go
- types.go
- vehicle.go
- vehicle_decorators.go
- volvo-connected.go
- volvo.go
- vw-id.go
- vw.go