Skip to main content

Current Tyres

See the tyre compound currently fitted to each driver’s car, its age and the known stint history for the session.

Standard entity ID sensor.f1_current_tyres

Public live / replayYour IDs may differ

Shows the current tyre compound for each driver in the active session.

State​

  • Integer: number of drivers with tyre information available.

Example

20

Attributes​

AttributeTypeDescription
driverslistList of driver tyre information, sorted by car number
lap_currentnumber or nullCurrent reported session lap
lap_totalnumber or nullScheduled session laps, when provided by the source

drivers entries​

FieldTypeDescription
racing_numberstringCar number
tlastringThree-letter abbreviation (driver code)
team_colorstringTeam color as hex code (e.g., "#3671C6")
team_color_rgblistTeam color as RGB values (e.g., [54, 113, 198])
positionstringCurrent position in the session
compoundstringTyre compound name (e.g., "SOFT", "MEDIUM", "HARD", "INTERMEDIATE", "WET")
compound_shortstringSingle-letter abbreviation ("S", "M", "H", "I", "W")
compound_colorstringHex color code for the compound (e.g., "#FF0000" for soft)
compound_color_rgblistCompound color as RGB values (e.g., [255, 0, 0] for soft)
newboolean or nullWhether the current set was new when fitted; null means unknown
stint_lapsnumber or nullReported total age of the current set, including laps driven before it was fitted
completed_lapsnumber or nullDriver's reported number of completed session laps
retiredboolean or nullWhether the driver is reported retired; null means unknown
in_pitboolean or nullWhether the driver is currently reported in the pit lane; null means unknown
stint_history_completebooleanWhether the available stint history covers the driver from the start of the session
stintslistKnown tyre stints in chronological order; see the fields below

stints entries​

FieldTypeDescription
stint_indexnumberSource stint identifier; it is not a pit-stop count
compoundstring or nullTyre compound for this stint
newboolean or nullWhether the set was new when fitted
first_lapnumber or nullFirst session lap assigned to the stint, when known
last_lapnumber or nullLast completed session lap assigned to the stint, when known
stint_lapsnumber or nullLaps driven in this stint, excluding mileage before fitting
tyre_age_at_startnumber or nullLaps already on the set when fitted; zero and unknown are different
total_lapsnumber or nullReported total tyre age; final age for a completed stint, latest age for the current stint
is_currentbooleanWhether this is the latest fitted set; it can remain true after retirement or session end
coveragestringcomplete or partial, describing whether the stint's lap boundaries and age are known

The driver's top-level stint_laps retains its existing meaning: total age of the current tyres. The nested stints[].stint_laps is the distance driven during one stint. For example, a set fitted with three earlier laps and then driven for fourteen laps has tyre_age_at_start: 3, stint_laps: 14 and total_laps: 17. Do not add the start age to total_laps again.

The Tyres history view keeps completed stints visible and shows their total age at the time of the tyre change. A source update that continues the same set is not shown as a new tyre change.

info

History belongs to the selected session and may be incomplete after a late connection, an integration restart or an incomplete source snapshot. Unknown numeric fields remain null and appear as — in the card. A reported zero remains zero; missing data does not establish that tyres were new.

Examples​

JSON Structure Example
{
"drivers": [
{
"racing_number": "1",
"tla": "VER",
"team_color": "#3671C6",
"team_color_rgb": [54, 113, 198],
"position": "1",
"compound": "MEDIUM",
"compound_short": "M",
"compound_color": "#FFFF00",
"compound_color_rgb": [255, 255, 0],
"new": false,
"stint_laps": 15
},
{
"racing_number": "44",
"tla": "HAM",
"team_color": "#ED1131",
"team_color_rgb": [237, 17, 49],
"position": "2",
"compound": "HARD",
"compound_short": "H",
"compound_color": "#FFFFFF",
"compound_color_rgb": [255, 255, 255],
"new": true,
"stint_laps": 3
},
{
"racing_number": "4",
"tla": "NOR",
"team_color": "#FF8000",
"team_color_rgb": [255, 128, 0],
"position": "3",
"compound": "SOFT",
"compound_short": "S",
"compound_color": "#FF0000",
"compound_color_rgb": [255, 0, 0],
"new": true,
"stint_laps": 1
}
]
}
Jinja2 Template Examples

Get a driver's current tyre:

{% set drivers = state_attr('sensor.f1_current_tyres', 'drivers') or [] %}
{% set ver = drivers | selectattr('tla', 'eq', 'VER') | first | default(none) %}
{% if ver %}
VER on {{ ver.compound }} ({{ ver.stint_laps }} laps{% if ver.new %}, NEW{% endif %})
{% endif %}

Count drivers on each compound:

{% set drivers = state_attr('sensor.f1_current_tyres', 'drivers') or [] %}
{% if drivers %}
SOFT: {{ drivers | selectattr('compound', 'eq', 'SOFT') | list | length }}
MEDIUM: {{ drivers | selectattr('compound', 'eq', 'MEDIUM') | list | length }}
HARD: {{ drivers | selectattr('compound', 'eq', 'HARD') | list | length }}
{% endif %}

List drivers whose current set was fitted new:

{% set drivers = state_attr('sensor.f1_current_tyres', 'drivers') or [] %}
{% for d in drivers if d.new %}
{{ d.tla }} - {{ d.compound }}, fitted new
{% endfor %}

Find the oldest current tyre set:

{% set drivers = state_attr('sensor.f1_current_tyres', 'drivers') or [] %}
{% if drivers %}
{% set longest = drivers | sort(attribute='stint_laps', reverse=true) | first | default(none) %}
{{ longest.tla }} has {{ longest.stint_laps }} laps on {{ longest.compound }}
{% endif %}

Create a tyre summary in position order:

{% set drivers = state_attr('sensor.f1_current_tyres', 'drivers') or [] %}
{% set ranked = namespace(rows=[]) %}
{% for driver in drivers %}
{% set position = driver.position | int(999) %}
{% set ranked.rows = ranked.rows + [{'position': position, 'driver': driver}] %}
{% endfor %}
{% for row in ranked.rows | sort(attribute='position') %}
{% set d = row.driver %}
P{{ d.position }} {{ d.tla }}: {{ d.compound_short }} ({{ d.stint_laps }} laps)
{% endfor %}