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

English Championship please #19

Closed coleburg closed 1 year ago

coleburg commented 1 year ago

Not an issue but a request for the English Championship league to be added please.

vasqued2 commented 1 year ago

Going to need some help w/ this one. Is that the same as the English Carabao Cup, the EUFA Champions League, or something else entirely? Maybe provide a link to the scores on ESPN if something else.

coleburg commented 1 year ago

Hi, the English Championship is the league below the Premier league, here is a link

https://www.espn.co.uk/football/scoreboard/_/league/eng.2 or https://www.espn.com/soccer/league/_/name/eng.2

thank you

vasqued2 commented 1 year ago

It’s already supported.

You have to set up the sensor to use a custom API configuration instead of a native API configuration. Here’s a link with details. There are far too many soccer leagues to support them all natively.

Use eng.2 as the league_path

You’ll end up with something like this:

# Custom Integration - 
  - platform: teamtracker
    league_id: XXX
    team_id: SUN
    sport_path: soccer
    league_path:  eng.2
    name: team_tracker
coleburg commented 1 year ago

worked like a dream, thank you :-)

vasqued2 commented 1 year ago

Glad to hear it.