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! ![]()
So here it is:
Or find it on Github: F1 25 Telemetry for Home Assistant! ![]()
Now, you can trigger colored smart lights that match flags (or make all lights dramatically turn off when you DNF
), 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!
Installation
HACS (Recommended)
- In HACS, go to Integrations and click the three dots in the top-right corner.
- Select Custom repositories.
- 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.
- Click Add and then Download.
- Restart Home Assistant.
- Continue to Configuration below.
Manual
- Copy the
custom_components/f1_25_telemetryfolder to your Home Assistantconfig/custom_components/directory. - Restart Home Assistant.
Configuration
- In Home Assistant, go to Settings → Devices & Services.
- Click Add Integration and search for F1 25 Telemetry.
- Local UDP Port: Enter the port your game is broadcasting to (Default:
20777). - UDP Forwarding: (Optional) Enable this if you want to forward data to another telemetry app or dashboard.
F1 25 Game Settings
To enable telemetry in-game:
- Go to Settings → Telemetry Settings.
- UDP Telemetry:
On. - UDP Broadcast Mode:
Off(unless you know what you’re doing). - UDP IP Address: Enter the IP of your Home Assistant server.
- UDP Port:
20777(or your configured port). - UDP Format:
2025.