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 NewCloudFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewConfigurableFromConfig(ctx context.Context, other map[string]interface{}) (api.Vehicle, error)
- func NewCupraFromConfig(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 NewFordConnectFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFordFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFromConfig(ctx context.Context, typ string, other map[string]interface{}) (api.Vehicle, 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 NewMGFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewMercedesFromConfig(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 NewOvmsFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewPolestarFromConfig(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 NewSmartHelloFromConfig(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 NewVehicleFromTemplateConfig(ctx context.Context, 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 NewWrapper(name, typ string, other map[string]interface{}, err error) api.Vehicle
- func NewZeroFromConfig(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 FordConnect
- func (v FordConnect) Capacity() float64
- func (v FordConnect) Features() []api.Feature
- func (v FordConnect) Icon() string
- func (v FordConnect) Identifiers() []string
- func (v FordConnect) OnIdentified() api.ActionConfig
- func (v FordConnect) Phases() int
- func (v FordConnect) SetTitle(title string)
- func (v FordConnect) Title() string
- 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 MG
- type Mercedes
- func (v Mercedes) Capacity() float64
- func (v Mercedes) Features() []api.Feature
- func (v Mercedes) Icon() string
- func (v Mercedes) Identifiers() []string
- func (v Mercedes) OnIdentified() api.ActionConfig
- func (v Mercedes) Phases() int
- func (v Mercedes) SetTitle(title string)
- func (v Mercedes) 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 Polestar
- func (v Polestar) Capacity() float64
- func (v Polestar) Features() []api.Feature
- func (v Polestar) Icon() string
- func (v Polestar) Identifiers() []string
- func (v Polestar) OnIdentified() api.ActionConfig
- func (v Polestar) Phases() int
- func (v Polestar) SetTitle(title string)
- func (v Polestar) Title() string
- type Porsche
- type Renault
- type Seat
- type Skoda
- type Smart
- type SmartHello
- func (v SmartHello) Capacity() float64
- func (v SmartHello) Features() []api.Feature
- func (v SmartHello) Icon() string
- func (v SmartHello) Identifiers() []string
- func (v SmartHello) OnIdentified() api.ActionConfig
- func (v SmartHello) Phases() int
- func (v SmartHello) SetTitle(title string)
- func (v SmartHello) Title() string
- type Tesla
- 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 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
- type Wrapper
- func (v *Wrapper) Capacity() float64
- func (v *Wrapper) Features() []api.Feature
- func (v *Wrapper) Icon() string
- func (v *Wrapper) Identifiers() []string
- func (v *Wrapper) OnIdentified() api.ActionConfig
- func (v *Wrapper) Phases() int
- func (v *Wrapper) SetTitle(title string)
- func (v *Wrapper) Soc() (float64, error)
- func (v *Wrapper) Title() string
- func (v *Wrapper) WrappedConfig() (string, map[string]interface{})
- type ZeroMotorcycle
- func (v ZeroMotorcycle) Capacity() float64
- func (v ZeroMotorcycle) Features() []api.Feature
- func (v ZeroMotorcycle) Icon() string
- func (v ZeroMotorcycle) Identifiers() []string
- func (v ZeroMotorcycle) OnIdentified() api.ActionConfig
- func (v ZeroMotorcycle) Phases() int
- func (v ZeroMotorcycle) SetTitle(title string)
- func (v ZeroMotorcycle) 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 NewCloudFromConfig ¶
NewCloudFromConfig creates a new vehicle
func NewConfigurableFromConfig ¶
func NewConfigurableFromConfig(ctx context.Context, other map[string]interface{}) (api.Vehicle, error)
NewConfigurableFromConfig creates a new Vehicle
func NewCupraFromConfig ¶
NewCupraFromConfig creates a new vehicle
func NewEnyaqFromConfig ¶
NewEnyaqFromConfig creates a new vehicle
func NewFiatFromConfig ¶
NewFiatFromConfig creates a new vehicle
func NewFordConnectFromConfig ¶
NewFordConnectFromConfig creates a new vehicle
func NewFordFromConfig ¶
NewFordFromConfig creates a new vehicle
func NewFromConfig ¶
func NewFromConfig(ctx context.Context, typ string, other map[string]interface{}) (api.Vehicle, error)
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 NewMGFromConfig ¶
NewBMWFromConfig creates a new vehicle
func NewMercedesFromConfig ¶
NewMercedesFromConfig 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 NewOvmsFromConfig ¶
NewOVMSFromConfig creates a new vehicle
func NewPolestarFromConfig ¶
NewPolestarFromConfig 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 NewSmartHelloFromConfig ¶
NewSmartHelloFromConfig creates a new vehicle
func NewTeslaFromConfig ¶
NewTeslaFromConfig creates a new vehicle
func NewTronityFromConfig ¶
NewTronityFromConfig creates a new vehicle
func NewVolvoConnectedFromConfig ¶
NewVolvoConnectedFromConfig creates a new VolvoConnected vehicle
func NewVolvoFromConfig ¶
NewVolvoFromConfig creates a new vehicle
func NewWrapper ¶
NewWrapper creates an offline Vehicle wrapper
func NewZeroFromConfig ¶
NewZeroFromConfig 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) Icon ¶
func (v Bluelink) Icon() string
Icon implements the api.IconDescriber 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) Icon ¶
func (v CarWings) Icon() string
Icon implements the api.IconDescriber 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 { *myskoda.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 FordConnect ¶
FordConnect is an api.Vehicle implementation for Ford cars
func (FordConnect) Capacity ¶
func (v FordConnect) Capacity() float64
Capacity implements the api.Vehicle interface
func (FordConnect) Icon ¶
func (v FordConnect) Icon() string
Icon implements the api.IconDescriber interface
func (FordConnect) Identifiers ¶
func (v FordConnect) Identifiers() []string
Identifiers implements the api.Identifier interface
func (FordConnect) OnIdentified ¶
func (v FordConnect) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (FordConnect) Phases ¶
func (v FordConnect) Phases() int
Phases returns the phases used by the vehicle
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 MG ¶
type MG struct { *saic.Provider // provides the api implementations // contains filtered or unexported fields }
MG is an api.Vehicle implementation for probably all SAIC cars
func (MG) Identifiers ¶
func (v MG) Identifiers() []string
Identifiers implements the api.Identifier interface
func (MG) OnIdentified ¶
func (v MG) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
type Mercedes ¶
Mercedes is an api.Vehicle implementation for Mercedes-Benz cars
func (Mercedes) Capacity ¶
func (v Mercedes) Capacity() float64
Capacity implements the api.Vehicle interface
func (Mercedes) Icon ¶
func (v Mercedes) Icon() string
Icon implements the api.IconDescriber interface
func (Mercedes) Identifiers ¶
func (v Mercedes) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Mercedes) OnIdentified ¶
func (v Mercedes) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Mercedes) Phases ¶
func (v Mercedes) Phases() int
Phases returns the phases used by the vehicle
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 Polestar ¶
Polestar is an api.Vehicle implementation for Polestar cars
func (Polestar) Capacity ¶
func (v Polestar) Capacity() float64
Capacity implements the api.Vehicle interface
func (Polestar) Icon ¶
func (v Polestar) Icon() string
Icon implements the api.IconDescriber interface
func (Polestar) Identifiers ¶
func (v Polestar) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Polestar) OnIdentified ¶
func (v Polestar) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (Polestar) Phases ¶
func (v Polestar) Phases() int
Phases returns the phases used by the vehicle
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) Icon ¶
func (v Porsche) Icon() string
Icon implements the api.IconDescriber 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) Icon ¶
func (v Renault) Icon() string
Icon implements the api.IconDescriber 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 SmartHello ¶
SmartHello is an api.Vehicle implementation for Smart Hello cars
func (SmartHello) Capacity ¶
func (v SmartHello) Capacity() float64
Capacity implements the api.Vehicle interface
func (SmartHello) Icon ¶
func (v SmartHello) Icon() string
Icon implements the api.IconDescriber interface
func (SmartHello) Identifiers ¶
func (v SmartHello) Identifiers() []string
Identifiers implements the api.Identifier interface
func (SmartHello) OnIdentified ¶
func (v SmartHello) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (SmartHello) Phases ¶
func (v SmartHello) Phases() int
Phases returns the phases used by the vehicle
type Tesla ¶
type Tesla struct { *tesla.Provider *tesla.Controller // contains filtered or unexported fields }
Tesla is an api.Vehicle implementation for Tesla cars using the official Tesla vehicle-command api.
func (Tesla) Capacity ¶
func (v Tesla) Capacity() float64
Capacity implements the api.Vehicle interface
func (Tesla) Identifiers ¶
func (v Tesla) Identifiers() []string
Identifiers implements the api.Identifier interface
func (Tesla) OnIdentified ¶
func (v Tesla) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
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) Icon ¶
func (v Tronity) Icon() string
Icon implements the api.IconDescriber 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 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) Icon ¶
func (v Vehicle) Icon() string
Icon implements the api.IconDescriber 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.IconDescriber 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
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper wraps an api.Vehicle to capture initialization errors
func (*Wrapper) Capacity ¶
func (v *Wrapper) Capacity() float64
Capacity implements the api.Vehicle interface
func (*Wrapper) Icon ¶
func (v *Wrapper) Icon() string
Icon implements the api.IconDescriber interface
func (*Wrapper) Identifiers ¶
func (v *Wrapper) Identifiers() []string
Identifiers implements the api.Identifier interface
func (*Wrapper) OnIdentified ¶
func (v *Wrapper) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (*Wrapper) Phases ¶
func (v *Wrapper) Phases() int
Phases returns the phases used by the vehicle
func (*Wrapper) WrappedConfig ¶
WrappedConfig indicates a device with wrapped configuration
type ZeroMotorcycle ¶
type ZeroMotorcycle struct { *zero.Provider // provides the api implementations // contains filtered or unexported fields }
Zero is an api.Vehicle implementation for probably all ZERO Motorcycles
func (ZeroMotorcycle) Capacity ¶
func (v ZeroMotorcycle) Capacity() float64
Capacity implements the api.Vehicle interface
func (ZeroMotorcycle) Icon ¶
func (v ZeroMotorcycle) Icon() string
Icon implements the api.IconDescriber interface
func (ZeroMotorcycle) Identifiers ¶
func (v ZeroMotorcycle) Identifiers() []string
Identifiers implements the api.Identifier interface
func (ZeroMotorcycle) OnIdentified ¶
func (v ZeroMotorcycle) OnIdentified() api.ActionConfig
OnIdentified returns the identify action
func (ZeroMotorcycle) Phases ¶
func (v ZeroMotorcycle) 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-connect.go
- ford.go
- helper.go
- jlr.go
- mercedes.go
- mg.go
- nissan.go
- niu.go
- ovms.go
- polestar.go
- porsche.go
- psa.go
- renault.go
- seat-cupra.go
- seat.go
- skoda-enyaq.go
- skoda.go
- smart-hello.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.go
- wrapper.go
- zeromotorcycles.go