Skip to content

Bobsilvio/calcio-live-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

98 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โšฝ Calcio Live Card

Beautiful, animated, multilingual football cards for Home Assistant. Companion frontend for the Calcio Live integration.

๐Ÿ‡ฎ๐Ÿ‡น Versione italiana ยท ๐Ÿ‡ฌ๐Ÿ‡ง English (you are here)

Real ESPN data, language toggle (EN/IT/FR/ES), no install required.

Sample


โœจ What's inside

A set of 7 Lovelace cards for Home Assistant that turn the Calcio Live sensors into a polished, premium football dashboard:

Card Type Shows
๐Ÿ… Standings calcio-live-classifica League table with zone-colored rank badges (CL/EL/relegation), gold shimmer on the top spot
โšฝ Team calcio-live-team Single match: live score, form pills, season record, top scorer, broadcast, attendance
๐Ÿ“‹ Matches list calcio-live-matches Day-grouped matches with live highlight, FT badges, broadcast chip
๐Ÿ“ฐ News calcio-live-news Article feed with images, headlines, relative dates
๐Ÿ‘ฅ Lineup calcio-live-lineup Starting XI of both teams + bench, formation, jersey numbers
โฑ Timeline calcio-live-timeline Minute-by-minute event log (goals, cards, subs, halftime)
๐Ÿ† Bracket calcio-live-bracket Knockout phase: list view OR tournament tree with central trophy

Highlights

  • ๐ŸŒ Multilingual โ€” English / Italian / French / Spanish, auto-detected from your HA locale
  • ๐ŸŽจ Premium design โ€” glassmorphism, gradients, aurora background, smooth animations
  • ๐Ÿ”” Goal celebration โ€” opt-in: confetti burst, flash animation, big "GOAL!" banner, vibration
  • โšก Live updates โ€” pulse on live matches, in-card toasts (opt-in, no notification spam in HA)
  • ๐Ÿ† Bracket card โ€” 2 styles: clean list OR full tournament tree with trophy + SVG arrow connectors
  • ๐Ÿ“ฑ Responsive โ€” works on mobile/tablet/desktop dashboards

๐ŸŽฌ Live preview

๐Ÿ‘‰ https://bobsilvio.github.io/calcio-live-card/preview.html

The showcase page renders all 7 cards with real ESPN data (frozen snapshot at build time). It includes a language toggle (EN/IT/FR/ES) so you can see how every card looks in each language without installing anything.

You can also open preview.html locally โ€” it is fully self-contained (the bundle is inlined inside the HTML), no setup required.


๐Ÿ“ฆ Installation (HACS)

  1. Add this repository to HACS as a Dashboard custom repository: https://github.com/Bobsilvio/calcio-live-card Installation
  2. Search for Calcio Live Card in HACS โ†’ install. HACS
  3. Restart Home Assistant and hard-refresh the dashboard (Ctrl+F5 / Cmd+Shift+R).

Make sure you have the Calcio Live integration installed (โ‰ฅ v2.8.1) for the cards to receive data.


๐Ÿƒ Cards reference

All cards share two common options:

Option Description
entity The Calcio Live sensor to read from. The editor auto-filters compatible entities.
language Force a specific UI language: auto (default, follows HA locale), en, it, fr, es.

๐Ÿ… Classifica ยท Standings

type: custom:calcio-live-classifica
entity: sensor.calciolive_classifica_italian_serie_a
max_teams_visible: 12
hide_header: false
selected_group: ''
show_event_toasts: false
  • Rank badges color-coded by qualification zone: gold for the top, indigo for Champions, orange for Europa, red for relegation.
  • The top spot has an animated gold shimmer.
  • Sticky table header during scroll.

โšฝ Team ยท single match

type: custom:calcio-live-team
entity: sensor.calciolive_next_serie_a_internazionale
show_event_toasts: false

Shows the next/live/finished match for one team:

  • Big scoreboard with team logos as background
  • Form pills (last 5 results: V/N/P or W/D/L by language)
  • Season record chip (14W ยท 6D ยท 14L)
  • Top scorer chip with goals count
  • Broadcast chip for upcoming matches (๐Ÿ“บ DAZN)
  • Attendance chip for finished matches (๐Ÿ‘ฅ 75,923 spectators)
  • Live stats bars (possession / shots / on target) when match is in progress
  • Click Details to open a popup with full lineups + timeline + head-to-head precedents

๐Ÿ“‹ Matches list ยท all matches

