I noticed that a lot of HA users struggled with making default Torque Integration work. Therefore I decided to write up this tutorial.
It is actually relatively simple. This tutorial is basically an elaboration of the setup instructions provided here. (All the answers are basically there, but if you struggle with individual steps, this tutorial is for you. )
(This tutorial assumes that you have the OBDII adapter setup and you connected it successfully to Torque app in your phone. It also assumes that you have vehicle profile setup in the Torque app.)
A. Home Assistant setup:
1. In your HA installation, edit the configuration.yaml file like this:
(email address can be any string you like, but it canât be left empty)
2. Go to user (in my case âPeterâ, obviously yours will be your name) in the bottom left of HA interface:
3. Scroll down to the bottom of the page where you can see your âLong-Lived Access Tokensâ and chose âCreate Tokenâ:
4. Give your token a name (you can call it whatever you like, I called it âTorque Default Integrationâ) and click âOKâ:
5. A token will be generated. Copy it, paste it somewhere, e.g. Google Keep or Notepad as it wonât be shown again after you close this dialog box. (You will need it later in Torque phone app.):
6. Restart HA
B. Torque app setup:
(You should be able to use Torque Light app, but this tutorial was made using Torque Pro app.)
1. In Torque app select the clog wheel icon in the bottom left corner of the app welcome screen:
2. Then select âSettingsâ:
3. Then select âData Logging & Uploadâ:
4. Then select three dots in the top right corner:
5. Then select âSelect what to logâ:
6. Chose which parameters you would like to log:
(It is better if you do this while connected to OBDII as it will make it clearer which items your adapter is able to log from your engine data.)
7. Go back to âData Logging & Uploadâ. My âFile Loggingâ settings look like this - they are not that crucial but just in case you struggle to make things work, I have them setup like this:
8. Scroll down to âRealtime web uploadâ. These settings are the most important! Make sure you enable âUpload to webserverâ:
9. âWeblogging intervalâ - 5 seconds. (You can make it whatever you like, but it could quickly overload HA database if the value is too low, or you wonât get sufficient information if the value is too high).
Enable âOnly when OBD connectedâ. (It works either way but more data might flood your HA database.)
10. Select âWebserver URLâ. Enter the web address you use to login to your HA installation remotely from outside of your home network (e.g. Nabu Casa or DuckDNS, etc.). Itâs very important to add ââŚ/api/torqueâ after your address! Then click âOKâ.
(Connection from the webserver URL has to be encrypted with SSL/TLS as stated in the referenced article.)
11. Select âSet Bearer Tokenâ. Insert your token you generated earlier in your HA installation (in steps A.3 and A.4). Then click âOKâ:
12. Select âUser Email Addressâ and enter the same email address you entered in HA configuration.yaml file (in step A.1):
13. Restart HA
14. Connect your Torque app to OBDII adapter and drive your car for couple of minutes to generate data.
15. Entities should now be loaded in your HA installation with names that begin with âsensor.vehicle_âŚâ, e.g. In my installation it looks they look like this:
In my dashboard they appear like this:
Hope this tutorial will be helpful to some.