Flexible Horseshoe card for Home Assistant Lovelace UI. A card with a flexible layout, a horseshoe-like donut graph, sparkline graphs, multiple entities or att
Flexible Horseshoe card for Home Assistant Lovelace UI. A card with a flexible layout, a horseshoe-like donut graph, sparkline graphs, multiple entities or att
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
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.
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 examplesConfigure 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.
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.
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.
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.
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.
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.
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].
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.
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.
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.
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].
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.
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].
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.
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].
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.
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().
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.
Flexible Horseshoe Card is available under the MIT license.
dev/reference/ preserves the original extended credits and legacy configuration reference.[color-filte
No open issues yet, or sync has not completed.