Game Light Tracker for Openclaw

A smart home automation skill that changes Philips Hue light colors in real-time based on live sports score leads.

0xadamsu
v1.0.0
Jan 28, 2026
1
2.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install game-light-tracker

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install game-light-tracker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Game Light Tracker?

The Game Light Tracker is a dynamic automation tool designed for sports fans who want to bring the stadium atmosphere into their homes. By integrating with Openclaw Skills, this tool monitors live game data from the ESPN API across four major professional leagues: NFL, NBA, NHL, and MLB. It provides an immediate visual representation of game momentum by updating your smart lighting whenever a lead change occurs.

This skill is built to work seamlessly with Home Assistant, allowing users to map specific RGB colors to their favorite teams. Whether you are watching the game intently or just want a passive way to stay updated on the score while moving around the house, this skill transforms your environment into a responsive scoreboard.

Game Light Tracker Use Cases

  • Automatically changing your living room backlight to team colors during the Super Bowl or World Series.
  • Setting up a visual alert system for lead changes while working in a home office.
  • Creating an immersive fan experience for watch parties by syncing multiple Hue lights to live game states.
  • Tracking out-of-market games visually without needing to keep a scoreboard app open.

How Game Light Tracker Works

  1. The skill initiates a monitoring loop that polls the ESPN API every 20 seconds for the most recent score updates.
  2. It compares the current score against the previous state to detect if the lead has shifted between Team A and Team B.
  3. Upon a lead change or a tie, the skill communicates with the Home Assistant API using a pre-configured access token.
  4. It sends an RGB color command to the specified Philips Hue light entity, instantly changing the room's ambiance to match the leading team's colors.
  5. A secondary supervisor process runs in the background to ensure the tracker remains active and recovers from any network timeouts or script interruptions.

Game Light Tracker Setup

To get started with this addition to your Openclaw Skills, follow these steps:

  1. Ensure your Hue lights are integrated with Home Assistant.
  2. Create a file named .homeassistant-config.json in the skill directory containing your Home Assistant URL and Long-Lived Access Token.
  3. Open PowerShell and navigate to the scripts folder.
  4. Execute the tracker using your specific team abbreviations and light entity ID:
.\game-tracker.ps1 -Sport "nba" -Team1 "LAL" -Team2 "BOS" -Light "light.living_room" -Color1 "128,0,128" -Color2 "0,255,0"
  1. To maintain a persistent connection, run the supervisor script:
.\keeper.ps1 -TrackerScript "game-tracker.ps1" -RestartInterval 25

Game Light Tracker Data Schema & Taxonomy

The skill manages configuration and real-time data through the following structures:

Data Component Format Description
Connection Config JSON Stores token and url for Home Assistant API access.
Team Colors RGB String Comma-separated values (e.g., "255,0,0") mapped to specific teams.
Sports Metadata String Enum Supports "nfl", "nba", "nhl", and "mlb" sport types.
API Feed External Real-time score and play-by-play data fetched via ESPN endpoints.
Entity Mapping String Links the script logic to specific Home Assistant light entity IDs.

Game Light Tracker Advanced Features

  • Real-time polling with a 20-second refresh rate for near-instant lighting updates.
  • Support for tied-game states with a dedicated optional RGB color parameter.
  • Automated process management via a keeper script that prevents 30-minute session timeouts.
  • Extensive library support for all major professional team abbreviations across four sports.
  • Headless execution capabilities to run the monitoring service in the background of your OS.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*