#Sports Scores

1 messages · Page 1 of 1 (latest)

proud iris
#

Anyone have an easy method for this? I have a template sensor created using attribute data from Team Tracker. But once the game's over, it just says the scores are unavaiable. I think I'd have to store the scores in a text helper every time a game is over so that my Voice PE can tell me the score. Anyone doing things differently? I'm using Google AI LLM for my Assist

wicked drum
#

For German Bundesliga the score is available even after the game for a while. I think it is cleared the next day. I use a template binary sensor to determine if there is a game today. Then have a dedicated sentence triggered automation to answer depending on if it is a match day or not ("there is no game today" VS "current score is 1:0").

#

Here's the helper template.

{% if state_attr(sensor, "date") is none %}
  false
{% else %}
  {% set gameday = state_attr(sensor, "date")[:10] %}
  {% set today = now().strftime("%Y-%m-%d") %}
  {{ gameday == today }}
{% endif %}```
proud iris
#

Thanks!

proud iris
#

For future folks, I did 3 things:

  1. Added a template sensor to my config to pull info from Team Tracker

  2. Input text helper to store the score of the last game

  3. Updated my LLM prompt

#

In the txt file above is the sensor data I used + the prompt I added to my LLM

You'll be able to figure out the text input helper, which is the third thing needed to be added