@kbrown01 - what app are you using on that screen shot?
That is oXygen Editor.
Asking for guidance - I donāt know how to put the NCAAF Top 25 into separate sensors.
NCAAF Top 25 is updated weekly and this is the link I am using: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings?seasontype=2&type=0&level=3
It is broken down into 3 categories(rankings):
- AP Poll (rankings[0])
- AFCA Coaches Poll (rankings[1])
- FCS Coaches Poll (rankings[2])
In each of the rankings there are 25 āranksā. How do I group all of the ranks[0-24] into 3 individual sensors?
Here are some screen shots and code I have been trying - thanks for helping:
## NCAA Football Rankings
###
- platform: rest
scan_interval: 36000
name: NCAAf rank
unique_id: sensor.ncaaf_rank
#resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings
resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes:
- rankings
- name: NCAA Football Top 25
unique_id: sensor.ncaa_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[0]['ranks']}}"
I end up getting everything in the api put into that sensor
Funny, working on a similar project right now
Iām still stuck in correctly showing the conference standings but the rankings are definitely next.
Maybe you have to add a filter for each ranking (code: name/shortName):
- AP Poll
- AFCA Coaches Poll
- FCS Coaches Poll
Talking about College Football:
This is my standings code, which is however not showing any team:
- attributes:
label: NCAAF
icon: mdi:football
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: var(--ha-card-background, var(--card-background-color, white) );
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0) );
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 20%;
}
mwc-tab[active] {
background: #EBFFD8 !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': green
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: Standings
icon: mdi:ballot
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: var(--ha-card-background, var(--card-background-color, white) );
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0) );
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 20%;
}
mwc-tab[active] {
background: #EBFFD8 !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': green
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: Conferences
card:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: American
- entity: >-
sensor.ncaaf_american_athletic_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: ACC
- entity: sensor.ncaaf_atlantic_coast_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: Big 12
- entity: sensor.ncaaf_big_12_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: Big Ten
- entity: sensor.ncaaf_big_ten_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: C-USA
- entity: sensor.ncaaf_conference_usa
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: FBS Ind.
- entity: sensor.ncaaf_fbs_independents
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: MAC
- entity: sensor.ncaaf_mid_american_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: MWC
- entity: sensor.ncaaf_mountain_west_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: Pac-12
- entity: sensor.ncaaf_pac_12_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: SEC
- entity: sensor.ncaaf_southeastern_conference
- type: custom:decluttering-card
template: ncaaf_settings
variables:
- title: Sun Belt
- entity: sensor.ncaaf_sun_belt_conference
- attributes:
label: Rankings
card:
type: custom:stack-in-card
mode: vertical
cards: null
- attributes:
label: Pregame
icon: mdi:football-helmet
card:
type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- status: PRE
- attributes:
label: Live
icon: mdi:football
card:
type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- status: IN
- attributes:
label: Postgame
icon: mdi:strategy
card:
type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- status: POST
- attributes:
label: Top 25
icon: mdi:strategy
card:
type: custom:auto-entities
unique: true
show_empty: false
card:
type: custom:layout-card
layout_type: masonry
card_param: cards
filter:
template: >
{%- for team in integration_entities("teamtracker")
-%}
{%- if state_attr(team, "league") == "NCAAF" -%}
{%- if state_attr(team, "team_rank") is not none -%}
{{{"type": "custom:teamtracker-card",
"entity": team,
"home_side": "right"}}},
{%- endif -%}
{%- endif -%}
{%- endfor -%}
exclude:
- entity_id: '*team_tracker*'
sort:
attribute: date
method: attribute
home_side: left
Ok so it was my error or Home Assistant being vindictive and renaming my sensor. Here is the NCAAf Top 25 Code for anyone who wants it and I will try to pretty it up.
Updated - 9-16-2024: - only changes are to dashboard and new section groups.yaml below - some new glamor pics
Preseason had Div II and Div III but donāt see them now.
Here is what is in my sensors.yaml file
##
## NCAA Football Rankings
###
- platform: rest
scan_interval: 36000
name: NCAAf rank
unique_id: sensor.ncaaf_rank
#resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings
resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings?seasontype=2&type=0&level=3
value_template: "{{ now() }}"
json_attributes:
- rankings
Here is what is in my template.yaml file:
##NCAA Men's Football AP Poll
- name: NCAA AP Poll Football Top 25
unique_id: sensor.ncaa_ap_poll_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[0]['ranks']}}"
##NCAA Men's Football AFCA Coaches Poll
- name: NCAA AFCA Coaches Poll Football Top 25
unique_id: sensor.ncaa_Coaches_poll_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[1]['ranks']}}"
##NCAA Men's Football AFCA Coaches Poll
- name: NCAA FCS Football Top 25
unique_id: sensor.ncaa_FCS_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[2]['ranks']}}"
##found in pre-season not now
- name: NCAA AFCA DIV II Football Top 25
unique_id: sensor.ncaa_AFCA_DIV_II_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[3]['ranks']}}"
##found in pre-season not now
- name: NCAA AFCA Div III Coaches Poll Football Top 25
unique_id: sensor.ncaa_AFCA_DIV_III_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[4]['ranks']}}"
Here is my test dashboard code:
decluttering_templates:
ncaa_top25_settings:
card:
type: custom:flex-table-card
title: '[[title]]'
css:
table+: 'padding: 0px; width: 100%;border-collapse: collapse; margin-top:12px;'
tbody tr td:first-child: 'width: 1%;'
tbody tr td:nth-child(2): 'width: 2%;'
tbody tr td:nth-child(3): 'width: 1%;'
tbody tr td:nth-child(4): 'width: 2%;'
tbody tr td:nth-child(n+5): 'width: .5%;'
tbody tr:hover: 'background-color: black!important; color:white!important;'
tbody tr td:nth-child(7): 'background-color: green; color: white;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
sort_by: entries+
entities:
include: '[[entity]]'
exclude: '[[excluded_entities]]'
columns:
- name: Rank
data: '[[attribute]]'
modify: x.current
- name: Up-Down
data: '[[attribute]]'
modify: |-
if (x.current == x.previous)
'<ha-icon icon="mdi:minus" >'
else if (x.current =="0")
'<ha-icon icon="mdi:bomb" style="color:red;" >'
else if (x.previous == "0")
'<div><ha-icon icon="mdi:hand-clap" style="color:blue;"></ha-icon> ' + "New " + '</div>';
else if (x.current > x.previous)
'<div><ha-icon icon="mdi:arrow-down" style="color:red;"></ha-icon> ' + "Dn "+ (x.current - x.previous) + '</div>';
else if (x.current < x.previous)
'<div><ha-icon icon="mdi:arrow-up" style="color:green;"></ha-icon> ' + "Up "+ (x.previous - x.current) + '</div>';
- name: Record
data: '[[attribute]]'
modify: x.recordSummary
- name: Team
data: '[[attribute]]'
modify: >-
'<div><img src="' + x.team.logos[0].href + '" style="height:
20px;vertical-align:middle;"> ' + x.team.nickname + '</div>'
- name: 1st Place Votes
data: '[[attribute]]'
modify: x.firstPlaceVotes
- name: Previous Rank
data: '[[attribute]]'
modify: x.previous
- name: Points
data: '[[attribute]]'
modify: x.points
ncaa_conference_settings:
card:
type: custom:flex-table-card
title: '[[title]]'
css:
table+: 'padding: 0px; width: 1000px;'
tbody tr td:first-child: 'width: 5%;'
tbody tr td:nth-child(2): 'width: 5%;'
tbody tr td:nth-child(3): 'width: 5%;'
tbody tr td:nth-child(4): 'width: 5%;'
tbody tr td:nth-child(n+5): 'width: .5%;'
tbody tr:hover: 'background-color: black!important; color:white!important;'
tbody tr td:nth-child(7): 'background-color: green; color: white;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
sort_by: events+
entities:
include: '[[entity]]'
exclude: '[[excluded_entities]]'
columns:
- name: Game Time
data: '[[attribute]]'
modify: x.date.split('T')[0]
- name: Teams
data: '[[attribute]]'
modify: x.shortName
- name: Site
data: '[[attribute]]'
modify: >-
x.competitions[0].venue.fullName + " " +
x.competitions[0].venue.address.city +"," +
x.competitions[0].venue.address.state
- name: Home Team
data: '[[attribute]]'
modify: >-
'<div><img src="' + x.competitions[0].competitors[0].team.logo + '"
style="height: 20px;vertical-align:middle;"> ' +
x.competitions[0].competitors[0].team.displayName + '</div>'
- name: Record
data: '[[attribute]]'
modify: x.competitions[0].competitors[0].records[0].summary
- name: Conference
data: '[[attribute]]'
modify: x.competitions[0].competitors[0].team.conferenceId
- name: Away Team
data: '[[attribute]]'
modify: >-
'<div><img src="' + x.competitions[0].competitors[1].team.logo + '"
style="height: 20px;vertical-align:middle;"> ' +
x.competitions[0].competitors[1].team.displayName + '</div>'
- name: Record
data: '[[attribute]]'
modify: x.competitions[0].competitors[1].records[0].summary
- name: Conference
data: '[[attribute]]'
modify: x.competitions[0].competitors[1].team.conferenceId
ncaa_football_standings:
card:
type: custom:flex-table-card
title: '[[title]]'
css:
table+: 'padding: 0px; width: 1000px;'
tbody tr td:first-child: 'width: 2%;'
tbody tr td:nth-child(2): 'width: 5%;'
tbody tr td:nth-child(n+3): 'width: 2%;'
tbody tr:hover: 'background-color: black!important; color:white!important;'
tbody tr td:nth-child(5): 'background-color: green; color: white;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
sort_by: entries+
entities:
include: '[[entity]]'
columns:
- name: Seed
data: entries
modify: x.stats.find(y=>y.abbreviation == 'SEED').displayValue
- name: Team
data: entries
modify: >-
'<div><img src="' + x.team.logos[0].href + '" style="height:
20px;vertical-align:middle;"> ' + x.team.displayName +
'</div>'
- name: Overall
data: entries
modify: x.stats.find(y=>y.abbreviation == 'overall').displayValue
- name: GB
data: entries
modify: x.stats.find(y=>y.abbreviation == 'GB').displayValue
- name: Wins
data: entries
modify: x.stats.find(y=>y.abbreviation == 'W').value
- name: Conf Record
data: entries
modify: x.stats.find(y=>y.abbreviation == 'CONF').displayValue
- name: Streak
data: entries
modify: x.stats.find(y=>y.abbreviation == 'STRK').value
game_stats:
card:
type: custom:auto-entities
unique: true
show_empty: false
card:
type: custom:layout-card
layout_type: grid
layout:
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
card_param: cards
filter:
template: |
{%- for team in integration_entities("teamtracker") -%}
{%- if state_attr(team, "league") == "[[sport]]" -%}
{%- if states(team) == "[[status]]" -%}
{%- if state_attr(team, "team_homeaway") == "home" -%}
{%- if team in state_attr('sensor.nfl_red_zone','teams') -%}
{{{"type": "custom:teamtracker-card",
"entity": team,
"card_mod": {"style": "ha-card {\n\n color: black; \n background-color: #ffcccc; \n box-shadow: 0 0 10px 5px red;\n}\n"},
"home_side": "right"}}},
{%- else -%}
{{{"type": "custom:teamtracker-card",
"entity": team, "card_mod": {"style": "ha-card { font-size: .7em; line-height: .7em; width: 280px;}"},"conference_id":[[conference]],
"home_side": "right"}}},
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
exclude:
- entity_id: '*team_tracker*'
sort:
method: attribute
attribute: date
ncaaf_conference_game_stats:
card:
type: custom:auto-entities
unique: true
show_empty: false
card:
type: custom:layout-card
layout_type: grid
layout:
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))
card_param: cards
filter:
template: |
{%- for team in state_attr('[[group]]','entity_id')-%}
{{{"type": "custom:teamtracker-card","entity": team,
"card_mod": {"style": "ha-card { font-size: .7em; line-height: .7em; width: 280px;}"},
"home_side": "right"}}},
{%- endfor -%}
exclude:
- entity_id: '*team_tracker*'
sort:
method: attribute
attribute: date
views:
- theme: Backend-selected
title: Sports
type: panel
icon: mdi:strategy
badges: []
cards:
- type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: black;
color: silver;
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0));
border-width: 2px;
border-style: solid;
overflow: hidden;
width: 20%;
}
mwc-tab[active] {
background: white !important;
color: black !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': black
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: NCAA
icon: mdi:school
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: black;
border-color: silver;
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 15%;
}
mwc-tab[active] {
background: white !important;
color: black !important
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': black
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: NCAA Football
icon: mdi:football
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: black;
border-color: silver;
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 25%;
}
mwc-tab[active] {
background: white !important;
color: black !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': black
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: Top 25 Standings (AP-Coaches-FCS Polls)
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
<h4 style="text-align:center;"> {{
state_attr('sensor.ncaaf_rank',
'rankings')[0]['headline'] }} -
{{as_timestamp(state_attr('sensor.ncaaf_rank','rankings')[0]['date'])
| timestamp_custom('%m/%d/%Y') }}</h4>
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 AFCA AP Poll
- entity: sensor.ncaa_ap_poll_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Dropped Out Top 25 AP Poll
- entity: >-
sensor.ncaa_ap_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Others Getting Votes 25 AP Poll
- entity: >-
sensor.ncaa_ap_poll_others_football_top_25
- attribute: entries
- type: vertical-stack
cards:
- type: markdown
content: >
<h4 style="text-align:center;"> {{
state_attr('sensor.ncaaf_rank',
'rankings')[1]['headline'] }} -
{{as_timestamp(state_attr('sensor.ncaaf_rank','rankings')[1]['date'])
| timestamp_custom('%m/%d/%Y') }}</h4>
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 AFCA Coaches Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Dropped Out Top 25 AFCA Coaches
Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Others Getting Votes 25 AFCA
Coaches Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_others_football_top_25
- attribute: entries
- type: vertical-stack
cards:
- type: markdown
content: >
<h4 style="text-align:center;"> {{
state_attr('sensor.ncaaf_rank',
'rankings')[2]['headline'] }} - {{
as_timestamp(state_attr('sensor.ncaaf_rank',
'rankings')[2]['date']) |
timestamp_custom('%m/%d/%Y') }}</h4>
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 FCS Coaches Poll
- entity: sensor.ncaa_fcs_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Dropped Out Top 25 FCS Coaches Poll
- entity: >-
sensor.ncaa_fcs_coaches_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Others Getting Votes 25FCS Coaches
Poll
- entity: >-
sensor.ncaa_fcs_coaches_poll_others_football_top_25
- attribute: entries
- attributes:
label: Big 12 Conference
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_conference_settings
variables:
- title: NCAA Big 12 Conference
- entity: sensor.ncaaf_big_12_games
- attribute: events
- type: markdown
content: |
<h1>Big 12 conference</h1>
- type: custom:decluttering-card
template: ncaaf_conference_game_stats
variables:
- group: group.big_12_conference_teams_group
- type: vertical-stack
cards:
- type: markdown
content: |
<h1>NCAA Games Live</h1>
- type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- sport_path: football
- league_path: college-football
- conferenceid: 4
- status: IN
- conference: '4'
- type: markdown
content: |
<h1>NCAA Games Coming-up</h1>
- type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- sport_path: football
- league_path: college-football
- conferenceid: 4
- status: PRE
- conference: '4'
- type: markdown
content: |
<h1>NCAA Games Completed</h1>
- type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- sport_path: football
- league_path: college-football
- conferenceid: 4
- status: POST
- conference: '4'
- attributes:
label: NCAA Football Conferences
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_football_standings
variables:
- title: Big 12 Conference
- entity: sensor.big_12_conference
- attribute: entries
- type: custom:decluttering-card
template: ncaa_football_standings
variables:
- title: Big Ten Conference
- entity: sensor.big_ten_conference
- attribute: entries
- type: custom:decluttering-card
template: ncaa_football_standings
variables:
- title: Atlantic Coast Conference
- entity: sensor.atlantic_coast_conference
- attribute: entries
- attributes:
label: Placeholder (future)
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards: null
title: NCAA Sports Standings and Scores
Will try to work on the other later - but would love to see someoneās finished NCAA code or if anyone has the teamtracker platforms entered and would like to share it would be appreciated.
Update: Made a couple changes to decluttering card and added movement arrows and more changes to look
**Update: Add moves up/down and some other cosmetic changes and fixed headlines
Update - 9-16-2024
- mostly cosmetic changes like fixing the date issue I had on pulling Polls (say that 6 times fast )
- also I notice like most that ESPN brings in the FCS polls later so they will eventually populate
-I have been trying to create conference only tabbed, kind of a quick hit of all that conferences info and I was hoping to use the teamtracker āconference_idā as a filter but I canāt seem to figure that out yet - maybe someone has an idea @kbrown01 or @vasqued2 . So what I am doing is creating a group and then just passing the group to teamtracker. Here is an example - this is in my groups.yaml file
Big_12_Conference_teams_group:
name: "Big 12 Conference Teams"
entities:
- sensor.arizona_state_university
- sensor.university_of_arizona
- sensor.brighan_young_university
- sensor.kansas_state_university
- sensor.oklahoma_state_university
- sensor.university_of_utah
- sensor.baylor_university
- sensor.iowa_state_university
- sensor.university_of_cincinnati
- sensor.university_of_colorado_boulder
- sensor.texas_tech_university
- sensor.university_of_houston
- sensor.university_of_kansas
- sensor.texas_christian_university
- sensor.university_of_central_florida
- sensor.west_virginia_university
-I plan on trying to combine the game_stats template with the one I created for passing the groups list (ncaaf_conference_game_stats). I seem to be doing a good job of cluttering my decluttering card.
-new code is posted above
- You can see in the big 12 conference a couple things that need fixed and have been changed. Making the cards smaller because I am mostly on a pc and the conference only cards. They are showing duplicates when they are conference games and will look to fix (unless someone has a quick fix - Unique is set to true. You can see where I am heading here.
Thanks to all and if you are new read this thread and the one below from the beginning I know it was like being in a class https://community.home-assistant.io/t/real-time-sports-scores-w-teamtracker-and-teamtracker-card-beta/456923
Somehow not working for me, but I think itās on my end tho
What are you seeing? Are your sensors populated? HA sometimes alters the sensor name from what it should be. I have no idea why but I go into Settings>Automations>Entities to confirm the sensor is named what I am sending to the decluttering-card and I go into states to make sure that sensor is populated. Here is one of the sensors in my example that is being called:sensor.ncaa_ap_poll_football_top_25
Updates - mostly just playing with formatting and added dropped out/others getting votes - just dashboard code is changing:
**Update2:**Added in more sensors for Dropped Out/Others in the AFCA Coaches and FCS Coaches Polls. FCS is not showing dropped out in the api - maybe it will update this weekend.
Sensors.yaml hasnāt changed
Template.yaml code is here:
################################################ AP Poll #####################################
##NCAA Men's Football AP Poll
- name: NCAA AP Poll Football Top 25
unique_id: sensor.ncaa_ap_poll_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[0]['ranks']}}"
##NCAA Men's Football Dropped out of AP Poll
- name: NCAA AP Poll Dropped out of Football Top 25
unique_id: sensor.ncaa_ap_poll_dropped_out_of_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[0]['droppedOut']}}"
##NCAA Men's Football Others Getting Votes AP Poll
- name: NCAA AP Poll Others Football Top 25
unique_id: sensor.ncaa_ap_poll_others_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[0]['others']}}"
################################################ AFCA Coaches Poll #####################################
##NCAA Men's Football AFCA Coaches Poll
- name: NCAA AFCA Coaches Poll Football Top 25
unique_id: sensor.ncaa_Coaches_poll_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[1]['ranks']}}"
##NCAA Men's Football Dropped out of AFCA Coaches Poll
- name: NCAA AFCA Coaches Poll Dropped out of Football Top 25
unique_id: sensor.ncaa_afca_coaches_poll_dropped_out_of_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[1]['droppedOut']}}"
##NCAA Men's Football Others Getting Votes AFCA Coaches Poll
- name: NCAA AFCA Coaches Poll Others Football Top 25
unique_id: sensor.ncaa_afca_coaches_poll_others_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[1]['others']}}"
################################################ AP Poll #####################################
##NCAA Men's Football FCS Coaches Poll
- name: NCAA FCS Football Top 25
unique_id: sensor.ncaa_FCS_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[2]['ranks']}}"
##NCAA Men's Football Dropped out of FCS Coaches Poll
- name: NCAA FCS Coaches Poll Dropped out of Football Top 25
unique_id: sensor.ncaa_fcs_coaches_poll_dropped_out_of_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[2]['droppedOut']}}"
##NCAA Men's Football Others Getting Votes FCS Coaches Poll
- name: NCAA FCS Coaches Poll Others Football Top 25
unique_id: sensor.ncaa_fcs_coaches_poll_others_football_top_25
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[2]['others']}}"
################################################ Preseason stuff #####################################
###found in pre-season not now
#- name: NCAA AFCA DIV II Football Top 25
#unique_id: sensor.ncaa_AFCA_DIV_II_football_top_25
#state: "{{ now() }}"
#attributes:
#entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[3]['ranks']}}"
###found in pre-season not now
#- name: NCAA AFCA Div III Coaches Poll Football Top 25
#unique_id: sensor.ncaa_AFCA_DIV_III_football_top_25
#state: "{{ now() }}"
#attributes:
#entries: "{{ state_attr('sensor.ncaaf_rank','rankings')[4]['ranks']}}"
#####################################################################################
Here is the dashboard:
decluttering_templates:
ncaa_top25_settings:
card:
type: custom:flex-table-card
title: '[[title]]'
css:
table+: 'padding: 0px; width: 600px;'
tbody tr td:first-child: 'width: 1%;'
tbody tr td:nth-child(2): 'width: 2%;'
tbody tr td:nth-child(3): 'width: 1%;'
tbody tr td:nth-child(4): 'width: 2%;'
tbody tr td:nth-child(n+5): 'width: .5%;'
tbody tr:hover: 'background-color: green!important; color:white!important;'
tbody tr td:nth-child(7): 'background-color: green; color: white;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
sort_by: entries+
entities:
include: '[[entity]]'
exclude: '[[excluded_entities]]'
columns:
- name: Rank
data: '[[attribute]]'
modify: x.current
- name: Up-Down
data: '[[attribute]]'
modify: |-
if (x.current == x.previous)
'<ha-icon icon="mdi:minus" >'
else if (x.current =="0")
'<ha-icon icon="mdi:bomb" >'
else if (x.previous == "0")
'<div><ha-icon icon="mdi:hand-clap" style="color:blue;"></ha-icon> ' + "New " + '</div>';
else if (x.current > x.previous)
'<div><ha-icon icon="mdi:arrow-down" style="color:red;"></ha-icon> ' + "Dn "+ (x.current - x.previous) + '</div>';
else if (x.current < x.previous)
'<div><ha-icon icon="mdi:arrow-up" style="color:green;"></ha-icon> ' + "Up "+ (x.previous - x.current) + '</div>';
- name: Record
data: '[[attribute]]'
modify: x.recordSummary
- name: Team
data: '[[attribute]]'
modify: >-
'<div><img src="' + x.team.logos[0].href + '" style="height:
20px;vertical-align:middle;"> ' + x.team.nickname + '</div>'
- name: 1st Place Votes
data: '[[attribute]]'
modify: x.firstPlaceVotes
- name: Previous Rank
data: '[[attribute]]'
modify: x.previous
- name: Points
data: '[[attribute]]'
modify: x.points
ncaa_conference_settings:
card:
type: custom:flex-table-card
title: '[[title]]'
css:
table+: 'padding: 0px; width: 600px;'
tbody tr td:first-child: 'width: 5%;'
tbody tr td:nth-child(2): 'width: 5%;'
tbody tr td:nth-child(3): 'width: 5%;'
tbody tr td:nth-child(4): 'width: 5%;'
tbody tr td:nth-child(n+5): 'width: .5%;'
tbody tr:hover: 'background-color: green!important; color:white!important;'
tbody tr td:nth-child(7): 'background-color: green; color: white;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
sort_by: events+
entities:
include: '[[entity]]'
exclude: '[[excluded_entities]]'
columns:
- name: Is in Conference
data: '[[attribute]]'
modify: x.name
- name: Site
data: '[[attribute]]'
modify: x.shortName
- name: Team Name
data: '[[attribute]]'
modify: x.competitions[0].competitors[0].team.displayName
- name: Conference
data: '[[attribute]]'
modify: x.competitions[0].competitors[0].team.conferenceId
- name: Team
data: '[[attribute]]'
modify: >-
'<div><img src="' + x.competitions[0].competitors[0].team.logo.href
+ '" style="height: 20px;vertical-align:middle;"> ' +
x.competitions[0].competitors[0].team.displayName + '</div>'
- name: Record
data: '[[attribute]]'
modify: x.competitions[0].competitors[0].records[0].summary
views:
- theme: Backend-selected
title: Sports
type: panel
icon: mdi:strategy
badges: []
cards:
- type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: var(--ha-card-background, var(--card-background-color, white) );
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0) );
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 20%;
}
mwc-tab[active] {
background: #EBFFD8 !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': green
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: NCAA
icon: mdi:football
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: var(--ha-card-background, var(--card-background-color, white) );
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0) );
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 15%;
}
mwc-tab[active] {
background: #EBFFD8 !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': green
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: Top 25 Standings
icon: mdi:ballot
card:
type: custom:mod-card
card_mod:
style:
tabbed-card $: |
mwc-tab {
background: var(--ha-card-background, var(--card-background-color, white) );
border-color: var(--ha-card-border-color, var(--divider-color, #e0e0e0) );
border-width: 2px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-style: solid;
overflow: hidden;
width: 25%;
}
mwc-tab[active] {
background: #EBFFD8 !important;
}
card:
type: custom:tabbed-card
styles:
'--mdc-theme-primary': green
'--mdc-tab-text-label-color-default': silver
'--mdc-typography-button-font-size': 12px
tabs:
- attributes:
label: AP-Coaches Polls
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 AP Poll
- entity: sensor.ncaa_ap_poll_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Dropped Out Top 25 AP Poll
- entity: >-
sensor.ncaa_ap_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Others Getting Votes 25 AP Poll
- entity: >-
sensor.ncaa_ap_poll_others_football_top_25
- attribute: entries
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 AFCA Coaches Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Dropped Out Top 25 AFCA Coaches
Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Others Getting Votes 25 AFCA
Coaches Poll
- entity: >-
sensor.ncaa_afca_coaches_poll_others_football_top_25
- attribute: entries
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Top 25 FCS Coaches Poll
- entity: sensor.ncaa_fcs_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: NCAA Dropped Out Top 25 FCS Coaches Poll
- entity: >-
sensor.ncaa_fcs_coaches_poll_dropped_out_of_football_top_25
- attribute: entries
- type: custom:decluttering-card
template: ncaa_top25_settings
variables:
- title: >-
NCAA Others Getting Votes 25FCS Coaches
Poll
- entity: >-
sensor.ncaa_fcs_coaches_poll_others_football_top_25
- attribute: entries
- attributes:
label: Big 12 Conference
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: ncaa_conference_settings
variables:
- title: NCAA Big 12 Conference
- entity: sensor.ncaaf_big_12_games
- attribute: events
title: NCAA Sports Standings and Scores
Here is what it looks like:
For those that want to help I am trying to get conference standings (liike NFL/NBA/etc.) but I donāt think ESPN has an API. So one thought I started playing with was trying to pull Win/Loss records out of the group apiās.
I am starting with Big 12 - here is the link - https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?groups=4
The code that is in the dashboard at the bottom and in the decluttering card are in the back of the napkin stage right now. But if you want to help here is the sensor.yaml
########
##NCAA Football League schedules
####
##### Big 12
- platform: rest
scan_interval: 36000
name: NCAAf Big 12 Games
unique_id: sensor.ncaaf_big_12_games
resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?groups=4
value_template: "{{ now() }}"
json_attributes:
- events
Here is the template.yaml code:
########
##NCAA Football League schedules
#### Big 12
- name: NCAA Weekly Big 12 Games
unique_id: sensor.ncaa_weekly_big_12_games
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.ncaaf_big_12_games','events')[0]['competitions'][0]['competitors']}}"
Again back of napkin but this is what it gives right now
This is great work, thaks to @bburwell and others for making this better! I am back from my European jaunt, and itās suddenly time from harvest for the winery. Iāll come up for air on occasion but all your participation helps in making this great.
Appreciate the comments but I canāt express how grateful I am for what you built. I simply dotted the i on a couple projects. Between what you did @kbrown01 and @Ildar_Gabdullinās magnificent flex-table-card I am looking forward to the projects that will be created. Thanks to you both for your contributions!!! You both should get together and create a Master Class on Jinja2, JSON, CSS and Home Assistant.
Got it fixed. Had a typo in my sensor.yaml and didnāt even notice that the sensor didnāt populate.
Can you post your dropped out and others getting votes templates?
Just updated over code above. Should have all of the dropped out/others and I have added it for both Coaches polls as well.
Thank you for sharing your updates. I keep adding leagues and never seem to be finished tweaking. @kbrown01 and @jeffcrum have provided way more answers than Iāve deserved.
I think the point however, is seeing what others are doing. I had AP and AFCA Polls on separate tabs. Iād been meaning to look into stacking them side by side and just never got there until today.
The only thing Iāve not been able to figure out is how to pull from multiple sensors in one decluttering template. Iād like to add āLast Weekā and āNext Weekā games which I have. All from different sensors and using different attributes.
This will likely get me laughed off this page as there is nothing eloquent or clean about it.
ncaafranking_settings:
card:
type: custom:flex-table-card
css:
table+: 'padding: 0px; width: 100%; border-collapse: collapse; margin-top:12px;'
tbody tr td:first-child: 'width: .5%;'
tbody tr td:nth-child(2): 'width: 5%;'
tbody tr td:nth-child(n+3): 'width: 2%;'
tbody tr td:nth-child(7): 'width: 5%;'
tbody tr:hover: 'background-color: dimgrey!important; color:white!important;'
card_mod:
style:
.: |
ha-card {
overflow: auto;
}
$: |
.card-header {
padding-top: 6px!important;
padding-bottom: 4px!important;
font-size: 14px!important;
line-height: 14px!important;
font-weight: bold!important;
}
entities:
include: '[[entity]]'
sort_by: entries-
columns:
- hidden: true
data: '[[attribute]]'
- name: <div style="height:20px;text-indent:5px;">RANK</div>
data: '[[attribute]]'
modify: >-
if (typeof x !== 'undefined' && typeof x.current !== 'undefined') {
x.current;
} else {
'';
}
if (typeof x !== 'undefined' && typeof x.current !== 'undefined' &&
typeof x.current !== 'undefined') {
'<div style="font-weight:normal;text-indent:10px;">' + x.current + '</div>';
} else {
'';
}
- name: <div>TEAM</div>
data: '[[attribute]]'
modify: |-
if (typeof x.team.links !== 'undefined')
'<div> <a href="' + x.team.links[0].href +
'" target="_blank"><img src="' + x.team.logos[0].href +
'" style="height:20px;vertical-align:middle;"></a> ' +
x.team.nickname + ' ' + x.team.name + '</div>';
else
'<div>' + x.team.nickname + ' ' + x.team.name + '</div>'
- name: <div style="text-align:center;">TREND</div>
data: '[[attribute]]'
modify: >-
if (typeof x !== 'undefined' && typeof x.current !== 'undefined' &&
typeof x.previous !== 'undefined') {
let content = '';
let icon = '';
let text = '';
if (x.current === x.previous) {
icon = '<ha-icon icon="mdi:minus" style="fill:white;"></ha-icon>';
} else if (x.previous === 0) {
text = '<div style="font-size:14px;color:white;">NR</div>';
} else {
let difference = x.current - x.previous;
if (difference > 0) {
icon = '<ha-icon icon="mdi:arrow-down" style="color:red;"></ha-icon>';
text = '<div style="font-size:14px;color:red;">' + difference + '</div>';
} else if (difference < 0) {
icon = '<ha-icon icon="mdi:arrow-up" style="color:green;"></ha-icon>';
text = '<div style="font-size:14px;color:green;">' + Math.abs(difference) + '</div>';
}
}
content = '<div style="display:flex;align-items:center;justify-content:center;width:100%;height:100%;">' +
icon +
(icon && text ? '<div style="margin-left:5px;">' + text + '</div>' : text) +
'</div>';
content;
} else {
'';
}
- name: <div style="height:20px;text-indent:5px;">W-L</div>
data: '[[attribute]]'
modify: |-
if (typeof x.recordSummary !== 'undefined') {
'<div style="font-weight:normal;text-indent:10px;">' + x.recordSummary + '</div>';
} else {
'';
}
- name: <div style="height:20px;text-indent:5px;">POINTS</div>
data: '[[attribute]]'
modify: |-
if (typeof x.points !== 'undefined') {
var formattedPoints = new Intl.NumberFormat().format(x.points);
'<div style="font-weight:normal;text-indent:10px;">' + formattedPoints + '</div>';
} else {
'';
}
- name: <div style="height:20px;text-indent:5px;">VOTES</div>
data: '[[attribute]]'
modify: >-
// Check if the data exists and return it, otherwise return an empty
string
if (typeof x.firstPlaceVotes !== 'undefined' && x.firstPlaceVotes
!== 0) {
'<div style="font-weight:normal;text-indent:10px;">' + x.firstPlaceVotes + '</div>';
} else {
'';
}
- name: <div style="height:20px;text-indent:5px;">TEAM PAGE</div>
data: '[[attribute]]'
modify: >-
if (typeof x.team.links !== 'undefined' && x.team.links.length > 0)
{
'<div><a href="' + x.team.links[0].href +
'" target="_blank" style="text-decoration:none;color:white;">' +
'<div style="font-weight:normal;text-indent:10px;">' +
x.team.nickname + ' ' + x.team.name + ' (' + x.team.abbreviation + ') ' +
'</div></a></div>';
} else {
'<div>' + x.team.nickname + ' ' + x.team.name + '</div>';
}
To get the Week number I created 2 sensors. Iām only display the Week on that dashboard but you could also add the date range for it.
- platform: template
scan_interval: 86400
sensors:
current_status:
friendly_name: "College Football Week Number"
unique_id: sensor.college_football_week_number
value_template: >
{% set today = now().date() %}
{% set date_format = '%Y-%m-%d' %}
{% set date_ranges = [
{'start': '2024-01-10', 'end': '2024-08-23', 'status': 'OFF-SEASON', 'range': 'JAN 10 - AUG 23'},
{'start': '2024-08-24', 'end': '2024-09-02', 'status': 'WEEK 1', 'range': 'Aug 24 - SEP 2'},
{'start': '2024-09-03', 'end': '2024-09-07', 'status': 'WEEK 2', 'range': 'SEP 3 - 7'},
{'start': '2024-09-08', 'end': '2024-09-14', 'status': 'WEEK 3', 'range': 'SEP 8 - 14'},
{'start': '2024-09-15', 'end': '2024-09-21', 'status': 'WEEK 4', 'range': 'SEP 15 - 21'},
{'start': '2024-09-22', 'end': '2024-09-28', 'status': 'WEEK 5', 'range': 'SEP 22 - 28'},
{'start': '2024-09-29', 'end': '2024-10-05', 'status': 'WEEK 6', 'range': 'SEP 29 - OCT 5'},
{'start': '2024-10-06', 'end': '2024-10-12', 'status': 'WEEK 7', 'range': 'OCT 6 - 12'},
{'start': '2024-10-13', 'end': '2024-10-19', 'status': 'WEEK 8', 'range': 'OCT 13 - 19'},
{'start': '2024-10-20', 'end': '2024-10-26', 'status': 'WEEK 9', 'range': 'OCT 20 - 26'},
{'start': '2024-10-27', 'end': '2024-11-02', 'status': 'WEEK 10', 'range': 'OCT 27 - NOV 2'},
{'start': '2024-11-03', 'end': '2024-11-09', 'status': 'WEEK 11', 'range': 'NOV 3 - 9'},
{'start': '2024-11-10', 'end': '2024-11-16', 'status': 'WEEK 12', 'range': 'NOV 10 - 16'},
{'start': '2024-11-17', 'end': '2024-11-23', 'status': 'WEEK 13', 'range': 'NOV 17 - 23'},
{'start': '2024-11-24', 'end': '2024-11-30', 'status': 'WEEK 14', 'range': 'NOV 24 - 30'},
{'start': '2024-12-01', 'end': '2024-12-07', 'status': 'WEEK 15', 'range': 'DEC 1 - 7'},
{'start': '2024-12-08', 'end': '2024-12-13', 'status': 'WEEK 16', 'range': 'DEc 8 - 14'},
{'start': '2024-12-14', 'end': '2025-01-21', 'status': 'BOWLS', 'range': 'DEC 14 - JAN 21'},
{'start': '2025-01-22', 'end': '2025-08-22', 'status': 'OFF-SEASON', 'range': 'JAN 22 - AUG 22'}
] %}
{% for date_range in date_ranges %}
{% set start_date = strptime(date_range.start, date_format).date() %}
{% set end_date = strptime(date_range.end, date_format).date() %}
{% if today >= start_date and today <= end_date %}
{{ date_range.status }}
{% endif %}
{% endfor %}
current_range:
friendly_name: "College Football Week Dates"
unique_id: sensor.college_football_week_dates
value_template: >
{% set today = now().date() %}
{% set date_format = '%Y-%m-%d' %}
{% set date_ranges = [
{'start': '2024-01-10', 'end': '2024-08-23', 'status': 'OFF-SEASON', 'range': 'JAN 10 - AUG 23'},
{'start': '2024-08-24', 'end': '2024-09-02', 'status': 'WEEK 1', 'range': 'Aug 24 - SEP 2'},
{'start': '2024-09-03', 'end': '2024-09-07', 'status': 'WEEK 2', 'range': 'SEP 3 - 7'},
{'start': '2024-09-08', 'end': '2024-09-14', 'status': 'WEEK 3', 'range': 'SEP 8 - 14'},
{'start': '2024-09-15', 'end': '2024-09-21', 'status': 'WEEK 4', 'range': 'SEP 15 - 21'},
{'start': '2024-09-22', 'end': '2024-09-28', 'status': 'WEEK 5', 'range': 'SEP 22 - 28'},
{'start': '2024-09-29', 'end': '2024-10-05', 'status': 'WEEK 6', 'range': 'SEP 29 - OCT 5'},
{'start': '2024-10-06', 'end': '2024-10-12', 'status': 'WEEK 7', 'range': 'OCT 6 - 12'},
{'start': '2024-10-13', 'end': '2024-10-19', 'status': 'WEEK 8', 'range': 'OCT 13 - 19'},
{'start': '2024-10-20', 'end': '2024-10-26', 'status': 'WEEK 9', 'range': 'OCT 20 - 26'},
{'start': '2024-10-27', 'end': '2024-11-02', 'status': 'WEEK 10', 'range': 'OCT 27 - NOV 2'},
{'start': '2024-11-03', 'end': '2024-11-09', 'status': 'WEEK 11', 'range': 'NOV 3 - 9'},
{'start': '2024-11-10', 'end': '2024-11-16', 'status': 'WEEK 12', 'range': 'NOV 10 - 16'},
{'start': '2024-11-17', 'end': '2024-11-23', 'status': 'WEEK 13', 'range': 'NOV 17 - 23'},
{'start': '2024-11-24', 'end': '2024-11-30', 'status': 'WEEK 14', 'range': 'NOV 24 - 30'},
{'start': '2024-12-01', 'end': '2024-12-07', 'status': 'WEEK 15', 'range': 'DEC 1 - 7'},
{'start': '2024-12-08', 'end': '2024-12-13', 'status': 'WEEK 16', 'range': 'DEc 8 - 14'},
{'start': '2024-12-14', 'end': '2025-01-21', 'status': 'BOWLS', 'range': 'DEC 14 - JAN 21'},
{'start': '2025-01-22', 'end': '2025-08-22', 'status': 'OFF-SEASON', 'range': 'JAN 22 - AUG 22'}
] %}
{% for date_range in date_ranges %}
{% set start_date = strptime(date_range.start, date_format).date() %}
{% set end_date = strptime(date_range.end, date_format).date() %}
{% if today >= start_date and today <= end_date %}
{{ date_range.range }}
{% endif %}
{% endfor %}
Andā¦
- attributes:
label: RANKINGS
icon: mdi:account-group
card:
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
<h1>TOP 25 AP POLL</h1>
<h3>{{ states('sensor.college_football_week_number') }}</h3>
- type: custom:decluttering-card
template: ncaafranking_settings
variables:
- title: AP Top 25 Poll
- entity: sensor.college_football_ap_poll
- attribute: entries
- type: vertical-stack
cards:
- type: markdown
content: >
<h1>AFCA COACHES POLL</h1>
<h3>{{ states('sensor.college_football_week_number') }}</h3>
- type: custom:decluttering-card
template: ncaafranking_settings
variables:
- title: AFCA Coaches Poll
- entity: sensor.college_football_afca_coaches_poll
- attribute: entries
This is brilliant and yes I am going to use some of these great changes. Nicelly done!
I was going to pull the week out of the sensor.ncaaf_rank data and grab the shortHeadline section.
I know I should probably be asking the team-tracker card group this but figured someone here might have run into this and has an answer.
I know that I can call the API by conference, but can I pass that to the teamtracker card and use it as a filter?
I was thinking that I could pass the conference into the game_stats template like this:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: game_stats
variables:
- sport: NCAAF
- sport_path: football
- status: PRE
- conference: 4
and then filter it out:
{{{"type": "custom:teamtracker-card",
"entity": team, "conference_id":[[conference]],
"home_side": "right"}}},
but it shows some of the games from most conferences. Thanks if anyone has any ideas
Just adding a couple NCAA sensors for anyone who needs them - I could not seem to find them but maybe I just missed it.
I am still trying to create tabs for the conferences and filter games. I only want the conference games shown in Team Tracker and when I get a chance I will look at trying to see if I can shrink the size of the teamtracker-card.
As a side I wasnāt seeing some of the games in Team-tracker. Data was there but they werenāt showing up in cards. I went back to the sensor and wrapped league_id and Name in quotes. I seemed to get every game after that I was looking for.
Anyway here are the sensors for the Big 10, Big 12, SEC and ACC
## NCAA Teams
## Big 12 Conference
- platform: teamtracker
league_id: "NCAAF"
team_id: ARIZ
conference_id: "4"
name: "University of Arizona"
- platform: teamtracker
league_id: "NCAAF"
team_id: ASU
conference_id: "4"
name: "Arizona State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: BAY
conference_id: "4"
name: "Baylor University"
- platform: teamtracker
league_id: "NCAAF"
team_id: BYU
conference_id: "4"
name: "Brighan Young University"
- platform: teamtracker
league_id: "NCAAF"
team_id: UCF
conference_id: "4"
name: "University of Central Florida"
- platform: teamtracker
league_id: "NCAAF"
team_id: CIN
conference_id: "4"
name: "University of Cincinnati"
- platform: teamtracker
league_id: "NCAAF"
team_id: COLO
conference_id: "4"
name: "University of Colorado Boulder"
- platform: teamtracker
league_id: "NCAAF"
team_id: HOU
conference_id: "4"
name: "University of Houston"
- platform: teamtracker
league_id: "NCAAF"
team_id: ISU
conference_id: "4"
name: "Iowa State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: KU
conference_id: "4"
name: "University of Kansas"
- platform: teamtracker
league_id: "NCAAF"
team_id: KSU
conference_id: "4"
name: "Kansas State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: OKST
conference_id: "4"
name: "Oklahoma State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: TCU
conference_id: "4"
name: "Texas Christian University"
- platform: teamtracker
league_id: "NCAAF"
team_id: TTU
conference_id: "4"
name: "Texas Tech University"
- platform: teamtracker
league_id: "NCAAF"
team_id: UTAH
conference_id: "4"
name: "University of Utah"
- platform: teamtracker
league_id: "NCAAF"
team_id: WVU
conference_id: "4"
name: "West Virginia University"
##
## NCAA Teams
## SEC Conference
- platform: teamtracker
league_id: "NCAAF"
team_id: UGA
conference_id: "8"
name: "University of Georgia"
- platform: teamtracker
league_id: "NCAAF"
team_id: UK
conference_id: "8"
name: "University of Kentucky"
- platform: teamtracker
league_id: "NCAAF"
team_id: TENN
conference_id: "8"
name: "University of Tennessee"
- platform: teamtracker
league_id: "NCAAF"
team_id: ALA
conference_id: "8"
name: "University of Alabama"
- platform: teamtracker
league_id: "NCAAF"
team_id: ARK
conference_id: "8"
name: "University of Arkansas"
- platform: teamtracker
league_id: "NCAAF"
team_id: Aub
conference_id: "8"
name: "Auburn University"
- platform: teamtracker
league_id: "NCAAF"
team_id: FLA
conference_id: "8"
name: "University of Florida"
- platform: teamtracker
league_id: "NCAAF"
team_id: LSU
conference_id: "8"
name: "Louisiana State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: MISS
conference_id: "8"
name: "University of Mississippi"
- platform: teamtracker
league_id: "NCAAF"
team_id: MSST
conference_id: "8"
name: "Mississippi State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: MIZ
conference_id: "8"
name: "University of Missouri"
- platform: teamtracker
league_id: "NCAAF"
team_id: OKU
conference_id: "8"
name: "University of Oklahoma"
- platform: teamtracker
league_id: "NCAAF"
team_id: OU
conference_id: "8"
name: "University of South Carolina"
- platform: teamtracker
league_id: "NCAAF"
team_id: TEX
conference_id: "8"
name: "Univerisity of Texas at Austin"
- platform: teamtracker
league_id: "NCAAF"
team_id: TA&M
conference_id: "8"
name: "Texas A&M University"
- platform: teamtracker
league_id: "NCAAF"
team_id: VAN
conference_id: "8"
name: "Vanderbilt University"
##
## NCAA Teams
## Big 10
- platform: teamtracker
league_id: "NCAAF"
team_id: ILL
conference_id: "5"
name: "University of Illinois"
- platform: teamtracker
league_id: "NCAAF"
team_id: IU
conference_id: "5"
name: "Indiana University"
- platform: teamtracker
league_id: "NCAAF"
team_id: IOWA
conference_id: "5"
name: "University of Iowa"
- platform: teamtracker
league_id: "NCAAF"
team_id: MD
conference_id: "5"
name: "University of Maryland"
- platform: teamtracker
league_id: "NCAAF"
team_id: MSU
conference_id: "5"
name: "Michigan State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: MICH
conference_id: "5"
name: "University of Michigan"
- platform: teamtracker
league_id: "NCAAF"
team_id: MINN
conference_id: "5"
name: "University of Minnesota"
- platform: teamtracker
league_id: "NCAAF"
team_id: NEB
conference_id: "5"
name: "University of Nebraska"
- platform: teamtracker
league_id: "NCAAF"
team_id: NU
conference_id: "5"
name: "Northwestern University"
- platform: teamtracker
league_id: "NCAAF"
team_id: OSU
conference_id: "5"
name: "Ohio State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: ORE
conference_id: "5"
name: "University of Oregon"
- platform: teamtracker
league_id: "NCAAF"
team_id: PSU
conference_id: "5"
name: "Penn State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: PUR
conference_id: "5"
name: "Purdue University"
- platform: teamtracker
league_id: "NCAAF"
team_id: RUTG
conference_id: "5"
name: "Rutgers University"
- platform: teamtracker
league_id: "NCAAF"
team_id: UCLA
conference_id: "5"
name: "University of California Los Angeles"
- platform: teamtracker
league_id: "NCAAF"
team_id: USC
conference_id: "5"
name: "University of Southern California"
- platform: teamtracker
league_id: "NCAAF"
team_id: WASH
conference_id: "5"
name: "University of Washington"
- platform: teamtracker
league_id: "NCAAF"
team_id: WIS
conference_id: "5"
name: "University of Wisconsin"
##
## NCAA Teams
## ACC
- platform: teamtracker
league_id: "NCAAF"
team_id: BC
conference_id: "1"
name: "Boston College"
- platform: teamtracker
league_id: "NCAAF"
team_id: CAL
conference_id: "1"
name: "University of California Berkeley"
- platform: teamtracker
league_id: "NCAAF"
team_id: CLEM
conference_id: "1"
name: "Clemson University"
- platform: teamtracker
league_id: "NCAAF"
team_id: DUKE
conference_id: "1"
name: "Duke University"
- platform: teamtracker
league_id: "NCAAF"
team_id: FSU
conference_id: "1"
name: "Florida State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: GT
conference_id: "1"
name: "Georgia Institute of Technology"
- platform: teamtracker
league_id: "NCAAF"
team_id: LOU
conference_id: "1"
name: "University of Louisville"
- platform: teamtracker
league_id: "NCAAF"
team_id: MIA
conference_id: "1"
name: "University of Miami"
- platform: teamtracker
league_id: "NCAAF"
team_id: UNC
conference_id: "1"
name: "University of North Carolina"
- platform: teamtracker
league_id: "NCAAF"
team_id: NCSU
conference_id: "1"
name: "North Carolina State University"
- platform: teamtracker
league_id: "NCAAF"
team_id: NDU
conference_id: "1"
name: "University of Notre Dame"
- platform: teamtracker
league_id: "NCAAF"
team_id: PITT
conference_id: "1"
name: "University of Pittsburgh"
- platform: teamtracker
league_id: "NCAAF"
team_id: SMU
conference_id: "1"
name: "Southern Methodist University"
- platform: teamtracker
league_id: "NCAAF"
team_id: SYR
conference_id: "1"
name: "Syracuse"
- platform: teamtracker
league_id: "NCAAF"
team_id: UVA
conference_id: "1"
name: "University of Virginia"
- platform: teamtracker
league_id: "NCAAF"
team_id: VT
conference_id: "1"
name: "Virginia Polytechnic"
- platform: teamtracker
league_id: "NCAAF"
team_id: WAKE
conference_id: "1"
name: "Wake Forest University"
##
## NCAA Teams
## Moutain West
##
- platform: teamtracker
league_id: "NCAAF"
team_id: BOIS
conference_id: "17"
name: Boise State Broncos
- platform: teamtracker
league_id: "NCAAF"
team_id: WYO
conference_id: "17"
name: Wyoming Cowboys
- platform: teamtracker
league_id: "NCAAF"
team_id: USU
conference_id: "17"
name: Utah State Aggies
- platform: teamtracker
league_id: "NCAAF"
team_id: UNLV
conference_id: "17"
name: UNLV Rebels
- platform: teamtracker
league_id: "NCAAF"
team_id: SJSU
conference_id: "17"
name: San JosƩ State Spartans
- platform: teamtracker
league_id: "NCAAF"
team_id: SDSU
conference_id: "17"
name: San Diego State Aztecs
- platform: teamtracker
league_id: "NCAAF"
team_id: UNM
conference_id: "17"
name: New Mexico Lobos
- platform: teamtracker
league_id: "NCAAF"
team_id: NEV
conference_id: "17"
name: Nevada Wolf Pack
- platform: teamtracker
league_id: "NCAAF"
team_id: HAW
conference_id: "17"
name: Hawai'i Rainbow Warriors
- platform: teamtracker
league_id: "NCAAF"
team_id: FRES
conference_id: "17"
name: Fresno State Bulldogs
- platform: teamtracker
league_id: "NCAAF"
team_id: CSU
conference_id: "17"
name: Colorado State Rams
- platform: teamtracker
league_id: "NCAAF"
team_id: AFA
conference_id: "17"
name: Air Force Falcons
##
## NCAA Teams
## FBS Independent
##
- platform: teamtracker
league_id: "NCAAF"
team_id: CONN
conference_id: "18"
name: UConn Huskies
- platform: teamtracker
league_id: "NCAAF"
team_id: ND
conference_id: "18"
name: Notre Dame Fighting Irish
- platform: teamtracker
league_id: "NCAAF"
team_id: MASS
conference_id: "18"
name: Massachusetts Minutemen
##
## NCAA Teams
## American
##
- platform: teamtracker
league_id: "NCAAF"
team_id: CLT
conference_id: "151"
name: Charlotte 49ers
- platform: teamtracker
league_id: "NCAAF"
team_id: ARMY
conference_id: "151"
name: Army Black Knights
- platform: teamtracker
league_id: "NCAAF"
team_id: UTSA
conference_id: "151"
name: UTSA Roadrunners
- platform: teamtracker
league_id: "NCAAF"
team_id: UAB
conference_id: "151"
name: UAB Blazers
- platform: teamtracker
league_id: "NCAAF"
team_id: TLSA
conference_id: "151"
name: Tulsa Golden Hurricane
- platform: teamtracker
league_id: "NCAAF"
team_id: TULN
conference_id: "151"
name: Tulane Green Wave
- platform: teamtracker
league_id: "NCAAF"
team_id: TEM
conference_id: "151"
name: Temple Owls
- platform: teamtracker
league_id: "NCAAF"
team_id: USF
conference_id: "151"
name: South Florida Bulls
- platform: teamtracker
league_id: "NCAAF"
team_id: RICE
conference_id: "151"
name: Rice Owls
- platform: teamtracker
league_id: "NCAAF"
team_id: UNT
conference_id: "151"
name: North Texas Mean Green
- platform: teamtracker
league_id: "NCAAF"
team_id: NAVY
conference_id: "151"
name: Navy Midshipmen
- platform: teamtracker
league_id: "NCAAF"
team_id: MEM
conference_id: "151"
name: Memphis Tigers
- platform: teamtracker
league_id: "NCAAF"
team_id: FAU
conference_id: "151"
name: Florida Atlantic Owls
- platform: teamtracker
league_id: "NCAAF"
team_id: ECU
conference_id: "151"
name: East Carolina Pirates
## NCAA Teams
## Conference USA
- platform: teamtracker
league_id: "NCAAF"
team_id: WKU
conference_id: "12"
name: Western Kentucky Hilltoppers
- platform: teamtracker
league_id: "NCAAF"
team_id: UTEP
conference_id: "12"
name: UTEP Miners
- platform: teamtracker
league_id: "NCAAF"
team_id: SHSU
conference_id: "12"
name: Sam Houston Bearkats
- platform: teamtracker
league_id: "NCAAF"
team_id: NMSU
conference_id: "12"
name: New Mexico State Aggies
- platform: teamtracker
league_id: "NCAAF"
team_id: MTSU
conference_id: "12"
name: Middle Tennessee Blue Raiders
- platform: teamtracker
league_id: "NCAAF"
team_id: LT
conference_id: "12"
name: Louisiana Tech Bulldogs
- platform: teamtracker
league_id: "NCAAF"
team_id: LIB
conference_id: "12"
name: Liberty Flames
- platform: teamtracker
league_id: "NCAAF"
team_id: KENN
conference_id: "12"
name: Kennesaw State Owls
- platform: teamtracker
league_id: "NCAAF"
team_id: KENN
conference_id: "12"
name: Kennesaw State Owls
- platform: teamtracker
league_id: "NCAAF"
team_id: JVST
conference_id: "12"
name: Jacksonville State Gamecocks
- platform: teamtracker
league_id: "NCAAF"
team_id: FIU
conference_id: "12"
name: Florida International Panthers
## NCAA Teams
## Mid American
- platform: teamtracker
league_id: "NCAAF"
team_id: CMU
conference_id: "15"
name: Central Michigan Chippewas
- platform: teamtracker
league_id: "NCAAF"
team_id: BUFF
conference_id: "15"
name: Buffalo Bulls
- platform: teamtracker
league_id: "NCAAF"
team_id: BGSU
conference_id: "15"
name: Bowling Green Falcons
- platform: teamtracker
league_id: "NCAAF"
team_id: BALL
conference_id: "15"
name: Ball State Cardinals
- platform: teamtracker
league_id: "NCAAF"
team_id: WMU
conference_id: "15"
name: Western Michigan Broncos
- platform: teamtracker
league_id: "NCAAF"
team_id: TOL
conference_id: "15"
name: Toledo Rockets
- platform: teamtracker
league_id: "NCAAF"
team_id: OHIO
conference_id: "15"
name: Ohio Bobcats
- platform: teamtracker
league_id: "NCAAF"
team_id: NIU
conference_id: "15"
name: Northern Illinois Huskies
- platform: teamtracker
league_id: "NCAAF"
team_id: M-OH
conference_id: "15"
name: Miami (OH) RedHawks
- platform: teamtracker
league_id: "NCAAF"
team_id: KENT
conference_id: "15"
name: Kent State Golden Flashes
- platform: teamtracker
league_id: "NCAAF"
team_id: AKR
conference_id: "15"
name: Akron Zips
- platform: teamtracker
league_id: "NCAAF"
team_id: EMU
conference_id: "15"
name: Eastern Michigan Eagles
## NCAA Teams
## Pac-12
- platform: teamtracker
league_id: "NCAAF"
team_id: WSU
conference_id: "9"
name: Washington State Cougars
- platform: teamtracker
league_id: "NCAAF"
team_id: ORST
conference_id: "9"
name: Oregon State Beavers
## NCAA Teams
## Sun Belt
- platform: teamtracker
league_id: "NCAAF"
team_id: ARST
conference_id: "37"
name: Arkansas State Red Wolves
- platform: teamtracker
league_id: "NCAAF"
team_id: ULM
conference_id: "37"
name: UL Monroe Warhawks
- platform: teamtracker
league_id: "NCAAF"
team_id: TROY
conference_id: "37"
name: Troy Trojans
- platform: teamtracker
league_id: "NCAAF"
team_id: TXST
conference_id: "37"
name: Texas State Bobcats
- platform: teamtracker
league_id: "NCAAF"
team_id: USM
conference_id: "37"
name: Southern Miss Golden Eagles
- platform: teamtracker
league_id: "NCAAF"
team_id: USA
conference_id: "37"
name: South Alabama Jaguars
- platform: teamtracker
league_id: "NCAAF"
team_id: APP
conference_id: "37"
name: Appalachian State Mountaineers
- platform: teamtracker
league_id: "NCAAF"
team_id: ODU
conference_id: "37"
name: Old Dominion Monarchs
- platform: teamtracker
league_id: "NCAAF"
team_id: MRSH
conference_id: "37"
name: Marshall Thundering Herd
- platform: teamtracker
league_id: "NCAAF"
team_id: UL
conference_id: "37"
name: Louisiana Ragin' Cajuns
- platform: teamtracker
league_id: "NCAAF"
team_id: JMU
conference_id: "37"
name: James Madison Dukes
- platform: teamtracker
league_id: "NCAAF"
team_id: GAST
conference_id: "37"
name: Georgia State Panthers
- platform: teamtracker
league_id: "NCAAF"
team_id: GASO
conference_id: "37"
name: Georgia Southern Eagles
- platform: teamtracker
league_id: "NCAAF"
team_id: CCU
conference_id: "37"
name: Coastal Carolina Chanticleers
UPDATE
I grabbed what @ehcah had put together for the other conferences and put them into my format and put quotes around - big thanks to ehcah! I will go back and clean up as needed.
Iāll share what Iāve created, but again, canāt confirm they are the most efficient.
Sensor.yaml
##
## College Football Standings
##
- platform: rest
scan_interval: 36000
name: College Football Standings
unique_id: sensor.college_football_standings
resource: https://site.web.api.espn.com/apis/v2/sports/football/college-football/standings
value_template: "{{ now() }}"
json_attributes:
- children
##
## College Football Rankings
##
- platform: rest
scan_interval: 36000
name: College Football Top25 Rankings
unique_id: sensor.college_football_top25_rankings
resource: https://site.api.espn.com/apis/site/v2/sports/football/college-football/rankings
value_template: "{{ now() }}"
json_attributes:
- rankings
- ranks
- current
Template.yaml
##
## College Football Rankings
##
- name: AFCA_Coaches_Poll
unique_id: sensor.college_football_afca_coaches_poll
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_top25_rankings','rankings')[1]['ranks'] }}"
- name: AP_Poll
unique_id: sensor.college_football_ap_poll
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_top25_rankings','rankings')[0]['ranks'] }}"
##
## College Football Standings
##
- name: american_athletic_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[0]['standings']['entries'] }}"
- name: atlantic_coast_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[1]['standings']['entries'] }}"
- name: big_12_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[2]['standings']['entries'] }}"
- name: big_ten_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[3]['standings']['entries'] }}"
- name: conference_usa
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[4]['standings']['entries'] }}"
- name: fbs_independents
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[5]['standings']['entries'] }}"
- name: mid_american_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[6]['standings']['entries'] }}"
- name: mountain_west_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[7]['standings']['entries'] }}"
- name: pac12_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[8]['standings']['entries'] }}"
- name: southeastern_conference
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[9]['standings']['entries'] }}"
- name: sun_belt_conference_east
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[10]['children'][0]['standings']['entries'] }}"
- name: sun_belt_conference_west
state: "{{ now() }}"
attributes:
entries: "{{ state_attr('sensor.college_football_standings','children')[10]['children'][1]['standings']['entries'] }}"
Updated sensor NCAAF sensors for 2024-25 season.
- platform: teamtracker
league_id: NCAAF
team_id: CLEM
conference_id: 1
name: Clemson Tigers
- platform: teamtracker
league_id: NCAAF
team_id: CAL
conference_id: 1
name: California Golden Bears
- platform: teamtracker
league_id: NCAAF
team_id: CAL
conference_id: 1
name: California Golden Bears
- platform: teamtracker
league_id: NCAAF
team_id: BC
conference_id: 1
name: Boston College Eagles
- platform: teamtracker
league_id: NCAAF
team_id: WAKE
conference_id: 1
name: Wake Forest Demon Deacons
- platform: teamtracker
league_id: NCAAF
team_id: VT
conference_id: 1
name: Virginia Tech Hokies
- platform: teamtracker
league_id: NCAAF
team_id: UVA
conference_id: 1
name: Virginia Cavaliers
- platform: teamtracker
league_id: NCAAF
team_id: SYR
conference_id: 1
name: Syracuse Orange
- platform: teamtracker
league_id: NCAAF
team_id: STAN
conference_id: 1
name: Stanford Cardinal
- platform: teamtracker
league_id: NCAAF
team_id: STAN
conference_id: 1
name: Stanford Cardinal
- platform: teamtracker
league_id: NCAAF
team_id: SMU
conference_id: 1
name: SMU Mustangs
- platform: teamtracker
league_id: NCAAF
team_id: SMU
conference_id: 1
name: SMU Mustangs
- platform: teamtracker
league_id: NCAAF
team_id: PITT
conference_id: 1
name: Pittsburgh Panthers
- platform: teamtracker
league_id: NCAAF
team_id: UNC
conference_id: 1
name: North Carolina Tar Heels
- platform: teamtracker
league_id: NCAAF
team_id: NCSU
conference_id: 1
name: NC State Wolfpack
- platform: teamtracker
league_id: NCAAF
team_id: MIA
conference_id: 1
name: Miami Hurricanes
- platform: teamtracker
league_id: NCAAF
team_id: LOU
conference_id: 1
name: Louisville Cardinals
- platform: teamtracker
league_id: NCAAF
team_id: GT
conference_id: 1
name: Georgia Tech Yellow Jackets
- platform: teamtracker
league_id: NCAAF
team_id: FSU
conference_id: 1
name: Florida State Seminoles
- platform: teamtracker
league_id: NCAAF
team_id: DUKE
conference_id: 1
name: Duke Blue Devils
- platform: teamtracker
league_id: NCAAF
team_id: CIN
conference_id: 4
name: Cincinnati Bearcats
- platform: teamtracker
league_id: NCAAF
team_id: BYU
conference_id: 4
name: BYU Cougars
- platform: teamtracker
league_id: NCAAF
team_id: BAY
conference_id: 4
name: Baylor Bears
- platform: teamtracker
league_id: NCAAF
team_id: ARIZ
conference_id: 4
name: Arizona Wildcats
- platform: teamtracker
league_id: NCAAF
team_id: ARIZ
conference_id: 4
name: Arizona Wildcats
- platform: teamtracker
league_id: NCAAF
team_id: ASU
conference_id: 4
name: Arizona State Sun Devils
- platform: teamtracker
league_id: NCAAF
team_id: WVU
conference_id: 4
name: West Virginia Mountaineers
- platform: teamtracker
league_id: NCAAF
team_id: UTAH
conference_id: 4
name: Utah Utes
- platform: teamtracker
league_id: NCAAF
team_id: UTAH
conference_id: 4
name: Utah Utes
- platform: teamtracker
league_id: NCAAF
team_id: ASU
conference_id: 4
name: Arizona State Sun Devils
- platform: teamtracker
league_id: NCAAF
team_id: UCF
conference_id: 4
name: UCF Knights
- platform: teamtracker
league_id: NCAAF
team_id: TTU
conference_id: 4
name: Texas Tech Red Raiders
- platform: teamtracker
league_id: NCAAF
team_id: TCU
conference_id: 4
name: TCU Horned Frogs
- platform: teamtracker
league_id: NCAAF
team_id: OKST
conference_id: 4
name: Oklahoma State Cowboys
- platform: teamtracker
league_id: NCAAF
team_id: KSU
conference_id: 4
name: Kansas State Wildcats
- platform: teamtracker
league_id: NCAAF
team_id: KU
conference_id: 4
name: Kansas Jayhawks
- platform: teamtracker
league_id: NCAAF
team_id: ISU
conference_id: 4
name: Iowa State Cyclones
- platform: teamtracker
league_id: NCAAF
team_id: HOU
conference_id: 4
name: Houston Cougars
- platform: teamtracker
league_id: NCAAF
team_id: COLO
conference_id: 4
name: Colorado Buffaloes
- platform: teamtracker
league_id: NCAAF
team_id: COLO
conference_id: 4
name: Colorado Buffaloes
- platform: teamtracker
league_id: NCAAF
team_id: WIS
conference_id: 5
name: Wisconsin Badgers
- platform: teamtracker
league_id: NCAAF
team_id: WASH
conference_id: 5
name: Washington Huskies
- platform: teamtracker
league_id: NCAAF
team_id: WASH
conference_id: 5
name: Washington Huskies
- platform: teamtracker
league_id: NCAAF
team_id: USC
conference_id: 5
name: USC Trojans
- platform: teamtracker
league_id: NCAAF
team_id: USC
conference_id: 5
name: USC Trojans
- platform: teamtracker
league_id: NCAAF
team_id: UCLA
conference_id: 5
name: UCLA Bruins
- platform: teamtracker
league_id: NCAAF
team_id: UCLA
conference_id: 5
name: UCLA Bruins
- platform: teamtracker
league_id: NCAAF
team_id: RUTG
conference_id: 5
name: Rutgers Scarlet Knights
- platform: teamtracker
league_id: NCAAF
team_id: PUR
conference_id: 5
name: Purdue Boilermakers
- platform: teamtracker
league_id: NCAAF
team_id: PSU
conference_id: 5
name: Penn State Nittany Lions
- platform: teamtracker
league_id: NCAAF
team_id: ORE
conference_id: 5
name: Oregon Ducks
- platform: teamtracker
league_id: NCAAF
team_id: ORE
conference_id: 5
name: Oregon Ducks
- platform: teamtracker
league_id: NCAAF
team_id: OSU
conference_id: 5
name: Ohio State Buckeyes
- platform: teamtracker
league_id: NCAAF
team_id: NU
conference_id: 5
name: Northwestern Wildcats
- platform: teamtracker
league_id: NCAAF
team_id: NEB
conference_id: 5
name: Nebraska Cornhuskers
- platform: teamtracker
league_id: NCAAF
team_id: MINN
conference_id: 5
name: Minnesota Golden Gophers
- platform: teamtracker
league_id: NCAAF
team_id: MICH
conference_id: 5
name: Michigan Wolverines
- platform: teamtracker
league_id: NCAAF
team_id: MSU
conference_id: 5
name: Michigan State Spartans
- platform: teamtracker
league_id: NCAAF
team_id: MD
conference_id: 5
name: Maryland Terrapins
- platform: teamtracker
league_id: NCAAF
team_id: IOWA
conference_id: 5
name: Iowa Hawkeyes
- platform: teamtracker
league_id: NCAAF
team_id: IU
conference_id: 5
name: Indiana Hoosiers
- platform: teamtracker
league_id: NCAAF
team_id: ILL
conference_id: 5
name: Illinois Fighting Illini
- platform: teamtracker
league_id: NCAAF
team_id: AUB
conference_id: 8
name: Auburn Tigers
- platform: teamtracker
league_id: NCAAF
team_id: ARK
conference_id: 8
name: Arkansas Razorbacks
- platform: teamtracker
league_id: NCAAF
team_id: VAN
conference_id: 8
name: Vanderbilt Commodores
- platform: teamtracker
league_id: NCAAF
team_id: TEX
conference_id: 8
name: Texas Longhorns
- platform: teamtracker
league_id: NCAAF
team_id: TEX
conference_id: 8
name: Texas Longhorns
- platform: teamtracker
league_id: NCAAF
team_id: TA&M
conference_id: 8
name: Texas A&M Aggies
- platform: teamtracker
league_id: NCAAF
team_id: TENN
conference_id: 8
name: Tennessee Volunteers
- platform: teamtracker
league_id: NCAAF
team_id: SC
conference_id: 8
name: South Carolina Gamecocks
- platform: teamtracker
league_id: NCAAF
team_id: MISS
conference_id: 8
name: Ole Miss Rebels
- platform: teamtracker
league_id: NCAAF
team_id: OU
conference_id: 8
name: Oklahoma Sooners
- platform: teamtracker
league_id: NCAAF
team_id: OU
conference_id: 8
name: Oklahoma Sooners
- platform: teamtracker
league_id: NCAAF
team_id: ALA
conference_id: 8
name: Alabama Crimson Tide
- platform: teamtracker
league_id: NCAAF
team_id: MIZ
conference_id: 8
name: Missouri Tigers
- platform: teamtracker
league_id: NCAAF
team_id: MSST
conference_id: 8
name: Mississippi State Bulldogs
- platform: teamtracker
league_id: NCAAF
team_id: LSU
conference_id: 8
name: LSU Tigers
- platform: teamtracker
league_id: NCAAF
team_id: UK
conference_id: 8
name: Kentucky Wildcats
- platform: teamtracker
league_id: NCAAF
team_id: UGA
conference_id: 8
name: Georgia Bulldogs
- platform: teamtracker
league_id: NCAAF
team_id: FLA
conference_id: 8
name: Florida Gators
- platform: teamtracker
league_id: NCAAF
team_id: WSU
conference_id: 9
name: Washington State Cougars
- platform: teamtracker
league_id: NCAAF
team_id: ORST
conference_id: 9
name: Oregon State Beavers
- platform: teamtracker
league_id: NCAAF
team_id: WKU
conference_id: 12
name: Western Kentucky Hilltoppers
- platform: teamtracker
league_id: NCAAF
team_id: UTEP
conference_id: 12
name: UTEP Miners
- platform: teamtracker
league_id: NCAAF
team_id: SHSU
conference_id: 12
name: Sam Houston Bearkats
- platform: teamtracker
league_id: NCAAF
team_id: NMSU
conference_id: 12
name: New Mexico State Aggies
- platform: teamtracker
league_id: NCAAF
team_id: MTSU
conference_id: 12
name: Middle Tennessee Blue Raiders
- platform: teamtracker
league_id: NCAAF
team_id: LT
conference_id: 12
name: Louisiana Tech Bulldogs
- platform: teamtracker
league_id: NCAAF
team_id: LIB
conference_id: 12
name: Liberty Flames
- platform: teamtracker
league_id: NCAAF
team_id: KENN
conference_id: 12
name: Kennesaw State Owls
- platform: teamtracker
league_id: NCAAF
team_id: KENN
conference_id: 12
name: Kennesaw State Owls
- platform: teamtracker
league_id: NCAAF
team_id: JVST
conference_id: 12
name: Jacksonville State Gamecocks
- platform: teamtracker
league_id: NCAAF
team_id: FIU
conference_id: 12
name: Florida International Panthers
- platform: teamtracker
league_id: NCAAF
team_id: CMU
conference_id: 15
name: Central Michigan Chippewas
- platform: teamtracker
league_id: NCAAF
team_id: BUFF
conference_id: 15
name: Buffalo Bulls
- platform: teamtracker
league_id: NCAAF
team_id: BGSU
conference_id: 15
name: Bowling Green Falcons
- platform: teamtracker
league_id: NCAAF
team_id: BALL
conference_id: 15
name: Ball State Cardinals
- platform: teamtracker
league_id: NCAAF
team_id: WMU
conference_id: 15
name: Western Michigan Broncos
- platform: teamtracker
league_id: NCAAF
team_id: TOL
conference_id: 15
name: Toledo Rockets
- platform: teamtracker
league_id: NCAAF
team_id: OHIO
conference_id: 15
name: Ohio Bobcats
- platform: teamtracker
league_id: NCAAF
team_id: NIU
conference_id: 15
name: Northern Illinois Huskies
- platform: teamtracker
league_id: NCAAF
team_id: M-OH
conference_id: 15
name: Miami (OH) RedHawks
- platform: teamtracker
league_id: NCAAF
team_id: KENT
conference_id: 15
name: Kent State Golden Flashes
- platform: teamtracker
league_id: NCAAF
team_id: AKR
conference_id: 15
name: Akron Zips
- platform: teamtracker
league_id: NCAAF
team_id: EMU
conference_id: 15
name: Eastern Michigan Eagles
- platform: teamtracker
league_id: NCAAF
team_id: BOIS
conference_id: 17
name: Boise State Broncos
- platform: teamtracker
league_id: NCAAF
team_id: WYO
conference_id: 17
name: Wyoming Cowboys
- platform: teamtracker
league_id: NCAAF
team_id: USU
conference_id: 17
name: Utah State Aggies
- platform: teamtracker
league_id: NCAAF
team_id: UNLV
conference_id: 17
name: UNLV Rebels
- platform: teamtracker
league_id: NCAAF
team_id: SJSU
conference_id: 17
name: San JosƩ State Spartans
- platform: teamtracker
league_id: NCAAF
team_id: SDSU
conference_id: 17
name: San Diego State Aztecs
- platform: teamtracker
league_id: NCAAF
team_id: UNM
conference_id: 17
name: New Mexico Lobos
- platform: teamtracker
league_id: NCAAF
team_id: NEV
conference_id: 17
name: Nevada Wolf Pack
- platform: teamtracker
league_id: NCAAF
team_id: HAW
conference_id: 17
name: Hawai'i Rainbow Warriors
- platform: teamtracker
league_id: NCAAF
team_id: FRES
conference_id: 17
name: Fresno State Bulldogs
- platform: teamtracker
league_id: NCAAF
team_id: CSU
conference_id: 17
name: Colorado State Rams
- platform: teamtracker
league_id: NCAAF
team_id: AFA
conference_id: 17
name: Air Force Falcons
- platform: teamtracker
league_id: NCAAF
team_id: CONN
conference_id: 18
name: UConn Huskies
- platform: teamtracker
league_id: NCAAF
team_id: ND
conference_id: 18
name: Notre Dame Fighting Irish
- platform: teamtracker
league_id: NCAAF
team_id: MASS
conference_id: 18
name: Massachusetts Minutemen
- platform: teamtracker
league_id: NCAAF
team_id: ARST
conference_id: 37
name: Arkansas State Red Wolves
- platform: teamtracker
league_id: NCAAF
team_id: ULM
conference_id: 37
name: UL Monroe Warhawks
- platform: teamtracker
league_id: NCAAF
team_id: TROY
conference_id: 37
name: Troy Trojans
- platform: teamtracker
league_id: NCAAF
team_id: TXST
conference_id: 37
name: Texas State Bobcats
- platform: teamtracker
league_id: NCAAF
team_id: USM
conference_id: 37
name: Southern Miss Golden Eagles
- platform: teamtracker
league_id: NCAAF
team_id: USA
conference_id: 37
name: South Alabama Jaguars
- platform: teamtracker
league_id: NCAAF
team_id: APP
conference_id: 37
name: Appalachian State Mountaineers
- platform: teamtracker
league_id: NCAAF
team_id: ODU
conference_id: 37
name: Old Dominion Monarchs
- platform: teamtracker
league_id: NCAAF
team_id: MRSH
conference_id: 37
name: Marshall Thundering Herd
- platform: teamtracker
league_id: NCAAF
team_id: UL
conference_id: 37
name: Louisiana Ragin' Cajuns
- platform: teamtracker
league_id: NCAAF
team_id: JMU
conference_id: 37
name: James Madison Dukes
- platform: teamtracker
league_id: NCAAF
team_id: GAST
conference_id: 37
name: Georgia State Panthers
- platform: teamtracker
league_id: NCAAF
team_id: GASO
conference_id: 37
name: Georgia Southern Eagles
- platform: teamtracker
league_id: NCAAF
team_id: CCU
conference_id: 37
name: Coastal Carolina Chanticleers
- platform: teamtracker
league_id: NCAAF
team_id: CLT
conference_id: 151
name: Charlotte 49ers
- platform: teamtracker
league_id: NCAAF
team_id: ARMY
conference_id: 151
name: Army Black Knights
- platform: teamtracker
league_id: NCAAF
team_id: ARMY
conference_id: 151
name: Army Black Knights
- platform: teamtracker
league_id: NCAAF
team_id: UTSA
conference_id: 151
name: UTSA Roadrunners
- platform: teamtracker
league_id: NCAAF
team_id: UAB
conference_id: 151
name: UAB Blazers
- platform: teamtracker
league_id: NCAAF
team_id: TLSA
conference_id: 151
name: Tulsa Golden Hurricane
- platform: teamtracker
league_id: NCAAF
team_id: TULN
conference_id: 151
name: Tulane Green Wave
- platform: teamtracker
league_id: NCAAF
team_id: TEM
conference_id: 151
name: Temple Owls
- platform: teamtracker
league_id: NCAAF
team_id: USF
conference_id: 151
name: South Florida Bulls
- platform: teamtracker
league_id: NCAAF
team_id: RICE
conference_id: 151
name: Rice Owls
- platform: teamtracker
league_id: NCAAF
team_id: UNT
conference_id: 151
name: North Texas Mean Green
- platform: teamtracker
league_id: NCAAF
team_id: NAVY
conference_id: 151
name: Navy Midshipmen
- platform: teamtracker
league_id: NCAAF
team_id: MEM
conference_id: 151
name: Memphis Tigers
- platform: teamtracker
league_id: NCAAF
team_id: FAU
conference_id: 151
name: Florida Atlantic Owls
- platform: teamtracker
league_id: NCAAF
team_id: ECU
conference_id: 151
name: East Carolina Pirates