The 2026 World Cup matches are officially underway, and the energy is absolutely electric. But let’s face it: as smart home enthusiasts, we don’t just want to watch the tournament on a screen. We want our entire house to live the tournament with us.
Imagine your living room light strips flashing green and gold the exact millisecond a goal is scored, or a smart media player blasting a stadium horn through your speakers when your team wins a penalty shootout.
Thanks to the incredible Home Assistant developer community, we can now hook our smart homes directly into live World Cup data feeds.
In this guide, we are going to show you how to set up a gorgeous, real-time World Cup tracking dashboard and write custom automation scripts that trigger your Zigbee lights the moment the ball hits the back of the net. Best of all? No paid APIs, and no laggy web-scraping. Let’s build it!
Step 1: Install the World Cup Custom Integration
To get live match data moving into our system, we are going to use a brilliant custom component available via HACS (Home Assistant Community Store).
How to get it running:
- Navigate to your Home Assistant dashboard and open HACS.
- Click on Integrations, tap the three dots in the top right, and select Custom repositories.
- Paste in the repository URL for the live World Cup tracker component (such as the community favorite
ha-world-cuptracking sensor) and select Integration as the category. - Click Install, and then give your Home Assistant system a quick restart to let the backend magic kick in.
Once restarted, go to Settings > Devices & Services > Add Integration, search for the World Cup tracker, and select your favorite country to start tracking their live entities.
Step 2: The “GOAL!” Smart Light Automation Script
Now that Home Assistant knows the exact live score and state of the match, we can write an automation that turns your living room into a stadium fan zone when a goal is scored.
Go ahead and copy-paste this custom YAML code into your automation editor. We have configured it to track your country’s team state. When the match event changes to a goal, it turns on a fun flashing effect on your Zigbee or Z-Wave smart bulbs.
yaml
alias: "World Cup Goal Celebration Lights"
description: "Flashes smart lights when our team scores a goal"
trigger:
- platform: state
entity_id: sensor.world_cup_match_status
attribute: latest_event
to: "Goal"
condition:
- condition: state
entity_id: sensor.world_cup_favorite_team
state: "attacking"
action:
- service: light.turn_on
target:
entity_id: light.living_room_lights
data:
flash: long
rgb_color: [0, 255, 0] # Vibrant stadium green
- delay: "00:00:10"
- service: light.turn_on
target:
entity_id: light.living_room_lights
data:
profile: relaxing
mode: single
Use code with caution.
Our Pro Tip: If you have a smart speaker (like a Sonos, HomePod, or an Echo device linked via Nabu Casa), you can add a media_player.play_media service right under the light action to blast an audio track of a cheering stadium crowd!
Step 3: Designing the Matchday Dashboard Layout
To keep track of group standings, upcoming match countdowns, and live game clocks, we recommend building a dedicated Lovelace dashboard tab.
Using clean, conditional cards, you can set your dashboard up to look like a professional sports broadcast hub:
- The Match Countdown Card: Use a standard Markdown or countdown card linked to the next match time entity so you always know exactly how many hours are left until kickoff.
- Live Score Progress Bar: Combine a custom bar card with the live score entities to show a clean visual tracking bar right at the top of your kitchen tablet or wall panel.
- The Security Sidebar: If you are running our ultimate World Cup Matchday Mode and TV Security Overlay, you can place a small live camera card right next to the scores. This lets you monitor your porch and front door without ever closing your match tracker.
Wrap-Up: Keeping Your System Fast
Because tournament data updates quickly during live matches, make sure your Home Assistant database is optimized so it doesn’t slow down your smart hub. We always recommend filtering out unnecessary tracking attributes from your long-term recorder history to save precious storage space on your Raspberry Pi or Home Assistant Yellow drive.
Now your smart home is fully prepped to celebrate every major victory right alongside you!
Are you building a custom dashboard for the tournament this season? Drop your dashboard screenshots or your favorite goal automation concepts in the comments below—we want to see your setups!