How do I auto-record trips when CarPlay connects?
In the Shortcuts app, create an automation for CarPlay → Connects that runs Odo's Start or Resume Trip, and a second for CarPlay → Disconnects that runs Pause Trip.
CarPlay is the most reliable trigger in the car. In the Shortcuts app, open Automation, tap +, choose CarPlay, select Connects and Run Immediately, then tap Next, search for Odo and pick Start or Resume Trip.
Create a second automation for CarPlay → Disconnects that runs Pause Trip.
Your trip now starts when the phone connects and pauses when you unplug. If you stop for fuel and set off again, Start or Resume Trip continues the same trip instead of starting a new one.