百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

flex-horseshoe-card

> 前端框架
开源

适用于 Home Assistant Lovelace UI 的灵活马蹄形卡片。此卡片具有灵活的布局、类似马蹄形的甜甜圈图表、火花线图表、多个实体或属性。

392 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 Home Assistant Lovelace UI 的灵活马蹄形卡片。此卡片具有灵活的布局、类似马蹄形的甜甜圈图表、火花线图表、多个实体或属性。

Flexible Horseshoe Card

stable stable date latest latest date downloads

Flexible Horseshoe Card is a highly configurable dashboard card for Home Assistant. Use it to combine entity data, horseshoe gauges, text, icons, shapes, colors, animations, and history graphs in a layout that is entirely your own.

Build a simple gauge with a single value, or create a complete reusable dashboard element with multiple entities and visual layers.

-- IMPORTANT NOTE --

The manual and this README is based on the latest v5.4-7.dev.* version. A new stable version will be released in August and will not be very different from the current dev version. You can install any dev version and revert if necessary using HACS! No harm done.

Read the manual | Install the card | Browse examples

What is the Flexible Horseshoe Card?

The card turns Home Assistant entity states and attributes into compact visual dashboard components. A card can contain one simple gauge and value, or combine multiple entities, horseshoes, labels, icons, shapes, and graphs into a complete reusable dashboard element.

Unlike cards with a fixed layout, the Flexible Horseshoe Card lets you position every item individually or organize related items into groups. SVG-based rendering keeps layouts scalable, while Home Assistant integration supplies entity names, units, icons, localization, state colors, actions, and theme variables.

Card gallery

Below are some examples of what the Flexible Horseshoe Card can do. The gallery shows a mix of enhanced horseshoe visualizations and Sparkline history functionality.

  Horseshoe Examples


  
    
  

  Electricity card examples


  
    
  

  Pollen radar card examples






  
    
  

  Horseshoes


  
    
  

  Cartesian history charts


  
    
  

  Specialized history charts







  
    
  

  Pollen radar card examples


  
    
  

  Pollen radar card examples

⚙️ Powerful and highly configurable

Configure custom card dimensions and populate a layout with any number of entities, horseshoes, lines, circles, and other [visual shapes][visual-shapes]. Position items individually with the [layout overview][layout-overview], or use positioning and groups to move, scale, and rotate related elements together.

Build faster with less YAML

Reuse similar section items with same_as instead of copying complete YAML blocks. Shared constants, ref(), and calc() keep colors, positions, and dimensions consistent. The [reuse introduction][reuse] explains the available layers, while the [reuse reference][reuse-reference] documents each option.

Built with and for Home Assistant

Flexible Horseshoe Card uses Home Assistant entity names, units, icons, areas, state colors, actions, themes, and localization and formatting. Override precision, units, icons, names, and other values through entity definitions whenever a card needs more control.

Dynamic templating

Use [JavaScript templating][templating] throughout supported areas of the card configuration to change icons, colors, styles, positions, and behavior from current entity states. Card templates, color stops, and state maps make the same design reusable for different sensors.

Color stops and gradients

Apply fixed colors, state-based thresholds, segmented colors, or smooth gradients through color stops. The same color configuration can style horseshoes, graphs, icons, states, names, labels, lines, circles, and other supported elements.

️ Themes and palettes

Use existing Home Assistant theme variables or load external color palettes with separate light and dark mode colors. This keeps related cards visually consistent without repeating the complete palette in every configuration.

History and sparkline graphs

Display [line][line-chart], [area][area-chart], [bar][bar-chart], and [dots][dots-chart] charts, or use advanced visual history components such as [equalizer][equalizer-chart], [graded][graded-chart], [barcode][barcode-chart], [radial barcode][radial-barcode-chart], and [state-band charts][state-bands-chart]. Configure their time range through [history periods and bins][history-periods].

Built with SVG and CSS

