Skip to content
EN | DE

Home Assistant

Home Assistant instances in your network will be auto-discovered and suitable vehicle entities and services (e.g. sensor.*) will be suggested.

Parameters

NameDescriptionValueLevel
uriHome Assistant URI
Example: http://homeassistant.local:8123
optional
socState of charge [%]

Entity ID for the vehicle's battery state of charge in percent

Example: sensor.vehicle_soc
optional
titleTitle

Will be displayed in the user interface

optional
capacity [kWh]Battery capacity
Example: 50
optional
rangeRemaining range [km]

Entity ID for the vehicle's remaining range in kilometers

Example: sensor.vehicle_range
optional
statusCharging status

Entity ID for charging status (A=disconnected, B=connected, C=charging)

Example: sensor.vehicle_charging
optional
limitSocTarget state of charge [%]

Entity ID for the vehicle's target state of charge in percent (number or input_number entity)

Example: number.vehicle_target_state_of_charge
optional
odometerOdometer [km]

Entity ID for the vehicle's odometer reading in kilometers

Example: sensor.vehicle_odometer
optional
climaterClimatisation active

Entity ID for the vehicle's climatisation state (binary_sensor with on/off state)

Example: binary_sensor.vehicle_climater
optional
finishTimeFinish time

Entity ID for the estimated charging finish time (ISO8601 or Unix timestamp)

Example: sensor.vehicle_finish_time
optional
start_chargingService to start charging

Entity ID for a script or a switch that starts charging the vehicle. Only useful with the docs.evcc.io. If a switch is provided, Service to stop charging must be left empty.

Example: script.vehicle_start_charge; switch.vehicle_charger
optional
stop_chargingService to stop charging

Entity ID for a script that stops charging the vehicle. Only useful with the docs.evcc.io.

Example: script.vehicle_stop_charge
optional
wakeupService to wake up vehicle

Entity ID for a script or a button that wakes up the vehicle

Example: script.vehicle_wakeup; button.wakeup_vehicle
optional
setMaxCurrentSet charging current [A]

Entity ID for setting the maximum charging current in amperes (number or input_number entity)

Example: number.vehicle_charging_current
optional
iconIcon

Will be displayed in the user interface

Default: car
advanced
phasesMaximum number of phases

The maximum number of phases which can be used

Example: 3
advanced
modeDefault charging mode

Used when a vehicle is connected. Possible values are Off, Now, MinPV and PV, or empty if none should be set

advanced
minCurrent [A]Minimum amperage

The minimum amperage per connected phase that can be used

Example: 6
advanced
maxCurrent [A]Maximum amperage

The maximum amperage per connected phase that can be used

Example: 16
advanced
maxPower [W]Maximum charging power hint

Defines the maximum charging power of the vehicle. Helps improve charge plan accuracy when the vehicle typically uses less than the offered current or supports higher single-phase current compared to three-phase. The offered current of the loadpoint is not affected.

Example: 10000
advanced
identifiersIdentification

Mostly this can be added later, see: https://docs.evcc.io/en/docs/features/vehicle

advanced
priorityPriority

Priority of the loadpoint or vehicle in relation to other loadpoints or vehicles for allocating pv energy

advanced
coarsecurrent1A current control

Vehicle supports 1A current steps only

advanced
streamingSupports streaming

Streaming data is received asynchronously

Default: true
advanced
welcomechargeCharge on connection

Charger will enable charging for short time when vehicle is connected, irrespective of configured charge mode. This is useful for vehicles that require power supply when connecting.

advanced
Configuration example for evcc.yaml

If you don't want to configure via the UI, you can alternatively use this YAML block.

vehicles:
- name: my_car
type: template
template: homeassistant
uri: http://homeassistant.local:8123 # Home Assistant URI
soc: sensor.vehicle_soc # State of charge [%], Entity ID for the vehicle's battery state of charge in percent
title: # Title, Will be displayed in the user interface (optional)
capacity: 50 # Battery capacity (kWh), optional
range: sensor.vehicle_range # Remaining range [km], Entity ID for the vehicle's remaining range in kilometers (optional)
status: sensor.vehicle_charging # Charging status, Entity ID for charging status (A=disconnected, B=connected, C=charging) (optional)
limitSoc: number.vehicle_target_state_of_charge # Target state of charge [%], Entity ID for the vehicle's target state of charge in percent (`number` or `input_number` entity) (optional)
odometer: sensor.vehicle_odometer # Odometer [km], Entity ID for the vehicle's odometer reading in kilometers (optional)
climater: binary_sensor.vehicle_climater # Climatisation active, Entity ID for the vehicle's climatisation state (`binary_sensor` with `on`/`off` state) (optional)
finishTime: sensor.vehicle_finish_time # Finish time, Entity ID for the estimated charging finish time (ISO8601 or Unix timestamp) (optional)
start_charging: script.vehicle_start_charge; switch.vehicle_charger # Service to start charging, Entity ID for a script or a switch that starts charging the vehicle. Only useful with the [docs.evcc.io](https://docs.evcc.io/en/docs/devices/chargers#vehicle-api-only-charger). If a switch is provided, Service to stop charging must be left empty. (optional)
stop_charging: script.vehicle_stop_charge # Service to stop charging, Entity ID for a script that stops charging the vehicle. Only useful with the [docs.evcc.io](https://docs.evcc.io/en/docs/devices/chargers#vehicle-api-only-charger). (optional)
wakeup: script.vehicle_wakeup; button.wakeup_vehicle # Service to wake up vehicle, Entity ID for a script or a button that wakes up the vehicle (optional)
setMaxCurrent: number.vehicle_charging_current # Set charging current [A], Entity ID for setting the maximum charging current in amperes (`number` or `input_number` entity) (optional)
icon: car # Icon, Will be displayed in the user interface [car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater] (optional)
phases: 3 # Maximum number of phases, The maximum number of phases which can be used (optional)
mode: # Default charging mode, Used when a vehicle is connected. Possible values are Off, Now, MinPV and PV, or empty if none should be set (optional)
minCurrent: 6 # Minimum amperage (A), The minimum amperage per connected phase that can be used (optional)
maxCurrent: 16 # Maximum amperage (A), The maximum amperage per connected phase that can be used (optional)
maxPower: 10000 # Maximum charging power hint (W), Defines the maximum charging power of the vehicle. Helps improve charge plan accuracy when the vehicle typically uses less than the offered current or supports higher single-phase current compared to three-phase. _The offered current of the loadpoint is not affected._ (optional)
identifiers: # Identification, Mostly this can be added later, see: https://docs.evcc.io/en/docs/features/vehicle (optional)
priority: # Priority, Priority of the loadpoint or vehicle in relation to other loadpoints or vehicles for allocating pv energy (optional)
coarsecurrent: # 1A current control, Vehicle supports 1A current steps only (optional)
streaming: true # Supports streaming, Streaming data is received asynchronously (optional)
welcomecharge: # Charge on connection, Charger will enable charging for short time when vehicle is connected, irrespective of configured charge mode. This is useful for vehicles that require power supply when connecting. (optional)