The Home Assistant BMW Connected Drive integration can be used to extract data from the car. That will give you about 30 integration entries (entities) in your Home Assistant, but it does not come with any visualization.
These are some Home Assistant dashboard cards that can display the BMW X5 information.
This repo is a fork of the https://github.com/filipmaelbrancke/ha-bmw-i4-card (thank you!!) modified for the PHEV X5 with a few added capabilities and refactored sensors/templates.
Charging cable connected and charging under way:
Charging cable connected - battery full:
No charging cable connected:
Card variant with electric range only:
Car information that can be visualised:
- Charging session overview
- Plugged In | Unplugged | Charging
- Charging status
- Charging time elapsed | remaining
- Charging power - external 3 phase power/energy meter required
- Vehicle state
- Remaining total range
- Electric range
- Mileage
- Locked | Unlocked
- Door/Window Overview
- Home | Away
- Airconditioning
- Requires Home Assistant BMW Connected Drive, and some extra Home Assistant components if not yet available.
- Add the extra sensors (see
sensors.yml
) - Add the extra charger power sensor - if you plan to use the charging power capability
- Copy the contents of
bmw-x5-charging-card.yml
orbmw-x5-minimal-card.yml
into a lovelace card. - Modify the entity names based on your setup.
You will need to install the following components from HACS if you want these cards to work:
The entity names used in this card's repository are setup to assume a brand new install of the Home Assistant BMW Connected Drive integration.
For an X5 xDrive50e, all entities will be named with the prefix x5_xdrive50e_
(that's also the example in this repo). Adapt as needed for your setup.
The bmw-x5-charging-card.yml
card uses the Home Assistant Picture Elements Card as a base to get everything rendered well on all devices, but that card is quite limited in templating options, and thus the following templated sensors have to be added on top of the ones made available by the BMW Connected Drive integration (see sensors.yml
):
charging_time_remaining
(&charging_time_remaining_formatted
)charging_time_elapsed
(&charging_time_elapsed_formatted
)