It will turn off the power when the car goes to sleep. It could take an hour or two after it is parked. It won't sleep while charging or with Sentry/Climate/Dog/Camping on, or if you open the Tesla app or monitor it through the API incorrectly (ie TeslaFi sleep mode not configured correctly).