Tesla Vampire Drain
tesla_vampire_drainAnalyze overnight battery drain for parked Tesla vehicles. Detect 8+ hour parking periods and measure kWh loss, flagging camping-mode events when average drain exceeds threshold.
Instructions
Vampire drain analysis -- battery loss while parked overnight.
Checks for periods where the car was parked (no drives) for 8+ hours
and measures battery drop. A parked period is tagged "露营模式" when the
AVERAGE drain rate over the parked period is ≥
TESLA_CAMPING_KWH_PER_HOUR (default 0.8 kWh/h). The kWh conversion
uses a fixed 75 kWh reference battery — so the threshold does NOT
change whether the car is 75 / 82 / 100 kWh. Sentry and third-party-app
activity are NOT distinguished from camping use: any aggregate drain rate
at or above the threshold is flagged. If QWeather is configured, the
current weather at the parking location is shown for the worst few events
AND every camping-mode event (display-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to analyze (default: 14) | |
| car_id | No | Filter by vehicle ID (default: TESLA_CAR_ID env or first car) | |
| end_date | No | Filter drain until this date (YYYY-MM-DD), defaults to today | |
| start_date | No | Filter drain from this date (YYYY-MM-DD), overrides days param |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |