I wanted to integrate vehicle data for our C-HR, which I drive the most, into Home Assistant using a Bluetooth ODB-II reader and the Torque app. I tried this several years ago but had problems getting the integration to work. This time, however, it worked perfectly.
I’ve had one challenge, though. Some of the data that I wanted to send to Home Assistant wasn’t supported by my car using the standard PIDs. I’m still trying to determine if there’s a PID that can be used to obtain the current odometer reading (so far, it’s looking like this may be locked away just out of my reach). I was unable to test the Toyota extensions for Torque because the extension is not compatible with my Android device (I’m guessing the extension uses an older version of the Android APIs).
Fortunately, I did have success in tracking down the fuel level, which is one of the more useful pieces of data that I wanted to have in Home Assistant. Note that my vehicle is a version for the U.S.A.
Note that this seems to be slightly different from the fuel guage on your dash regarding how quickly this PID data is updated. It appears to be instant whereas the guage in the car has some kind of averaging or delay. For example, anything that can cause the fuel to shift in the tank, such as going up an incline, or a sharp turn, will be reflected in the value sent to Home Assistant. I park at home on a relatively flat surface and tend to wait a moment before turning off the vehicle.
I am also using template sensors to preserve the values in Home Assistant and avoid seeing error messages in the dashboard when the Torque sensors are not avaialable. It’s helpful to me as I can check the fuel level before I leave in the morning to know if I need to leave earlier to stop for gas.
Here’s the information that you’ll need to setup a custom PID in Torque. If it’s not clear in the font that is displayed on your screen, all values contain zeros; none use the letter O and screenshots showing the same information that I plugged into a custom PID in Torque:
PID: 2129
MIN VAL: 0.0
MAX VAL: 13.2
SCALE: 1X
UNIT: gal
EQUATION: ((A/95)*13.2)
HEADER: 7C0



Leave a comment