type: custom:calcio-live-matches
entity: sensor.calciolive_all_serie_a
max_events_visible: 5
max_events_total: 50
hide_past_days: 0
show_finished_matches: true
hide_header: false
show_event_toasts: false
  • Day-grouped: Today / Yesterday / Tomorrow / dd MMM
  • Live matches: red highlight bar + glow
  • Mini TV chip on upcoming matches
  • Click any row โ†’ details popup

๐Ÿ“ฐ News card

type: custom:calcio-live-news
entity: sensor.calciolive_news_ita_1
max_articles: 5
hide_header: false
hide_images: false

Article feed: headline, description (max 2 lines), image, category, relative date (3 hours ago). Click opens the article.

๐Ÿ‘ฅ Lineup card

type: custom:calcio-live-lineup
entity: sensor.calciolive_next_serie_a_internazionale
hide_header: false
  • Two columns (home / away) with starting XI
  • Player photos (when available), jersey numbers, position labels
  • Tactical formation displayed (e.g. 4-3-3)
  • Bench section
  • Auto-collapses to one column on mobile

Available shortly before kick-off (when ESPN publishes the rosters).

โฑ Timeline card

type: custom:calcio-live-timeline
entity: sensor.calciolive_next_serie_a_internazionale
reverse_order: true
hide_header: false

Minute-by-minute event log:

  • โšฝ goal (gold dot)
  • ๐ŸŸจ yellow card / ๐ŸŸฅ red card
  • ๐Ÿ”„ substitution
  • โธ halftime / โ–ถ second half / ๐Ÿ end
  • Each event shows minute, player, team, description

๐Ÿ† Bracket card

type: custom:calcio-live-bracket
entity: sensor.calciolive_bracket_uefa_champions
style: tree         # 'list' (default) or 'tree' (with central trophy)
hide_header: false
compact: false
tree_show_playoffs: false

Two visual styles:

  • list (default): rounds as side-by-side columns with full match details (1st leg, 2nd leg, aggregate, winner).
  • tree: tournament-style tree with the trophy in the center, mirrored sides, mini-tie cards with team abbreviations, and SVG bracket connectors with arrow markers between rounds.

The bracket sensor is auto-created by the integration for cup competitions:

  • UEFA Champions League / Europa League / Conference League / Euro / Nations League / Women's CL
  • FIFA World Cup / Women's World Cup / Club World Cup
  • CONCACAF Champions / Gold Cup / Nations League
  • Coppa Italia / FA Cup / EFL Cup / Copa del Rey / DFB-Pokal / Coupe de France

๐Ÿ”ฅ Goal celebration sequence

When show_event_toasts: true is set on the Team card, a calcio_live_goal event for that match triggers a multi-effect celebration:

  1. Card flash โ€” animated colored border ring
  2. Radial light burst โ€” golden vignette overlay
  3. Big "GOAL!" banner โ€” pulsing yellow text with stroke (1.5s)
  4. Score number pop โ€” scale + glow on the new score
  5. Logo bounce โ€” the scoring team's logo rotates and scales
  6. Confetti โ€” 36 particles burst (6 colors + emojis โšฝ๐ŸŽ‰โœจ๐Ÿ”ฅโญ)
  7. Mobile vibration โ€” [180, 80, 180, 80, 280] if supported
  8. Toast banner โ€” dark with gold border, 4s

All in-card, no Home Assistant persistent notifications.


๐ŸŒ Multilingual

All UI strings are translated via a centralized i18n.js dictionary with 75+ keys in English, Italian, French, Spanish.

The card auto-detects from hass.locale.language (your HA UI language). To force a specific language regardless of HA settings, set language: en|it|fr|es in the card YAML or pick from the editor dropdown.

Examples:

Key EN IT FR ES
card.bracket Bracket Tabellone Tableau Cuadro
round.r16 Round of 16 Ottavi di finale Huitiรจmes de finale Octavos de final
time.today Today Oggi Aujourd'hui Hoy
event.yellow_card Yellow Card Cartellino giallo Carton jaune Tarjeta amarilla

๐Ÿ’ Support

If you like this work, consider supporting development:

PayPal Ko-fi

Follow on social:

TikTok Instagram YouTube

๐ŸŽฅ Video guide

The video is based on v2.0.1; from v2.1.0 the graphical layer was introduced. The current major redesign and new cards are documented in this README.

Watch on YouTube

๐Ÿ“œ License

ISC โ€” see LICENSE.

Data is provided by ESPN public APIs.

About

HomeAssistant Card for Calcio-Live integration

Topics

Resources

License

Stars

14 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors