Contents
1. Overview
Sports Monitor brings professional and collegiate sports information into your IoX home automation system. Monitor your favorite teams and use their game status, scores, schedules and results to trigger automations throughout your home.
- Monitor up to 32 teams across 11 supported leagues.
- Automatically discover teams from ESPN.
- Create an individual IoX node for each monitored team.
- Monitor live scores, game status, possession and game clocks where available.
- Track season records, rankings and upcoming games.
- Automatically increase polling frequency as game time approaches.
- Configure and manage teams through a secure web interface.
- Add, rename and remove teams without restarting the plugin.
- No ESPN account, subscription or API key is required.
Sports Monitor is designed primarily as an automation data source, rather than a replacement for a dedicated sports viewing application.
2. Supported Leagues
| Sport | League |
|---|---|
| Football | NFL |
| Football | NCAA Football |
| Basketball | NBA |
| Basketball | WNBA |
| Basketball | NCAA Men's Basketball |
| Basketball | NCAA Women's Basketball |
| Baseball | MLB |
| Baseball | NCAA Baseball |
| Hockey | NHL |
| Soccer | Major League Soccer (MLS) |
| Soccer | English Premier League |
Available teams are retrieved directly from ESPN. The same school may be monitored independently in multiple sports.
3. Installation
- Open the plugin Store in eisy-ui.
- Locate Sports Monitor and install it in an available plugin slot.
- Allow the installation to finish and verify that the plugin is running.
- Open the Sports Monitor web interface in your browser.
https://<eisy-IP-address>:8770
For example, if your eisy IP address is 192.168.1.100:
https://192.168.1.100:8770
First-Time Administrator Setup
On your first visit, you will be prompted to create and confirm an administrator password. The password must contain at least 12 characters.
After creating the password, log in using:
| Username | admin |
|---|---|
| Password | The password you created |
The web interface uses TCP port 8770. An internal backend uses loopback port 18770 and is not intended for direct user access. Install only one instance of Sports Monitor per eisy.
4. Team Configuration
Adding a Team
- Log in to the web interface.
- Select a league from the league dropdown.
- Wait for the available teams to be retrieved.
- Optionally enter a team name or abbreviation in the search field.
- Select the desired team.
- Accept the suggested node name or enter a custom name.
- Click Add Team.
The plugin saves the configuration, creates the corresponding IoX node and queues an initial data poll. A plugin restart is not required.
Repeat these steps for additional teams, up to a combined maximum of 32 teams. Duplicate entries for the same team and league are not permitted.
Renaming a Team
Click Rename on the team card and enter the desired display name. The existing node address is retained.
Removing a Team
Click Remove on the team card and confirm the deletion. The plugin removes the IoX node and its saved team configuration.
Configuration Persistence
Team configurations are saved through the plugin configuration system and are restored when Sports Monitor restarts.
5. Web Dashboard
The dashboard displays a separate card for each configured team. Depending on the available data, each card includes:
- Team name and league.
- Connection status.
- Season record.
- Current or most recent opponent.
- Team and opponent scores.
- Game status and ranking.
- Next opponent, scheduled game time and location.
- Last successful data update.
- Error information when applicable.
| Button | Function |
|---|---|
| Poll Now | Queue an immediate data refresh for this team. |
| Rename | Change the team's display name. |
| Remove | Delete the team and its IoX node. |
The dashboard refreshes approximately every 15 seconds while displayed. It reads cached plugin data rather than making a separate ESPN request on every browser refresh.
Sports monitoring continues even when the browser is closed or the administrator is logged out.
6. Controller Node
The Sports Monitor Controller provides overall plugin status.
| Field | Description |
|---|---|
| Connection Status | Unknown, Offline or Online. Online indicates at least one monitored team has an online connection status. |
| Monitored Teams | Number of active team nodes. |
| Online Teams | Number of teams with online connection status. |
| Last Successful Update | Most recent successful team update, expressed as Unix time. |
Controller Commands
| Command | Function |
|---|---|
| Query | Report current node values to IoX. |
| Poll All Teams | Queue an immediate poll of all monitored teams. |
7. Team Nodes
Each monitored team has its own IoX node containing the following 21 status fields.
| Driver | IoX Field | Description |
|---|---|---|
| ST | Connection Status | Unknown, Offline, Online. |
| GV1 | Game Status | Unknown, Scheduled, In Progress, Final, Postponed, Canceled, Delayed, Suspended, Halftime. |
| GV2 | Team Score | Score of the monitored team. |
| GV3 | Opponent Score | Score of the opposing team. |
| GV4 | Score Differential | Team score minus opponent score. Positive when ahead, negative when behind. |
| GV5 | Score Status | Unknown, Winning, Losing, Tied. |
| GV6 | Period | Quarter, half, period or inning, depending on the sport. |
| GV7 | Game Clock (Seconds) | Reported game clock expressed in seconds, where available. |
| GV8 | Home/Away | Unknown, Home, Away, Neutral. |
| GV9 | Last Game Result | Unknown, Win, Loss, Tie. Refers to the last completed game. |
| GV10 | Season Wins | Number of season wins. |
| GV11 | Season Losses | Number of season losses. |
| GV12 | Season Ties | Number of season ties or draws, where applicable. |
| GV13 | Ranking | Reported team ranking, when available. |
| GV14 | Next Game Unix Time | Scheduled next game time in Unix seconds. |
| GV15 | Minutes Until Game | Whole minutes until the next confirmed game time. |
| GV16 | Next Game Home/Away | Unknown, Home, Away, Neutral. |
| GV17 | Next Game Time Confirmed | Unknown, No, Yes. |
| GV18 | Last Successful Update | Unix timestamp of the last successful data retrieval. |
| GV19 | Possession | Unknown, Our Team, Opponent. Available for supported game feeds. |
| GV20 | Overtime Losses | Overtime losses, primarily applicable to hockey. |
Enumerated Values
| Field Type | Numeric Values |
|---|---|
| Connection Status | 0 Unknown, 1 Offline, 2 Online |
| Game Status | 0 Unknown, 1 Scheduled, 2 In Progress, 3 Final, 4 Postponed, 5 Canceled, 6 Delayed, 7 Suspended, 8 Halftime |
| Score Status | 0 Unknown, 1 Winning, 2 Losing, 3 Tied |
| Location | 0 Unknown, 1 Home, 2 Away, 3 Neutral |
| Last Game Result | 0 Unknown, 1 Win, 2 Loss, 3 Tie |
| Confirmation | 0 Unknown, 1 No, 2 Yes |
| Possession | 0 Unknown, 1 Our Team, 2 Opponent |
Understanding Node Values
- Current game fields generally represent the live game when one is in progress, or the most recently completed game between games.
- Next game fields are separate from current game fields.
- A team may display Final even though another game is scheduled for a future date.
- Unavailable numeric values generally use -1. Unavailable timestamps use 0. Enumerated fields use Unknown.
- A negative score differential is a valid value, not necessarily an indication of unavailable data.
- Unix timestamps represent seconds since January 1, 1970 UTC. They are independent of the local time zone.
- The game clock reflects the latest reported data and is not a continuously running local stopwatch.
- Not every sport supplies every field.
Team Commands
| Command | Function |
|---|---|
| Query | Report the current node values to IoX. |
| Poll Team | Queue an immediate data refresh for this team. |
8. Adaptive Polling
Sports Monitor automatically adjusts polling frequency based on the next scheduled game and whether a game is in progress. This reduces unnecessary network traffic while providing more frequent updates when they are useful.
| Condition | Normal Polling Interval |
|---|---|
| No upcoming game | 12 hours |
| Next game more than 24 hours away | 60 minutes |
| Next game within 24 hours | 15 minutes |
| Next game within 1 hour | 5 minutes |
| Next game within 5 minutes | 30 seconds |
| Game in progress | 30 seconds |
| Upcoming game time unconfirmed | 60 minutes |
| Data retrieval error | 60-second retry interval |
Polling intervals may be shortened to transition into the next polling category at the appropriate time.
These are target intervals. Network delays, ESPN response times and the number of monitored teams can affect actual update timing.
The plugin can reuse recent league scoreboard responses when monitoring multiple teams, reducing duplicate ESPN requests.
Adaptive polling is managed internally by Sports Monitor. Changing the standard plugin Short Poll or Long Poll settings is not necessary to achieve the intervals shown above.
Manual Polling
Use Poll Now in the dashboard, Poll Team on a team node, or Poll All Teams on the controller to request an immediate refresh without waiting for the next scheduled poll.
9. IoX Automation Examples
Sports Monitor allows IoX programs to respond to sports events. The following examples illustrate possible applications. Replace the example node names, scenes and notification actions with those in your own system.
Example 1: Upcoming Game Reminder
If
'Texas Longhorns' Connection Status is Online
And 'Texas Longhorns' Next Game Time Confirmed is Yes
And 'Texas Longhorns' Minutes Until Game >= 0
And 'Texas Longhorns' Minutes Until Game <= 15
And 'Texas Longhorns' Game Status is not In Progress
Then
Send Notification "Texas game starts soon"
Else
- No Actions -
Use a state variable or a separate disabled action program to prevent repeated reminders for the same game.
Example 2: Activate Game Day Lighting
If
'Dallas Cowboys' Connection Status is Online
And 'Dallas Cowboys' Game Status is In Progress
Then
Set 'Game Day Lighting' On
Else
- No Actions -
This can activate team-colored lighting, a television scene or other entertainment equipment.
Example 3: Celebrate a Score
Create an integer variable to hold the team's previous score. Initialize it to the current score when a new game begins.
If
'Dallas Cowboys' Connection Status is Online
And 'Dallas Cowboys' Game Status is In Progress
And 'Dallas Cowboys' Team Score > $PreviousScore
Then
$PreviousScore = 'Dallas Cowboys' Team Score
Run Program 'Score Celebration' (Then Path)
Else
- No Actions -
The celebration program might flash lights, play a sound or send a notification. Reset the stored score for each new game and account for score corrections if necessary.
Example 4: Celebrate a Victory
If
'San Antonio Spurs' Connection Status is Online
And 'San Antonio Spurs' Game Status is Final
And 'San Antonio Spurs' Last Game Result is Win
Then
Run Program 'Victory Celebration' (Then Path)
Else
- No Actions -
Use a one-shot latch, armed when a new game begins, to prevent a previous victory from triggering again after a restart or connection recovery.
Example 5: Home Game Reminder
If
'Texas Longhorns' Connection Status is Online
And 'Texas Longhorns' Next Game Home/Away is Home
And 'Texas Longhorns' Next Game Time Confirmed is Yes
And 'Texas Longhorns' Minutes Until Game >= 0
And 'Texas Longhorns' Minutes Until Game <= 120
Then
Send Notification "Home game within two hours"
Else
- No Actions -
10. Security and Password Management
The web configuration interface uses HTTPS and administrator authentication. Passwords are stored as salted password hashes rather than plaintext.
Changing the Administrator Password
- Log in to the web interface.
- Click Change Password.
- Enter the current password.
- Enter and confirm the new password.
- Submit the change and log in using the new password.
Changing the password invalidates existing authenticated sessions.
Session Expiration
Administrator sessions expire after approximately one hour of inactivity. Background dashboard refreshes do not by themselves keep an inactive administrator session alive.
Forgotten Administrator Password
If you forget your password, click Forgot Password on the login page. The recovery page displays an SSH command customized for your installed plugin slot.
- Copy the recovery command displayed on the page.
- Connect to your eisy using SSH.
- Run the displayed command.
- Copy the generated recovery code.
- Enter the recovery code and a new password on the recovery page.
- Log in using the new password.
For example, if Sports Monitor is installed in slot 27:
sudo -u plugin_27 /usr/local/bin/python3 /var/eisyui/ns/plugin_27/sports_auth.py reset
The recovery code is valid for 15 minutes and is intended for one-time use. Generate another code if the original expires.
Network Security
Keep the configuration interface on your trusted local network. Do not expose the web interface directly to the public internet. Use a trusted VPN when remote access is needed.
11. System Backup
Sports Monitor is designed to be compatible with the eisy-ui system backup process. Required runtime files and administrator credential files are assigned restricted permissions with explicit read access for the eisy-ui backup service.
These permissions are applied automatically when the relevant files are created or replaced. No manual permission changes should be necessary.
Team configuration is maintained through the plugin configuration system. After restoring a system backup, verify that the plugin starts, the configured teams are present and the web interface is accessible.
Historical game data is retrieved from ESPN rather than maintained as a permanent local sports database.
12. Troubleshooting
Unable to Open the Web Interface
- Verify that Sports Monitor is running.
- Verify the eisy IP address.
- Use HTTPS rather than HTTP.
- Confirm that you are using port 8770.
- Check whether another application is using the same port.
- Review the plugin logs for web server startup errors.
Sports Monitor includes a watchdog that attempts to restart the web server if it exits unexpectedly.
Team Discovery Fails
- Verify that eisy has internet access.
- Check DNS resolution and outbound HTTPS connectivity.
- Select the league again to retry discovery.
- Check whether ESPN's data service is temporarily unavailable.
Team Shows Offline
Offline indicates that the latest data retrieval attempt failed. Previously retrieved values may remain available. The plugin automatically retries failed requests.
Use Poll Now to request an immediate retry.
Team Does Not Appear in IoX
- Check that the team was added successfully.
- Refresh or reopen the IoX Admin Console if necessary.
- Review the plugin logs for node creation errors.
- If configuration exists but the node is missing, restart Sports Monitor and verify that the node is restored.
Next Game Time Is Missing
The next game may not yet be scheduled, its start time may be unconfirmed, or the team may be between seasons. Check the Next Game Time Confirmed field before using the countdown in an automation.
Scores Appear Delayed
Sports Monitor uses polling rather than a real-time streaming sports feed. Updates depend on ESPN's published data and the current polling interval. Short delays are normal.
Reviewing Logs
Use the plugin log viewer in eisy-ui. For advanced SSH troubleshooting, the following commands show recent plugin and web server log entries for an example installation in slot 27:
sudo tail -n 100 /var/eisyui/ns/plugin_27/logs/debug.log
sudo tail -n 100 /var/eisyui/ns/plugin_27/logs/sports_web.log
Replace 27 with your actual plugin slot number.
13. Data Sources and Limitations
Sports Monitor retrieves publicly accessible sports data from ESPN's JSON endpoints. These endpoints are unofficial and are not guaranteed to remain available or unchanged.
- Data availability and accuracy depend on ESPN.
- Live scores are periodically polled, not streamed.
- Individual scoring events may be missed between polls.
- Rankings, possession, clocks and other fields vary by sport.
- Game times and schedules may change without notice.
- Season records and standings depend on the information provided by the underlying league feed.
- Internet connectivity is required for new sports data.
Sports Monitor is an independent home automation plugin and is not affiliated with or endorsed by ESPN or the supported sports leagues.
It is intended for informational and home automation purposes, not for applications requiring guaranteed real-time sports data.
Version History
Version 1.0.0 — Initial Release
- Support for 11 sports leagues and up to 32 monitored teams.
- Individual IoX team nodes with 21 status fields.
- Adaptive polling and shared scoreboard caching.
- HTTPS configuration interface and automatic team discovery.
- Live team addition, renaming and removal.
- Administrator authentication, password changes and recovery.
- Automatic web server recovery.
- Persistent team configuration and system backup compatibility.
- Optimized dashboard data transfer.
Source repository: GitHub - Sports Monitor