ngocjohn / vehicle-status-card

🚘 Lovelace custom card for tracking Vehicle status
https://ngocjohn.is-a.dev/vehicle-status-card/
MIT License
47 stars 3 forks source link
custom-card home-assistant homeassistant lovelace lovelace-ui vehicle-stastus

hacs Github last commit git-download-all git-download-latest

🚘 Vehicle status card


This is a custom Home Assistant card designed to display detailed status information about vehicles. It provides several features such as indicators, range progress bars, buttons for interacting with the vehicle's entities, and a mini map to track devices. The card is highly customizable with options to display various types of data and layouts.

Features

Table of contents

Table of contents - [Overview](#vehicle-status-card) - [Features](#features) - [Installation](#installation) - [HACS Installation](#hacs-installation) - [Manual Installation](#manual-installation) - [Configuration](#configuration)

Installation

HACS (Home Assistant Community Store)

  1. Go to HACS page on your Home Assistant instance
  2. Add this repository via HACS Custom repositories How to add Custom Repositories
https://github.com/ngocjohn/vehicle-status-card
  1. Select Lovelace
  2. Press add icon and search for Vehicle status card
  3. Select Vehicle status card repo and install
  4. Force refresh the Home Assistant page Ctrl + F5 / Shift + ⌘ + R
  5. Add vehicle-status-card to your page

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Manual

Click to expand installation instructions 1. Download the [vehicle-status-card.js](https://github.com/ngocjohn/vehicle-status-card/releases/latest). 2. Place the downloaded file on your Home Assistant machine in the `config/www` folder (when there is no `www` folder in the folder where your `configuration.yaml` file is, create it and place the file there). 3. In Home Assistant go to `Configuration->Lovelace Dashboards->Resources` (When there is no `resources` tag on the `Lovelace Dashboard` page, enable advanced mode in your account settings, and retry this step). 4. Add a new resource: - Url = `/local/vehicle-status-card.js` - Resource type = `module` 5. Force refresh the Home Assistant page `Ctrl` + `F5` / `Shift` + `⌘` + `R`. 6. Add vehicle-status-card to your page.

Configuration

Indicators Configuration

Single Indicators

Single indicators are used to display the state of a single entity, such as a sensor or binary sensor, on the card's header. These indicators are ideal for showcasing key information like vehicle battery level, engine status, or lock state. Each single indicator displays the current state of the entity with an optional icon for better visualization.

For example, a single indicator can be used to show whether a car door is locked or unlocked, or to display the remaining battery percentage of the vehicle.

Group Indicators

Group indicators allow you toThis is useful when you want to track the status of related entities together, such as all door locks or all tire pressures. Group indicators display a summary view of the entities they contain, giving you a quick snapshot of their states.

For instance, you could create a group indicator to monitor the lock status of all car doors, or to show the pressure levels of all tires at once. Group indicators help to keep the interface cleaner and more organized by bundling similar entities together.

Indicators

Range Info Bars

Range info bars are used to display progress bars for entities that represent a measurable range, such as fuel levels, battery charge, or remaining range. These bars provide a visual representation of how much of a resource is left, making it easy to monitor critical vehicle metrics at a glance.

Key Features of Range Info Bars

Range info bars help users keep track of their vehicle’s vital statistics in an intuitive and easy-to-read format, ensuring they always know when they need to refuel or recharge.

Range info bars

Images slides

Image slides allow you to upload or link images that will be displayed in a rotating slideshow on the card. This feature can be used to showcase vehicle-related images, such as maps, dashboards, or even real-time snapshots from cameras.

Key Features

New Swiper Configuration Options

The latest release introduces advanced swiper configuration options, allowing for more control over how images are displayed.

Swiper Configurable Options:

Images slides

Mini map

The mini map feature displays a real-time map within the card, tracking the location of a device_tracker entity. This is especially useful for monitoring the current location of your vehicle or other trackable devices.

Key Features

The mini map provides an easy way to keep track of where your vehicle is at all times, directly on the card.

Config mini map

Button card

The button card is a core feature that provides interactive buttons to control or monitor specific entities in your vehicle. Each button can be customized with a primary label, secondary information, icons, and notifications.

Single Button Configuration

A single button allows you to represent an entity or action related to your vehicle. You can set up the button’s appearance, behavior, and actions to suit your needs.

Key Features

Action Type

The Action Type feature allows you to define what action should be triggered when interacting with a button. Each button can have multiple action types configured, giving you more control over how the button behaves. You can specify different actions for tapping, holding, or double tapping the button.

Supported Action Types:

Available Actions:

Config button

Default Card

The default card configuration allows you to display a set of related entities with their states in a structured way. This card can display multiple pieces of information, such as sensor readings or status indicators, in a compact and organized format.

Key Features

The default card is perfect for grouping and displaying related entities in one place, giving users an at-a-glance view of the vehicle’s key metrics or controls.

Config Default Card

Custom Card

The custom card configuration allows you to integrate any Home Assistant-supported card into the vehicle status card. This feature gives you full flexibility to display or interact with various entities using custom Lovelace cards.

Key Features

This powerful feature allows you to extend the functionality of the vehicle status card by adding any custom elements or controls that fit your needs.

Config Custom Card

Tire Pressures Card

The Tire Pressures Card allows users to monitor and display the tire pressures of their vehicle in a highly customizable manner. This card provides a visual representation of the vehicle’s tires, allowing users to assign specific entities to each tire and customize the background image, layout, and size.

This card is designed to give users a clear, at-a-glance view of their tire pressure status, ensuring they can easily monitor and respond to any issues that may arise.

Key Features

Tire Pressure Card Configuration

The card supports complete customization, from setting the vehicle's background image to adjusting the size and positioning of tire pressure indicators.

Available Options:

Layout configurations

The layout configuration controls how elements within the vehicle status card are displayed, including themes, grid layout, and visibility of certain components.

Key Features

This configuration gives you full flexibility to design the card’s layout and optimize it for different devices or user preferences.

Config layout


© 2024 Viet Ngoc

https://github.com/ngocjohn/

(back to top)