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.
148 stars 19 forks source link

Euro 2024. #160

Open schumi2309 opened 2 weeks ago

schumi2309 commented 2 weeks ago

Hello,

is there anything planned for euro 2024? Thanks.

Federico83-hassio commented 2 weeks ago

for me not working

vasqued2 commented 2 weeks ago

It should. Make sure you use capital letters for league.

Use custom configuration w/ sport_path set to soccer and league_path set to UEFA.EURO

schumi2309 commented 2 weeks ago

should I do it through the sensor.yaml or through the integration?

I tested this using sensor.yaml but it doesn't work.

An example ?

vasqued2 commented 2 weeks ago

This will set up a sensor for Italy for example

- platform: teamtracker
  league_id: "XXX"
  team_id: "ITA"
  sport_path: "soccer"
  league_path: "UEFA.EURO"
  name: "euro_ita"

This will set up a sensor that will pivot to whichever game is next or is underway.

- platform: teamtracker
  league_id: "XXX"
  team_id: "*"
  sport_path: "soccer"
  league_path: "UEFA.EURO"
  name: "euro_all"

Or you can set it up using the GUI and select Custom for the League and then fill in all the fields w/ the correct values across both input screens.

schumi2309 commented 2 weeks ago

ok, it works...Thanks. And is it possible to have the classification by group? is there a card to do this? I managed to achieve something, but it only includes the first group, and not the following ones! thanks in advance.

vasqued2 commented 2 weeks ago

It doesn't look like it. The API indicates the current games are in the group stage but it doesn't indicate which group they are in. It looks like you'd have to use something like a Vertical or Horizontal Stack Card to manually group whichever ones you wanted together and then change it up once the group stage is over.

schumi2309 commented 2 weeks ago

Let's say I would like to have the complete table but I can only display the first group. Capture d’écran 2024-06-17 à 11 13 40

How to choose the other groups?

Capture d’écran 2024-06-17 à 11 12 18

vasqued2 commented 2 weeks ago

This isn't a Team Tracker issue. If you post on this thread or to the linked repository, you should find someone to help you.

https://community.home-assistant.io/t/sports-standings-and-scores/547094

Chumba commented 2 weeks ago

Just chiming in to say I was able to configure Euro team tracker in HA UI by using the Custom option for league, and the ESPN link's team ID as the "Team/Athlete", for example Switzerland's team profile page is: "https://www.espn.com/soccer/team/_/id/475/switzerland"

I entered 475 into the Team/League field and it worked like a charm