vasqued2 / ha-teamtracker

Home Assistant integration that provides real-time scores in multiple professional (NBA, NFL, NHL, MLB, MLS, and more), college (NCAA), and international (soccer, golf, tennis, mma, racing) sports using ESPN APIs.
183 stars 20 forks source link

Unable to get NBA sensor to work #192

Closed schwaboy closed 1 week ago

schwaboy commented 1 week ago

I have this working with NHL, College Football, MLS, English Premier League... but I'm having a really hard time getting it to work with the NBA.

  - platform: teamtracker
    league_id: "NBA"
    team_id: "Utah"

For the team_id I have tried Utah, utah, UTAH, UTA, uta, Jazz, 26, and utah-jazz.

All of them result in the card showing "Sensor unavailable", except for UTA or uta, which shows the card, but always shows that there is no future game scheduled, even when there is.

When I look at the ESPN API for the Utah Jazz, the id is 26, the abbreviation is UTAH, the name is Jazz, and the nickname is utah.

Has anybody been able to make it work?

schwaboy commented 1 week ago

Nevermind, I figured it out. The correct id was 26, however I wasn't noticing it because it creates a different teamtracker sensor every time you change the id. So I had to change my card from sensor.team_tracker_4 to sensor.team_tracker_5.

vasqued2 commented 1 week ago

You should go back and delete all the other sensors.