Scalable Vector Graphics keep horseshoes, text, shapes, and charts sharp at different card sizes. Use [CSS styling][css-styling] to control their appearance and add transitions or state-driven behavior through animations.

↩️ Backwards compatible

The refreshed [horseshoe implementation][horseshoes] remains compatible with the original horseshoe YAML configuration, so existing cards should continue to work. Custom CSS or card-mod rules targeting the previous internal HTML or SVG structure may require adjustments.

Installation

Installing through HACS is the recommended option, as HACS also manages future updates. The installation guide explains how to install the card through HACS or manually, add the Lovelace resource, and check that everything is working.

Create your first card

Replace the example entity with one from your own Home Assistant instance:

…

Ready to go further? Continue with Card Structure, Entity Definitions, [Layout Overview][layout-overview], and [Horseshoe Gauges][horseshoes].

Documentation

Getting started

New to the card? Start with the introduction to Flexible Horseshoe Card for a clear overview of its layout, styling, and Home Assistant integration. Then follow the installation guide and explore the card examples overview.

For complete real-world configurations, see the electricity card examples and pollen radar card examples. They show how the individual features work together in larger cards.

Configure a card

Begin with the card structure, then connect your Home Assistant data through entity definitions. The [layout overview][layout-overview] explains how the available sections form a card, while positioning and groups introduces the shared coordinate system.

Use the dedicated [groups section][groups] for grouped transformations, add values and labels from [entity parts][entity-parts], and finish the layout with [visual shapes][visual-shapes].

Configure horseshoe gauges

The [horseshoe gauges overview][horseshoes] covers both single and multiple gauges. Next, use [horseshoe scale and state configuration][horseshoe-scale-state] to control geometry and value display, then add [tick marks and labels][horseshoe-ticks-labels].

To bring the gauge to life, the color stops and gradients guide explains fixed colors, value ranges, segmented colors, and smooth gradients.

Add history and sparkline graphs

Start with the [sparkline graphs overview][sparklines], then choose the required time range with [history periods and bins][history-periods].

The [Cartesian charts and axes guide][cartesian-charts] covers [line][line-chart], [area][area-chart], [bar][bar-chart], and [dots][dots-chart] charts. For alternative visualizations, the [specialized sparkline charts guide][specialized-charts] covers [equalizer][equalizer-chart], [graded][graded-chart], [barcode][barcode-chart], [radial barcode][radial-barcode-chart], and [state-band displays][state-bands-chart].

Style dynamic cards

Use [CSS styling][css-styling] to customize the card and its SVG elements, then add state-driven motion with animations. Shared colors can come from external color palettes, while [color filters][color-filters] offer another way to change visual elements.

The card follows Home Assistant localization and formatting. With [JavaScript templating][templating], supported configuration values can also respond dynamically to entity states.

Reuse configuration

The [introduction to reusable configuration][reuse] explains the available reuse layers and when each one is useful. Continue with the [reusable card examples][reuse-examples] for practical YAML, and keep the [reuse reference][reuse-reference] nearby when working with templates, same_as, constants, ref(), or calc().

Releases and support

For everyday dashboards, use the stable release. The latest release may be a development or pre-release version intended for testing new functionality.

Browse all GitHub releases for version details. Found a reproducible problem? Report it through the issue tracker.

Flexible Horseshoe Card is built for Home Assistant and distributed through the Home Assistant Community Store.

License and credits

Flexible Horseshoe Card is available under the MIT license.

  • The project builds on Home Assistant, Lit, SVG, CSS, and the work shared by the Home Assistant custom-card community. The archived README in dev/reference/ preserves the original extended credits and legacy configuration reference.
  • Original "Human Imagination" image created by Agata from Good Stuff, No Nonsense., and customized to use the Amoebelabs colors.

[color-filte

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScripthome-assistanthome-assistant-customhome-assistant-frontendlovelace-card

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架