Skip to content

BMW X5 50e 2024 Card for use in Home Assistant

License

Notifications You must be signed in to change notification settings

convicte/ha-bmw-x5-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

Home Assistant bmw x5 PHEV card

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 card

Charging cable connected and charging under way:

Charging card

Charging cable connected - battery full:

Charging card

No charging cable connected:

Charging card

minimal card

Card variant with electric range only:

Minimal card

Features

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

Installation

  1. Requires Home Assistant BMW Connected Drive, and some extra Home Assistant components if not yet available.
  2. Add the extra sensors (see sensors.yml)
  3. Add the extra charger power sensor - if you plan to use the charging power capability
  4. Copy the contents of bmw-x5-charging-card.yml or bmw-x5-minimal-card.yml into a lovelace card.
  5. Modify the entity names based on your setup.

Necessary Home Assistant components

You will need to install the following components from HACS if you want these cards to work:

Entity Naming

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.

Sensors

Templated sensors

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)

Resources

BMW API