Championship Prediction (Teams)
Constructors championship prediction (P1 and list) (Replay Mode or F1TV Auth live timing).
Standard entity ID sensor.f1_championship_prediction_teams
This entity stays registered in Home Assistant. It updates in Replay Mode and can update during live sessions when F1TV Auth is paired with a valid token and live prediction data is available.
Predictions are shown only for an identified Race or Sprint. Practice, qualifying, Sprint Qualifying, Sprint Shootout and testing do not publish predictions. If session metadata is missing, the value remains unknown until both the session and a fresh prediction are received. Earlier predictions are not reused after a session change or reconnection.
Predicted Constructors Championship winner and points table.
State
- Predicted P1 team name, or
unknownwhen not available.
Example
Red Bull Racing
Attributes
| Attribute | Type | Description |
|---|---|---|
| predicted_team_p1 | object | The team currently predicted to lead the constructors' championship |
| teams | object | Map of all teams keyed by team key |
| last_update | string | ISO-8601 timestamp of the last prediction update |
| session_key | string or null | Session identity supplied by timing metadata |
| session_type | string or null | race, sprint, other, or null when unknown |
| prediction_status | string | waiting_for_session, waiting_for_prediction, not_applicable, or ready; separate from authentication and source availability |
predicted_team_p1 object
| Field | Type | Description |
|---|---|---|
| team_key | string | Team identifier |
| team_name | string | Team display name |
| points | number | Predicted final points |
| entry | object | Full entry data from the feed |
teams entries (keyed by team key)
| Field | Type | Description |
|---|---|---|
| TeamKey | string | Team identifier |
| TeamName | string | Team display name |
| CurrentPosition | number | Current championship position |
| PredictedPosition | number | Predicted final position |
| CurrentPoints | number | Current points total |
| PredictedPoints | number | Predicted final points |
Examples
JSON Structure Example
{
"predicted_team_p1": {
"team_key": "red_bull",
"team_name": "Red Bull Racing",
"points": 850,
"entry": {
"TeamKey": "red_bull",
"TeamName": "Red Bull Racing",
"CurrentPosition": 1,
"PredictedPosition": 1,
"CurrentPoints": 650,
"PredictedPoints": 850
}
},
"teams": {
"red_bull": {
"TeamKey": "red_bull",
"TeamName": "Red Bull Racing",
"CurrentPosition": 1,
"PredictedPosition": 1,
"CurrentPoints": 650,
"PredictedPoints": 850
},
"ferrari": {
"TeamKey": "ferrari",
"TeamName": "Ferrari",
"CurrentPosition": 2,
"PredictedPosition": 2,
"CurrentPoints": 520,
"PredictedPoints": 700
},
"mclaren": {
"TeamKey": "mclaren",
"TeamName": "McLaren",
"CurrentPosition": 3,
"PredictedPosition": 3,
"CurrentPoints": 480,
"PredictedPoints": 650
}
},
"last_update": "2025-06-15T14:32:45Z"
}
Jinja2 Template Examples
Get predicted constructors champion:
{% set p1 = state_attr('sensor.f1_championship_prediction_teams', 'predicted_team_p1') or {} %}
{% if p1 %}
Predicted constructors champion: {{ p1.team_name }}
{% endif %}
Compare two teams:
{% set teams = state_attr('sensor.f1_championship_prediction_teams', 'teams') or {} %}
{% set rb = teams.get('red_bull') %}
{% set ferrari = teams.get('ferrari') %}
{% if rb and ferrari %}
Gap: {{ rb.PredictedPoints - ferrari.PredictedPoints }} points
{% endif %}
List teams by predicted finish:
{% set teams = state_attr('sensor.f1_championship_prediction_teams', 'teams') or {} %}
{% for key, t in teams.items() | sort(attribute='1.PredictedPosition') %}
P{{ t.PredictedPosition }}: {{ t.TeamName }} ({{ t.PredictedPoints }} pts)
{% endfor %}
Show teams predicted to change position:
{% set teams = state_attr('sensor.f1_championship_prediction_teams', 'teams') or {} %}
{% for key, t in teams.items() if t.PredictedPosition != t.CurrentPosition %}
{{ t.TeamName }}: P{{ t.CurrentPosition }} -> P{{ t.PredictedPosition }}
{% endfor %}