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.
166 stars 20 forks source link

Research ? #45

Closed schumi2309 closed 1 year ago

schumi2309 commented 1 year ago

Hello, How to do a search to know what to wear for such and such a team, or for such a tennis player? To search for example Barcelona or Rafael Nadal? where to find the right name to put in the integration?

Thank you

vasqued2 commented 1 year ago

From the readme…

—- For the Team, you'll need to know the team ID ESPN uses for your team. This is the 2-, 3- or 4-letter abbreviation (eg. "SEA" for Seattle or "NE" for New England) ESPN uses when space is limited. You can generally find them at https://espn.com/ in the top scores UI, but they can also be found in other pages with team stats as well.

For individual sports, you should specify the althlete's name in team_id field. This will cause the sensor to track the competitions matching the name of the specified athlete. You should use as much of the name (i.e. last name, full name) as needed to uniquely identify the athlete. —-

Are there some you are having trouble with? I believe BAR and Nadal should work.

schumi2309 commented 1 year ago

Thanks for this info. Concerning barcelona and nadal, in the field, I put this: NADAL (ATP) BAR (LIGA) and the result gives me:

NOT_FOUND

So I tried with several abbreviations but it didn't work. I continue my research. Thank you.

vasqued2 commented 1 year ago

That's because there are no LIGA or WTA games scheduled in the next 5 days or so. The api_message on sensor should have a message to that effect.

https://github.com/vasqued2/ha-teamtracker/wiki/Troubleshooting:--State-=--NOT_FOUND

schumi2309 commented 1 year ago

All right.

I understand and it's good.

Thanks...

vasqued2 commented 1 year ago

The Barcelona/Espanyol game should be showing up now. If not, you have something set up wrong. Please confirm and close if it is working. If it isn’t working, please post your yaml or what your sensor values are.

vasqued2 commented 1 year ago

Confirmed Barca is working if the sensor is set up correctly. Closing.