Championship Prediction (Drivers)
Drivers championship prediction (P1 and list) (Replay Mode or F1TV Auth live timing).
Standard entity ID sensor.f1_championship_prediction_drivers
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 Drivers Championship winner and points table.
State
- Predicted P1 driver TLA, or
unknownwhen not available.
Example
VER
Attributes
| Attribute | Type | Description |
|---|---|---|
| predicted_driver_p1 | object | The driver currently predicted to lead the championship |
| drivers | object | Map of all drivers keyed by racing number |
| 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_driver_p1 object
| Field | Type | Description |
|---|---|---|
| racing_number | string | Car number |
| tla | string | Three-letter abbreviation |
| points | number | Predicted final points |
| entry | object | Full entry data from the feed |
drivers entries (keyed by racing number)
| Field | Type | Description |
|---|---|---|
| RacingNumber | string | Car number |
| 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_driver_p1": {
"racing_number": "1",
"tla": "VER",
"points": 450,
"entry": {
"RacingNumber": "1",
"CurrentPosition": 1,
"PredictedPosition": 1,
"CurrentPoints": 350,
"PredictedPoints": 450
}
},
"drivers": {
"1": {
"RacingNumber": "1",
"CurrentPosition": 1,
"PredictedPosition": 1,
"CurrentPoints": 350,
"PredictedPoints": 450
},
"44": {
"RacingNumber": "44",
"CurrentPosition": 2,
"PredictedPosition": 2,
"CurrentPoints": 280,
"PredictedPoints": 380
},
"4": {
"RacingNumber": "4",
"CurrentPosition": 3,
"PredictedPosition": 3,
"CurrentPoints": 260,
"PredictedPoints": 350
}
},
"last_update": "2025-06-15T14:32:45Z"
}
Jinja2 Template Examples
Get predicted champion:
{% set p1 = state_attr('sensor.f1_championship_prediction_drivers', 'predicted_driver_p1') or {} %}
{% if p1 %}
Predicted champion: {{ p1.tla }} with {{ p1.points }} points
{% endif %}
Show points gain prediction for a driver:
{% set drivers = state_attr('sensor.f1_championship_prediction_drivers', 'drivers') or {} %}
{% set ver = drivers.get('1') %}
{% if ver %}
{% set gain = ver.PredictedPoints - ver.CurrentPoints %}
VER: {{ ver.CurrentPoints }} -> {{ ver.PredictedPoints }} (+{{ gain }})
{% endif %}
List drivers predicted to gain positions:
{% set drivers = state_attr('sensor.f1_championship_prediction_drivers', 'drivers') or {} %}
{% for num, d in drivers.items() if d.PredictedPosition < d.CurrentPosition %}
#{{ num }}: P{{ d.CurrentPosition }} -> P{{ d.PredictedPosition }}
{% endfor %}
Calculate predicted gap to leader:
{% set p1 = state_attr('sensor.f1_championship_prediction_drivers', 'predicted_driver_p1') or {} %}
{% set drivers = state_attr('sensor.f1_championship_prediction_drivers', 'drivers') or {} %}
{% set ham = drivers.get('44') %}
{% if p1 and ham %}
Gap to leader: {{ p1.points - ham.PredictedPoints }} points
{% endif %}