So the first CFP was posted yesterday. If you are using my Top 25 Code you probably saw the update.
Here are the rough matchups and playoff data: The top four conference champions in the final rankings will receive a bye. First-round games will be played on campus sites with No. 5 hosting No. 12, No. 6 facing No. 11, No. 7 meeting No. 10 and No. 8 squaring off with No. 9.
Winners of those games will advance to the quarterfinals at the Fiesta, Sugar, Peach and Rose bowls. Those games will be played either Dec. 31 or Jan. 1. The Orange Bowl and Cotton Bowl will host the semifinals on Jan. 9 and Jan. 10, respectively.
The championship game will be played on Jan. 20 in Atlanta at Mercedes-Benz Stadium.
For fun I applied what I did in the Soccer code to CFP.
- Variables added for Bye and teams 5-12. Colors matchup to who would play each other if it ended today. I believe that there will be 5 CFP’s.
- If the variable isn’t added or has a 0 nothing is applied.
Here is a quick snapshot and yes I will fix the color or @ehcah/anyone else which are more adept in that than I am. I’ll throw the code below as well.
Here are the changes to the Top 25 Decluttering Card
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:nth-child([[bye]]): 'border-bottom: 2px solid crimson!important;'
tbody tr:nth-child([[team5]]): 'background-color: dodgerblue; color: white;'
tbody tr:nth-child([[team6]]): 'background-color: navy; color: white;'
tbody tr:nth-child([[team7]]): 'background-color: #43C6DB; color: white;'
tbody tr:nth-child([[team8]]): 'background-color: #357EC7; color: white;'
tbody tr:nth-child([[team9]]): 'background-color: #357EC7; color: white;'
tbody tr:nth-child([[team10]]): 'background-color: #43C6DB; color: white;'
tbody tr:nth-child([[team11]]): 'background-color: navy; color: white;'
tbody tr:nth-child([[team12]]): 'background-color: dodgerblue; color: white;'
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;
}
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
Here is what the card call looks like:
- 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'] }} {{
state_attr('sensor.ncaaf_rank',
'rankings')[0]['shortHeadline'] }}-
{{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: ''
- entity: sensor.ncaaf_poll_ap_top_25_all
- attribute: ranks
- bye: 4
- team5: 5
- team6: 6
- team7: 7
- team8: 8
- team9: 9
- team10: 10
- team11: 11
- team12: 12