iR2mqtt – Bring iRacing Live Telemetry to Home Assistant

Hi everyone!

:video_game: What is iR2mqtt?


iR2mqtt is a standalone Windows app written in Python that:

  • Reads real-time telemetry data from the iRacing simulator
  • Publishes that data to a MQTT broker
  • Lets you build dashboards and automations in Home Assistant, such as:
    • Speed and RPM tracking
    • Fuel levels
    • Session and lap times
    • Flags (yellow, blue, etc.)
    • Pit status
    • Incidents
    • Starting lights
    • Driver & Team name
    • And much more!

:baby_bottle: Why did I build this?
The idea for this project came from real life:
Sometimes during a race, my toddler would start crying, and my wife wasn’t sure if I could help or not. So I created an automation:
Whenever the baby monitor detects noise and I’m in the middle of a race, Home Assistant sends her a gentle notification.
We’ve laughed about it, but it actually works and I’ve managed to avoid becoming single so far! :sweat_smile:

:gear: Requirements

  • iRacing
  • Home Assistant
  • MQTT broker (like Mosquitto)

:rocket: Getting Started
Everything you need is on GitHub (wiki available):
:point_right: https://github.com/jmlt/ir2mqtt

:test_tube: Status

The app is stable and functional, with features like:

  • Clean GUI with customization options for a personalized experience
  • System tray integration
  • Automatic start/stop publishing if iracing starts running
  • Designed to be lightweight
  • Donation key system to unlock flags, starting lights and incidents and pit detection (No minimum, just a way to show appreciation for the weeks spent developing this.)
  • All telemetry fields and settings controls now have descriptive tooltips.

:speech_balloon: Feedback welcome!
Whether you want to build dashboards or automations (baby-related or not :smile:), there are some examples of sensors, blueprints, and dashboards to test!
I’d love your feedback, please create issues on GitHub if you find any bugs. Thank you!

1 Like

This is genius! I was looking for something that would let me tie my smart lighting to live race conditions like yellow flags, etc.

I know simhub does this for govee and hue, but wanted more flexibility, which home assistant always delivers. Will try and report back!

Also - race status + baby monitor sound is genius. I’ll probably reproduce that exact use case too :joy:

1 Like

Quick bump to let you all know that v3.4.3 is now available, packed with useful additions and improvements! :rocket:

:white_check_mark: What’s New:

  • Full support for all iRacing flags (global + driver-specific)
  • New binary sensors for start lights: Ready, Set, Go :vertical_traffic_light:
  • Incidents counter: track the number of incidents in real time
  • Minor UI tweaks for a cleaner experience

:books: Setup & Docs:
:point_right: iR2mqtt Wiki

As always, if you run into anything or have suggestions, feel free to reply here or open an issue on GitHub.
Enjoy! :checkered_flag:

I love this! any chance to do this to read from Simhub, so any other racing game that sends telemetry could be read?

1 Like

That’s a great idea, but it would require fundamental changes to how the system works.
For that reason, it’s not currently in the plans but I really appreciate the suggestion!

:rocket: Quick update!

The iR2mqtt Integration is now available making setup in Home Assistant easier than ever! :racing_car::dash:

:sparkles: What’s new:

  • :gear: Automatic creation of all iRacing telemetry sensors
  • :jigsaw: No more manual sensors configuration (remove if you have it) - plug & play!
  • :checkered_flag: Full support for global and driver-specific flags
  • :bulb: Cleaner setup and smoother updates through HACS

:blue_book: Setup & Docs:
:point_right: iR2mqtt Integration on GitHub

:speech_balloon: As always, if you have ideas, feedback, or run into issues, feel free to reply here or open an issue on GitHub.

This is awesome! I am looking for something that can tell when I am actively driving vs when I am spectating.

I am often in an endurance race and my SO doesn’t know whether I can be disturbed. I have a light outside the door that normally shows this but atm I have to display busy when iRacing is running. Ideally if I could tell when I am racing vs spotting, I could change the light to a “maybe busy” colour.

I can see the python based SDK tool has a variable for replay active. Is it possible to have a sensor called “Actively driving” or similar?

1 Like

Please check your email and let me know if everything is okay.
Thank you and sorry again for the inconvenience!

v3.5.3 is out with a few additions that came directly from user requests.

Driver name and team name are now published as sensors, which makes it straightforward to build automations that include the driver in notifications without hardcoding anything, useful for team endurance races.

A driving state sensor has also been added with four states: Driving, Spectating, Garage, and Menu. This one came from a request to control a door light differently depending on whether the driver is actively racing or just spotting.

The Dashboard now has a speed unit selector (m/s, km/h, mph) for display purposes. MQTT continues to publish in m/s so the integration handles all three units without any changes on the Home Assistant side.

Start minimized to tray is now available in Settings, so when combined with Start with Windows the app launches straight to the tray on boot.

iR2mqtt: GitHub - jmlt/ir2mqtt: Automatically monitors iRacing telemetry and publishes the session data via MQTT, making it possible to expose these values as sensors in Home Assistant. · GitHub
Integration: GitHub - jmlt/ir2mqtt_integration: Home Assistant integration for iR2mqtt App. Automatically creates iRacing telemetry sensors from MQTT data. · GitHub