I have the Team Tracker integration (and Team Tracker card) configured. I have a text message configured below with information about the current game which works fine. But what I don’t see how to do is create a trigger based on a game being played that day, and sending the text message. So if a game was in say 5 hours from now I’d get the text. In the developer tools the state of the team tracker shows a “date” parameter which is currently “date: 2026-04-12T17:35Z”. I’m not sure how far in advance this would be available though.
Any help would be appreciated!
-Thanks
alias: Philles Alert
description: ""
triggers:
- trigger: state
entity_id:
- sensor.team_tracker_phillies
to: null
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- game starting
sequence:
- action: script.notification_text_message_to_pixel_8
metadata: {}
data:
message: >-
⚾ {{ state_attr('sensor.team_tracker_phillies',
'team_long_name') }}
Opponent: {{ state_attr('sensor.team_tracker_phillies',
'opponent_name') }}
Date: {{
as_local(as_datetime(state_attr('sensor.team_tracker_phillies',
'date'))).strftime('%m/%d/%Y %I:%M %p') }}
Game Time: {{ state_attr('sensor.team_tracker_phillies',
'kickoff_in') }}
Venue: {{ state_attr('sensor.team_tracker_phillies', 'venue') }}
TV Network: {{ state_attr('sensor.team_tracker_phillies',
'tv_network') }}
mode: single