MI
milch/ha-is-there-a-seattle-home-game-today
Integrates https://isthereaseattlehomegametoday.com with Home Assistant
Is there a Seattle Home Game Today? for Home Assistant
Integrate Home Assistant with isthereaseattlehomegametoday.com to monitor Seattle home game events. Uses the API endpoint to regularly fetch new event data. Is There a Seattle Home Game Today? is generally updated about once a day.
๐ Entities Created
Binary Sensor
binary_sensor.seattle_home_game_today- On when events are found- Attributes:
event_count- Total number of events.summary- Natural language summary of events happening today. Generally includes the number of events, venues, and times, but not the actual event descriptions.events- List of raw event data. Fields vary by event type.
- Attributes:
Sensors
sensor.event_date- Date of events (YYYY-MM-DD format). Corresponds to the date that the API refreshed the data. The other sensors are all "valid" as of this date.sensor.event_count- Number of events today.sensor.event_1throughsensor.event_5- Individual event details- Attributes:
time,venue,description,has_time
- Attributes:
sensor.last_poll_time- Timestamp of last data update, i.e. when the API was last polled.
Switch
switch.manual_refresh- Trigger immediate data update
๐ Installation
HACS (Recommended)
- Open HACS in your Home Assistant instance
- Click on "Integrations"
- Click the three dots menu in the top right
- Select "Custom repositories"
- Add this repository URL:
https://github.com/milch/ha-is-there-a-seattle-home-game-today - Select "Integration" as the category
- Click "Add"
- Search for "Is There a Seattle Home Game Today?"
- Click "Download"
- Restart Home Assistant
Manual Installation
- Download the latest release from GitHub
- Extract the
custom_components/website_monitorfolder - Copy it to your Home Assistant
custom_componentsdirectory - Restart Home Assistant
โ๏ธ Configuration
- Go to Settings โ Devices & Services
- Click Add Integration
- Search for "Is There a Seattle Home Game Today?"
- Click to add - no configuration needed!
๐ค Automation Examples
Morning Traffic Warning
automation:
- alias: "Game Day Traffic Alert"
trigger:
- platform: time
at: "06:30:00"
condition:
- condition: state
entity_id: binary_sensor.seattle_home_game_today
state: "on"
action:
- service: notify.mobile_app_your_phone
data:
title: "โ ๏ธ Game Day Traffic Alert"
message: >
{{ state_attr('binary_sensor.seattle_home_game_today', 'summary') }}
Plan your commute accordingly!
data:
tag: "game-day-traffic"
group: "traffic"Detailed Event Notifications
automation:
- alias: "Detailed Game Schedule"
trigger:
- platform: time
at: "08:00:00"
condition:
- condition: state
entity_id: binary_sensor.seattle_home_game_today
state: "on"
action:
- service: notify.mobile_app_your_phone
data:
title: "Today's Seattle Events"
message: >
{% set events = state_attr('binary_sensor.seattle_home_game_today', 'event_summary') %}
{% for event in events %}
๐ {{ event }}
{% endfor %}๐งช Development & Testing
Local Testing with Docker
- Clone the repository
- Create a
configdirectory - Run:
docker-compose up - Access Home Assistant at
http://localhost:8123 - Complete onboarding and add the integration
๐ ๏ธ Troubleshooting
No Data or Old Data
- Check if the API is accessible: https://isthereaseattlehomegametoday.com/todays_events.json
- Check
sensor.last_poll_timeto see when data was last fetched - Use the manual refresh switch to force an update
- Review Home Assistant logs for connection errors
Time Zone Issues
- The integration assumes events are in Pacific Time (Seattle)
- Ensure your Home Assistant instance has the correct timezone configured
- Event times are converted to your local timezone for display
๐ค Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
๐ Credits
This project does not include any data on its own. All event data is provided by isthereaseattlehomegametoday.com.
