![Screenshot 2024-08-06 at 9 04 20 AM](https://private-user-images.githubusercontent.com/139587188/356249812-5b2dbc41-107a-4c24-a649-b4cd7461aa79.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzA4MjksIm5iZiI6MTcyNDQ3MDUyOSwicGF0aCI6Ii8xMzk1ODcxODgvMzU2MjQ5ODEyLTViMmRiYzQxLTEwN2EtNGMyNC1hNjQ5LWI0Y2Q3NDYxYWE3OS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNFQwMzM1MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01N2E3NzhhNTc2YThlOTAyMDEyYWViZmIzOWE5ZGU2NzZjODI1NGMxZTEyNTBiZWI1YjExYjk4MTJjYWFiOGRlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.KCpM5fKwvu6F8gQZd1Fydk1MLkE1NQY62YIxs2Ml8Nk)
![Screenshot 2024-08-06 at 9 04 20 AM](https://private-user-images.githubusercontent.com/139587188/355461871-3289effd-9ded-4f52-97b9-ad3741632126.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzA4MjksIm5iZiI6MTcyNDQ3MDUyOSwicGF0aCI6Ii8xMzk1ODcxODgvMzU1NDYxODcxLTMyODllZmZkLTlkZWQtNGY1Mi05N2I5LWFkMzc0MTYzMjEyNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNFQwMzM1MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYWQ1NWQxYzUwYTFkZTA4YmE0YTQ2ZDNlNWUzODJhNTcxN2E1NDMwY2M0YmU5NWExODRlMDhkNmUwOThjZmE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.xC-EM-jtzdxIaXcdmenVZeXKMOtqxEURI3RPTg19VzY)
This custom card allows you to display vehicle information in your Home Assistant dashboard, including the vehicle name, image, and fuel or charge level. For any EVs you will see an animation when charging.
- Make sure you have HACS installed in your Home Assistant instance.
- Go to HACS > Frontend
- Click on the three dots in the top right corner and select "Custom repositories."
- Add your repository URL:
https://github.com/WJDDesigns/Ultra-Vehicle-Card
and select the category as "Lovelace." - Click on the "+" button
- Search for "Ultra Vehicle Card"
- Click Install
- Restart Home Assistant
- Download the
ultra-vehicle-card.js
,styles.js
, andultra-vehicle-card-editor.js
files from this repository. - Copy the files to your
config/www
folder in your Home Assistant configuration directory. - Add the following to your
configuration.yaml
file:
lovelace:
resources:
- url: /local/ultra-vehicle-card.js
type: module
Hey there, fellow Home Assistant enthusiast! 🏠✨
Did you know that the Ultra Vehicle Card was inspired by a midnight coding session fueled by an unhealthy amount of caffeine and a sudden realization that cars deserve cool cards too? It's true!
If this card has made your dashboard a little more awesome or saved you from the treacherous "low fuel surprise," consider buying the developer a virtual Dr Pepper. It helps keep the creativity flowing and the code bug-free!
- Basic Configuration
- Entity Information
- Icon Grid
- Layout Customization
- Color Customization
- Visibility Settings
- Using the Card
- Enter your vehicle's name (e.g., "2024 BMW IX")
- Choose between:
- Electric Vehicle
- Fuel Vehicle
- PHEV (Hybrid)
Set up both a main image and a charging image:
- Options:
- None
- Local/Url (upload an image or provide a URL)
- Entity (select an entity that provides the image)
Expand this section to set up various entities for your vehicle:
- Battery Level
- Fuel Level
- Battery Range
- Fuel Range
- Charging Status
- Engine On
- Location
- Mileage
Use the entity picker to search and select the appropriate entities from your Home Assistant setup.
Customize your icon grid for additional functionality:
- Search for entities to add to the icon grid
- For each added entity, customize:
- Inactive Icon: Choose an icon for the inactive state
- Active Icon: Choose an icon for the active state
- Inactive Color: Set the color for the inactive state
- Active Color: Set the color for the active state
- Button Style: Choose between Icon, Round, or Square
- Interaction: Set the interaction type (e.g., Toggle, More Info)
- Icon Size: Adjust the size of the icon (e.g., 33px)
- Icon Gap Size: Adjust the spacing between icons (e.g., 10px)
Customize various color elements:
- Card Background Color
- Bar Background Color
- Bar Border Color
- Bar Fill Color
- Limit Indicator Color
- Info Text Color
- Car State Text Color
- Range Text Color
- Percentage Text Color
Use the visibility tab to toggle the visibility of different elements on your card.
- Add the Ultra Vehicle Card to your dashboard
- Click to configure the card
- Fill in all the relevant information in the GUI
- Customize the appearance using the color pickers and style options
- Add and customize icons for additional functionality
- Save your configuration
The card will display your vehicle's information, including its charge/fuel level, range, location, and any custom icons you've added. The appearance will update based on your color and style choices. This card works for both Dark and Light mode, which switching make sure you default all colors needed and it will use the default for that mode.
Note: All configuration is done through the graphical interface - no manual code editing is required! You can of course use code if needed.