Skip to content

Conversation

@Bre77
Copy link
Member

@Bre77 Bre77 commented Jan 8, 2026

This commit significantly expands the Tessie API implementation to include
all custom endpoints available in the Tessie API reference documentation.

Changes to tesla_fleet_api/tessie/tessie.py:

  • Add historical data endpoints: states, drives, charges, idles, path
  • Add location and mapping endpoints: location, map, weather
  • Add battery and tire monitoring: consumption_since_charge, tire_pressure
  • Add firmware and alert endpoints: firmware_alerts, vehicle_status
  • Add fleet-wide endpoints: charging_invoices, all_battery_health
  • Add license plate management: plate, update_plate

Changes to tesla_fleet_api/tessie/vehicles.py:

  • Add complete set of vehicle command endpoints with wait_for_completion support
  • Add climate control commands: start/stop climate, temperature, seat heat/cool
  • Add trunk and window commands: activate trunks, vent/close windows
  • Add charging commands: start/stop charging, set limits and amps
  • Add security commands: lock/unlock, sentry mode, valet mode, guest mode
  • Add software update commands: schedule and cancel updates
  • Add scheduling commands: scheduled charging and departure
  • Add driver management endpoints: list, delete, invite drivers
  • Add fleet telemetry configuration endpoints
  • Add data management: set drive tags and charge costs
  • Prefix conflicting method names with 'tessie_' to avoid parent class conflicts

All changes pass pyright type checking and ruff linting.

claude added 2 commits January 8, 2026 08:45
This commit significantly expands the Tessie API implementation to include
all custom endpoints available in the Tessie API reference documentation.

Changes to tesla_fleet_api/tessie/tessie.py:
- Add historical data endpoints: states, drives, charges, idles, path
- Add location and mapping endpoints: location, map, weather
- Add battery and tire monitoring: consumption_since_charge, tire_pressure
- Add firmware and alert endpoints: firmware_alerts, vehicle_status
- Add fleet-wide endpoints: charging_invoices, all_battery_health
- Add license plate management: plate, update_plate

Changes to tesla_fleet_api/tessie/vehicles.py:
- Add complete set of vehicle command endpoints with wait_for_completion support
- Add climate control commands: start/stop climate, temperature, seat heat/cool
- Add trunk and window commands: activate trunks, vent/close windows
- Add charging commands: start/stop charging, set limits and amps
- Add security commands: lock/unlock, sentry mode, valet mode, guest mode
- Add software update commands: schedule and cancel updates
- Add scheduling commands: scheduled charging and departure
- Add driver management endpoints: list, delete, invite drivers
- Add fleet telemetry configuration endpoints
- Add data management: set drive tags and charge costs
- Prefix conflicting method names with 'tessie_' to avoid parent class conflicts

All changes pass pyright type checking and ruff linting.
Moved tire_pressure, vehicle_status, plate, and update_plate from the
main Tessie class to TessieVehicle class where they belong. These methods
operate on a specific vehicle and should use self.vin instead of taking
a VIN parameter.

This follows the established pattern where vehicle-specific operations
are in the Vehicle class (using self.vin) while fleet-wide operations
remain in the main API class.
@Bre77 Bre77 merged commit 45789f8 into main Jan 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants