Skip to content

This custom card allows you to display vehicle information in your Home Assistant dashboard, including the vehicle name, image, and fuel or charge level.

License

Notifications You must be signed in to change notification settings

MartinAirN/Ultra-Vehicle-Card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

Ultra Vehicle Card for Home Assistant

Screenshot 2024-08-06 at 9 04 20 AM Screenshot 2024-08-06 at 9 04 20 AM

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.

Installation

HACS (Recommended)

  1. Make sure you have HACS installed in your Home Assistant instance.
  2. Go to HACS > Frontend
  3. Click on the three dots in the top right corner and select "Custom repositories."
  4. Add your repository URL: https://github.com/WJDDesigns/Ultra-Vehicle-Card and select the category as "Lovelace."
  5. Click on the "+" button
  6. Search for "Ultra Vehicle Card"
  7. Click Install
  8. Restart Home Assistant

Manual Installation

  1. Download the ultra-vehicle-card.js, styles.js, and ultra-vehicle-card-editor.js files from this repository.
  2. Copy the files to your config/www folder in your Home Assistant configuration directory.
  3. Add the following to your configuration.yaml file:
lovelace:
  resources:
    - url: /local/ultra-vehicle-card.js
      type: module

Repo

Cool Tip

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!

Donate with PayPal

Ultra Vehicle Card - User Guide

Table of Contents

  1. Basic Configuration
  2. Entity Information
  3. Icon Grid
  4. Layout Customization
  5. Color Customization
  6. Visibility Settings
  7. Using the Card

Basic Configuration

Title

  • Enter your vehicle's name (e.g., "2024 BMW IX")

Vehicle Type

  • Choose between:
    • Electric Vehicle
    • Fuel Vehicle
    • PHEV (Hybrid)

Images

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)

Entity Information

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.

Icon Grid

Customize your icon grid for additional functionality:

  1. Search for entities to add to the icon grid
  2. 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)

Layout Customization

  • Icon Gap Size: Adjust the spacing between icons (e.g., 10px)

Color Customization

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

Visibility Settings

Use the visibility tab to toggle the visibility of different elements on your card.

Using the Card

  1. Add the Ultra Vehicle Card to your dashboard
  2. Click to configure the card
  3. Fill in all the relevant information in the GUI
  4. Customize the appearance using the color pickers and style options
  5. Add and customize icons for additional functionality
  6. 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.

Donate with PayPal

About

This custom card allows you to display vehicle information in your Home Assistant dashboard, including the vehicle name, image, and fuel or charge level.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published