Yellow flag? Yellow lights! Bring the F1 25 game into your smart home

A while back, I was trying to create a Python script to make my Hue lights yellow when F1 25’s UDP output showed there was a yellow flag in the game.

That’s when it dawned on me: Creating a Home Assistant custom integration for the F1 25 game would make this much easier and offer thousands more possibilities! :sparkles:

:racing_car: So here it is:

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Or find it on Github: F1 25 Telemetry for Home Assistant! :checkered_flag:

Now, you can trigger colored smart lights that match flags (or make all lights dramatically turn off when you DNF :grimacing:), create real-time dashboards with tyre wear and lap time data, or make something that I haven’t thought of!

Home Assistant’s amazing graphs can also help you do some nice analysis work after a session.

Here are some of the most important entities:

  • Damage (in general, per part, or when terminal)
  • DRS and ERS
  • Last and Fastest Lap Time
  • Flag (Blue, Yellow, Green, etc.) and Safety Car
  • Fuel Remaining
  • Leader
  • Current Position
  • Weather
  • Session Status
  • Start Lights (if you have 5 smart lights in a row, you can mimic them irl!)
  • Track Temperature
  • Tyre Age, Compound, Temperature and Wear for each tyre

(Note: Some super high frequency sensors are disabled by default to prevent hammering your Home Assistant instance. You can enable them manually, but be careful.)

There’s also a feature that makes Home Assistant re-transmit the raw telemetry packets to another IP/Port, which can be useful if you have an existing dashboard on a phone or steering wheel, and don’t want to enable UDP broadcasting.

Have fun testing, and let me know how you’re using this!

:rocket: Installation

HACS (Recommended)

  1. In HACS, go to Integrations and click the three dots in the top-right corner.
  2. Select Custom repositories.
  3. Paste the URL of the repository and select Integration as the category: GitHub - richardvinger/f1-25-telemetry-for-home-assistant: A custom integration for Home Assistant that brings real-time telemetry from EA Sports' F1 25 directly into your smarthome.
  4. Click Add and then Download.
  5. Restart Home Assistant.
  6. Continue to Configuration below.

Manual

  1. Copy the custom_components/f1_25_telemetry folder to your Home Assistant config/custom_components/ directory.
  2. Restart Home Assistant.

:gear: Configuration

  1. In Home Assistant, go to SettingsDevices & Services.
  2. Click Add Integration and search for F1 25 Telemetry.
  3. Local UDP Port: Enter the port your game is broadcasting to (Default: 20777).
  4. UDP Forwarding: (Optional) Enable this if you want to forward data to another telemetry app or dashboard.

:memo: F1 25 Game Settings

To enable telemetry in-game:

  1. Go to SettingsTelemetry Settings.
  2. UDP Telemetry: On.
  3. UDP Broadcast Mode: Off (unless you know what you’re doing).
  4. UDP IP Address: Enter the IP of your Home Assistant server.
  5. UDP Port: 20777 (or your configured port).
  6. UDP Format: 2025.