Has anyone set up an ODB2 integration to get car data into HA?

I want to find a way to get data from our cars into Home Assistant. I’m especially interested in the mileage, so I can see how far we’re driving, set up alerts for servicing, oil change, etc.

I’m wondering if I can use a cheap-ish ODB2 bluetooth adapter and an ESP32 running ESPHome with the HA bluetooth proxy. But I wouldn’t want it to draw any power when the car is turned off. I just want to get a few readings when I start the car in the garage, and after I park after coming home.

Has anyone done this before?

2 Likes

You might want to check here:

2 Likes

Interesting, thanks! I would prefer to skip the Torque app and read the bluetooth messages directly into Home Assistant. But I can see why people would want the live data while they’re driving. Also I don’t know if this app works on iOS (I only have an iPhone.)

You can use an old Android phone (or buy an older model cheaply) dedicated to running only the Torque app. You would keep this phone in your car at all times, as suggested here.

In 5 years around here I haven’t seen this done, but I’ve thought about it too. It hasn’t been a priority for me though. My idea was to connect an ESP to my existing OBDII.

There’s a good hint here: Reddit - Dive into anything.

1 Like

This basically is a way to create your own App to integrate with the cars existing “smart app”. For someone that can write an integration, this would be super simple to set up.

I am guessing that the integration would look something like “Docker Wyze Bridge” where the custom App would run in Docker.

Thanks, but in my case the only way to get the data is via ODBII. There’s no other interface. Still, it’s good to know for others this exists.

3 Likes

I’ve come across this autopi project but haven’t played with it much yet. it’s a raspberry pi with odb and 4g modem.

@ndbroadbent did you ever get this working? i’m looking for a non-cloud , local only, ODB2 ↔ ESP32 (?) ↔ HA solution as well…

2 Likes

There is a new project called “WiCAN Pro” on crowdsupply:

They say integration into home assistant is possible.

3 Likes

I do this with my own little project.

Feel free to use it and help me to improve.

5 Likes

@ndbroadbent did you find and solution for your problem?

This is awesome. It kinda gave me the idea just now to use LoRa for reporting back to my HA instance, instead of wifi or Bluetooth. Would give longer range from home, and can still check into wifi when at home.

This wouldn’t work because data is send on the fly. LoRa works only within 200 meters and only with a small amount of data.
The goal was to get data like consumption and GPS position while drive and send it to Home Assistant.

Yes Has been done and work perfect :slight_smile:

Do you have more details?

YESS !! Usa a Wican interface and there are an HA Integration available

There are some veicole just available with thery PID and other on request
Fantastic, easy and now directly via HA wihout use MQTT that’s is more complex

1 Like

Forum topic: WiCAN ESP32-based open-source OBD2/OBD-II Vehicle (car or truck) CAN Bus Diagnostics to WIFi/BLE/USB adapter for Home Assistant integration?.