mini-graph-card: Minimalistic Graph Card for Home Assistant Lovelace UI

This repository profile is provided by osrepos.com, an open source repository discovery platform.

mini-graph-card: Minimalistic Graph Card for Home Assistant Lovelace UI

Summary

The mini-graph-card is a highly popular and versatile custom Lovelace UI card designed for Home Assistant, offering a minimalistic yet powerful way to visualize sensor data. It provides extensive customization options to display current states and historical data from various entities directly within your smart home dashboard. This project is ideal for users looking to enhance their Home Assistant interface with clear, informative, and aesthetically pleasing data representations.

Repository Information

Analyzed by OSRepos on February 5, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

The mini-graph-card is a highly popular and versatile custom Lovelace UI card designed for Home Assistant. Developed by kalkih, this project offers a minimalistic yet powerful way to visualize sensor data directly within your smart home dashboard. With 3731 stars and 265 forks, it's a testament to its utility and community adoption. Written in JavaScript and distributed under the MIT license, it provides a flexible solution for displaying historical data from various entities.

Its core functionality revolves around presenting the current state of sensors alongside a clean line graph representation of their history. Whether you're tracking temperature, humidity, energy consumption, or binary sensor states, mini-graph-card offers extensive customization options to fit your aesthetic and data visualization needs.

Preview of mini-graph-card

Installation

Getting started with mini-graph-card is straightforward, with several installation methods available:

HACS (Recommended)

The easiest way to install is through the Home Assistant Community Store (HACS). Simply search for 'Mini Graph Card' and follow the prompts.

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

Manual Install

  1. Download and copy mini-graph-card-bundle.js from the latest release into your config/www directory.
  2. Add the resource reference as described below.

CLI Install

  1. Move into your config/www directory.
  2. Grab mini-graph-card-bundle.js:
$ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.13.0/mini-graph-card-bundle.js
  1. Add the resource reference as described below.

Add Resource Reference

If you configure Lovelace via YAML, add a reference to mini-graph-card-bundle.js inside your configuration.yaml:

resources:
  - url: /local/mini-graph-card-bundle.js?v=0.13.0
    type: module

Else, if you prefer the graphical editor, use the menu to add the resource:

  1. Make sure, advanced mode is enabled in your user profile (click on your user name to get there).
  2. Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon.
  3. Enter URL /local/mini-graph-card-bundle.js and select type "JavaScript Module". (Use /hacsfiles/mini-graph-card/mini-graph-card-bundle.js and select "JavaScript Module" for HACS install).
  4. Restart Home Assistant.

Examples

The mini-graph-card offers a wide array of configuration options to visualize your data. Here are a few examples to get you started:

Single Entity Card

Display a simple graph for a single sensor.

Single entity card example

type: custom:mini-graph-card
entities:
 - sensor.illumination

Multiple Entities Card

Combine several related sensors into one graph for a comprehensive overview.

Multiple entities card example

type: custom:mini-graph-card
name: SERVER
icon: mdi:server
entities:
  - entity: sensor.server_total
    name: TOTAL
  - sensor.server_sent
  - sensor.server_received

Bar Chart Card

Visualize data using a bar chart instead of a line graph, useful for aggregated values like daily consumption.

Bar chart card example

type: custom:mini-graph-card
entities:
  - entity: sensor.energy_consumption
name: ENERGY CONSUMPTION
show:
  graph: bar

Dynamic Line Color

Set thresholds to dynamically change the graph's line color based on sensor values.

Dynamic line color example

type: custom:mini-graph-card
entities:
  - sensor.sensor_temperature
show:
  labels: true
color_thresholds:
  - value: 20
    color: "#f39c12"
  - value: 21
    color: "#d35400"
  - value: 21.5
    color: "#c0392b"

Non-numeric Sensor States

Graph binary sensors or other non-numeric states by mapping their values to a numerical representation.

Non-numeric sensor states example

type: custom:mini-graph-card
entities:
  - entity: binary_sensor.living_room_motion
    name: Living room
  - entity: binary_sensor.corridor_motion
    name: Corridor
  - entity: binary_sensor.master_bed_motion
    name: Master bed.
    color: green
  - entity: binary_sensor.bedroom_motion
    name: Bedroom
name: Motion last hour
hours_to_show: 1
points_per_hour: 60
update_interval: 30
aggregate_func: max
line_width: 2
smoothing: false
state_map:
  - value: "off"
    label: Clear
  - value: "on"
    label: Detected

Why Use mini-graph-card?

The mini-graph-card stands out for its exceptional flexibility and aesthetic appeal in Home Assistant dashboards. Its minimalistic design ensures that your UI remains clean and uncluttered, while offering deep customization options to tailor graphs precisely to your needs. From dynamic color thresholds and multiple entity support to advanced data aggregation and handling non-numeric states, it provides powerful visualization capabilities. It's an essential tool for anyone looking to enhance their Home Assistant Lovelace interface with clear, informative, and beautiful data representations.

Links

Explore the mini-graph-card repository on GitHub for more details, advanced configurations, and to contribute to the project:

Related repositories

Similar repositories that may be relevant next.

Mercury Agent: A Soul-Driven AI with Hardened Permissions and Multi-Channel Access

Mercury Agent: A Soul-Driven AI with Hardened Permissions and Multi-Channel Access

August 12, 2026

Mercury Agent is a sophisticated, soul-driven AI agent designed for continuous 24/7 operation, offering robust permission-hardened tools, intelligent token budgeting, and versatile multi-channel access. It remembers what matters, asks for permission before acting, and runs seamlessly from the CLI, Telegram, or a web dashboard. With 31 built-in tools, Kanban boards, and a SQLite-backed Second Brain memory, Mercury provides a comprehensive and secure AI assistant experience.

ai-agentai-assistantllm
OpenHands: AI-Driven Development with Agent Canvas

OpenHands: AI-Driven Development with Agent Canvas

August 11, 2026

OpenHands Agent Canvas is a self-hosted developer control center designed for coding agents and automations. It allows users to run various AI agents, including OpenHands, Claude Code, and Codex, across local, remote, and cloud backends. This powerful platform helps automate everyday development tasks, turning coding agents into an always-on engineering team.

agentartificial-intelligencellm
Destructive Command Guard (dcg): Protecting AI Agents from Dangerous Commands

Destructive Command Guard (dcg): Protecting AI Agents from Dangerous Commands

July 11, 2026

The Destructive Command Guard (dcg) is a high-performance hook designed to prevent AI coding agents from executing dangerous git and shell commands. Built in Rust, dcg intercepts and blocks catastrophic operations like `git reset --hard` or `rm -rf`, offering clear explanations and safer alternatives. It provides a crucial safety layer for developers working with tools like Claude Code, Codex CLI, and GitHub Copilot.

ai-agentsclideveloper-tools
Loop Engineering: Orchestrating AI Agents with Practical Patterns and Tools

Loop Engineering: Orchestrating AI Agents with Practical Patterns and Tools

June 25, 2026

Loop Engineering is a GitHub repository offering practical patterns, starters, and CLI tools for building robust AI coding agent systems. It shifts the focus from individual prompt crafting to designing control systems that orchestrate agents over time. This project empowers developers to create autonomous, iterative AI workflows for various development tasks.

agentic-aiai-agentsloop-engineering

Source repository

Open the original repository on GitHub.

12 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️