Add odometer api (#1357)

This commit is contained in:
andig 2021-08-23 13:27:07 +02:00 • committed by GitHub
parent 4cc6e93a1f
commit f6035829bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 200 additions and 25 deletions

View file

@ -126,6 +126,11 @@ type VehicleClimater interface {
Climater() (active bool, outsideTemp float64, targetTemp float64, err error)
}
// VehicleOdometer returns the vehicles milage
type VehicleOdometer interface {
Odometer() (float64, error)
}
// VehicleStartCharge starts the charging session on the vehicle side
type VehicleStartCharge interface {
StartCharge() error