Set it up as a custom configuration. Sport path should be football. League path should be ufl.
Hi, Anyone know how to get a team tracker of countries? like in my case all the Peru matches friendly, for any tournament?
Does anyone have a full working code for all the NBA teams?
Thanks
@kbrown01 does … among other amazing stuff!
Sports Standings and Scores - Share your Projects! - Home Assistant Community (home-assistant.io)
This is perfect, Thankyou
Just wondering if you might be able to share ya NRL setup?
Thanks
Hi,
Here’s an example of the NRL set up
- platform: teamtracker
league_id: XXX
team_id: BRO
sport_path: rugby-league
league_path: 3
name: nrl_bro
I’ve added every team like this and then use auto entities to automatically select 2 upcoming or recent games to display.
Happy to share the full team list or auto entities config
I use these two sensors to show NBA league standings (West & East). I show the two entities in a flex table and order by win percent.
-
platform: rest
name: nba_standings_0
scan_interval: 3600
resource: https://site.web.api.espn.com/apis/v2/sports/basketball/nba/standings?type=0&level=0
value_template: “{{ now() }}”
json_attributes_path: “$[‘children’][0][‘standings’]”
json_attributes:- entries
-
platform: rest
name: nba_standings_1
scan_interval: 3600
resource: https://site.web.api.espn.com/apis/v2/sports/basketball/nba/standings?type=0&level=0
value_template: “{{ now() }}”
json_attributes_path: “$[‘children’][1][‘standings’]”
json_attributes:- entries
If you could kindly share both that would be appreciated than i would not have to find all the team IDs
Im not understanding how i would go about entering this information under the custom section so would i have to add it under configuration.yml?
Thanks
I have auto entities also
After you enter that information, it will pop up a second screen if you select Custom.
Here is NBA, I guess I am little lost to what you are looking for:
##
## NBA Teams
##
- platform: teamtracker
league_id: NBA
team_id: TOR
name: Toronto Raptors
- platform: teamtracker
league_id: NBA
team_id: BKN
name: Brooklyn Nets
- platform: teamtracker
league_id: NBA
team_id: NY
name: New York Knicks
- platform: teamtracker
league_id: NBA
team_id: PHI
name: Philadelphia 76ers
- platform: teamtracker
league_id: NBA
team_id: BOS
name: Boston Celtics
- platform: teamtracker
league_id: NBA
team_id: DET
name: Detroit Pistons
- platform: teamtracker
league_id: NBA
team_id: IND
name: Indiana Pacers
- platform: teamtracker
league_id: NBA
team_id: CHI
name: Chicago Bulls
- platform: teamtracker
league_id: NBA
team_id: CLE
name: Cleveland Cavaliers
- platform: teamtracker
league_id: NBA
team_id: MIL
name: Milwaukee Bucks
- platform: teamtracker
league_id: NBA
team_id: CHA
name: Charlotte Hornets
- platform: teamtracker
league_id: NBA
team_id: ORL
name: Orlando Magic
- platform: teamtracker
league_id: NBA
team_id: WSH
name: Washington Wizards
- platform: teamtracker
league_id: NBA
team_id: ATL
name: Atlanta Hawks
- platform: teamtracker
league_id: NBA
team_id: MIA
name: Miami Heat
- platform: teamtracker
league_id: NBA
team_id: UTAH
name: Utah Jazz
- platform: teamtracker
league_id: NBA
team_id: OKC
name: Oklahoma City Thunder
- platform: teamtracker
league_id: NBA
team_id: POR
name: Portland Trail Blazers
- platform: teamtracker
league_id: NBA
team_id: MIN
name: Minnesota Timberwolves
- platform: teamtracker
league_id: NBA
team_id: DEN
name: Denver Nuggets
- platform: teamtracker
league_id: NBA
team_id: LAL
name: Los Angeles Lakers
- platform: teamtracker
league_id: NBA
team_id: LAC
name: LA Clippers
- platform: teamtracker
league_id: NBA
team_id: GS
name: Golden State Warriors
- platform: teamtracker
league_id: NBA
team_id: PHX
name: Phoenix Suns
- platform: teamtracker
league_id: NBA
team_id: SAC
name: Sacramento Kings
- platform: teamtracker
league_id: NBA
team_id: HOU
name: Houston Rockets
- platform: teamtracker
league_id: NBA
team_id: SA
name: San Antonio Spurs
- platform: teamtracker
league_id: NBA
team_id: NO
name: New Orleans Pelicans
- platform: teamtracker
league_id: NBA
team_id: DAL
name: Dallas Mavericks
- platform: teamtracker
league_id: NBA
team_id: MEM
name: Memphis Grizzlies
Then NBA Stats by Division:
###
### NBA Divisions
###
- name: NBA Eastern Atlantic
unique_id: sensor.nba_eastern_atlantic
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[0]['children'][0]['standings']['entries'] }}"
- name: NBA Eastern Central
unique_id: sensor.nba_eastern_central
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[0]['children'][1]['standings']['entries'] }}"
- name: NBA Eastern Southeast
unique_id: sensor.nba_eastern_southeast
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[0]['children'][2]['standings']['entries'] }}"
- name: NBA Western Northwest
unique_id: sensor.nba_western_northwest
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[1]['children'][0]['standings']['entries'] }}"
- name: NBA Western Pacific
unique_id: sensor.nba_western_pacific
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[1]['children'][1]['standings']['entries'] }}"
- name: NBA Western Southwest
unique_id: sensor.nba_western_southwest
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.nba_standings','children')[1]['children'][2]['standings']['entries'] }}"
The first part is teamtracker … the greatest thing for a game … the second part is stats
Sorry NRL as in National Rugby League? Or?
Correct,
Seems on my phone they come up so will grab from there
Is there a way to make the card clickable? I’d like to use it to navigate to a subview with the standings.
@kbrown01 - After using your list of NFL/NHL/MLB teams to create my sensors I happened to notice that you have the Washington Capitals mislabled as the Washington Senators (in sensor name only). I was wondering why that sensor wasn’t coming up when I was searching for it.
Excellent work here and much appreciated, this is all awesome stuff.
Thanks! And I did note that sometime back, I guess I need to repost the sensors.
(Then again, I hate the Capitals so maybe it was intentional … lol )
Hey there. I’m looking to add sports to my View Assist project and this looks really great. In addition to tracking individual teams, is it also possible to pull information on teams not tracked? I’d like to add functionality like “Ok Nabu. What is the score of the {Dallas Cowboys} game” and get a return of the current score. “Ok Nabu, show NFL scoreboard” and show the current week’s scoreboard.
Is this possible via service call or similar? I am thinking of trying to do this myself via API but would certainly leverage Team Tracker if that’s an option. Thanks
I’m trying to add AFL to team tracker but I’m new to yaml and I don’t know where to add the configuration any help would be great