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

Can we add Belgian First Division A as well? #37

Closed schumi2309 closed 1 year ago

schumi2309 commented 1 year ago

Hello, Is it possible to add the Belgian football league first division? If yes, how ?

https://www.espn.com/soccer/club/_/id/559/standard-liege

Thank you.

vasqued2 commented 1 year ago

You can set it up as a Custom API Configuration.

sport_path: soccer
league_path: bel.1
schumi2309 commented 1 year ago

Ok, it works

And if I want the result of all the World Cup matches, is there a possibility without having to put a sensor for each team?

vasqued2 commented 1 year ago

No. One sensor per team.

jrspowers commented 1 year ago

hello i'm trying to create this sensor but it doesn't work well i put it in config.yaml this way but i don't get a new sensor?

platform: teamtracker
sport_path: soccer
league_path: bel.1
name: jupiler_pro_league
vasqued2 commented 1 year ago

You are missing the league_id and team_id.

- platform: teamtracker
  league_id: XXX
  team_id: GENK
  sport_path: soccer
  league_path: bel.1
  name: jupiler_pro_league
jrspowers commented 1 year ago

hello it works perfectly now i have a question i also want club brugge should i put it like this or else?

configuration.yaml
platform: teamtracker
league_id: XXX
team_id: CLUB BRUGGE
sport_path: soccer
league_path: bel.1
name: jupiler_pro_league
vasqued2 commented 1 year ago

Whatever abbreviation ESPN uses. Have you read the readme and wiki? They are designed to answer your basic questions. If you did and have recommendations to make them more clear, update the wiki or submit a pull request.

looks like maybe CBK but since I’m not familiar with bel.1 I’m not exactly sure what team you are looking for.