Code Monkey home page Code Monkey logo

ultra-vehicle-card's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.