Hi,
some weeks ago i bought a cheap GPS/GPRS tracker with an ODBII port to track my car.
https://nl.aliexpress.com/store/product/gps-Tracker-GPS306B-SMS-Real-time-tracking-2-4G-Attendance-management-Plug-Play-SOS-Alarm-Truck/530436_1889292868.html
These cheap chinese and other GPS/GPRS trackers can be configured to work with http://traccar.org, an excellent tool for these devices and fleet management.
But as it it turns out the tracker i bought doesn’t seem to get the ODO and fuel level information via ODB from my Ford (Ford issue i think) so i started looking what else i could do with that thing…
This ended up in me making a custom device tracker for HASS that talks to the traccar api.
The traccar platform for hass works as the same as any other device tracker.
It will add a device for every device you have setup in traccar and you can use these for presence detection, google travel times etc.
add to your configuration:
device_tracker:
platform: traccar
username: traccar_user
password: traccar_password
host: traccar_host ip/name including port number
put the following file in a path cal custom_components/device_tracker/
many thanks to @w1ll1am23 as i borrowed most of the code from his trackr device tracker platform.