Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tesla_fleet_api/tesla/vehicle/bluetooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,6 @@ def _disarm_broadcast_confirmation(
):
del self._broadcast_watchers[domain]

# Group 12: VCSEC closures (Bluetooth-only for individual doors)

async def open_front_driver_door(self) -> dict[str, Any]:
"""Unlatches/opens the front driver door."""
return await self._sendVehicleSecurity(
Expand Down
36 changes: 0 additions & 36 deletions tesla_fleet_api/tesla/vehicle/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,59 +128,46 @@
NavigationRequest,
NavigationSuperchargerRequest,
NavigationWaypointsRequest,
# Group 1: Steering wheel heat level
StwHeatLevelAction,
# Group 2: General infotainment
HvacRecirculationAction,
DashcamSaveClipAction,
SetSuspensionLevelAction,
StartLightShowAction,
StopLightShowAction,
CancelSohTestAction,
# Group 3: Schedules
RemoveChargeScheduleAction,
RemovePreconditionScheduleAction,
BatchRemoveChargeSchedulesAction,
BatchRemovePreconditionSchedulesAction,
# Group 4: Powershare
SetPowershareFeatureAction,
SetPowershareRequestAction,
SetPowershareDischargeLimitAction,
# Group 5: Outlets & power feeds
SetOutletsOnOffAction,
SetOutletTimerAction,
SetOutletSocLimitAction,
SetPowerFeedOnOffAction,
SetPowerFeedTimerAction,
SetPowerFeedSocLimitAction,
# Group 6: Lighting
SetLightbarBrightnessAction,
SetLightbarMiddleAction,
SetLightbarDitchAction,
SetZoneLightRequestAction,
SetTrailerLightTestStartStopAction,
SetTruckBedLightAutoStateAction,
SetTruckBedLightBrightnessAction,
# Group 7: Tent mode
SetTentModeRequestAction,
# Group 8: Parental controls
ParentalControlsAction,
ParentalControlsClearPinAction,
ParentalControlsClearPinAdminAction,
ParentalControlsEnableSettingsAction,
ParentalControlsSetSpeedLimitAction,
# Group 9: Charge on solar
UpdateChargeOnSolarFeatureRequest,
GetChargeOnSolarFeatureRequest,
ChargeOnSolarFeature,
# Group 10: Navigation
NavigationGpsDestinationRequest,
# Group 11: Admin
VehicleControlResetPinToDriveAdminAction,
# Group 12: Power modes
SetLowPowerModeAction,
SetKeepAccessoryPowerModeAction,
# Group 18: Niche/low-certainty-value commands (captain full-coverage directive)
PiiKeyRequest,
PseudonymSyncRequest,
TeslaAuthResponseAction,
Expand Down Expand Up @@ -1862,8 +1849,6 @@ async def fleet_telemetry_config_create(
# fleet_telemetry_config_get doesnt require signing
# fleet_telemetry_config_delete doesnt require signing

# Group 2: New infotainment commands — general

async def set_recirculation(self, on: bool) -> dict[str, Any]:
"""Sets HVAC recirculation mode on/off."""
return await self._sendInfotainment(
Expand Down Expand Up @@ -1933,8 +1918,6 @@ async def cancel_soh_test(self) -> dict[str, Any]:
)
)

# Group 3: Schedule commands

async def add_charge_schedule(
self,
days_of_week: str | int,
Expand Down Expand Up @@ -2051,8 +2034,6 @@ async def batch_remove_precondition_schedules(
)
)

# Group 4: Cybertruck — powershare

async def set_powershare_feature(self, on: bool) -> dict[str, Any]:
"""Enables or disables the Powershare feature."""
return await self._sendInfotainment(
Expand Down Expand Up @@ -2097,8 +2078,6 @@ async def set_powershare_discharge_limit(self, percent: int) -> dict[str, Any]:
)
)

# Group 5: Cybertruck — outlets & power feeds

async def set_outlets(self, request: int) -> dict[str, Any]:
"""Sets outlets on/off (0=off, 1=cabin+bed, 2=cabin)."""
return await self._sendInfotainment(
Expand Down Expand Up @@ -2165,8 +2144,6 @@ async def set_power_feed_soc_limit(self, percent: int) -> dict[str, Any]:
)
)

# Group 6: Cybertruck — lighting

async def set_lightbar_brightness(self, brightness: int) -> dict[str, Any]:
"""Sets the lightbar brightness."""
return await self._sendInfotainment(
Expand Down Expand Up @@ -2263,8 +2240,6 @@ async def set_truck_bed_light_brightness(self, brightness: int) -> dict[str, Any
)
)

# Group 7: Cybertruck — tent mode

async def set_tent_mode(self, on: bool) -> dict[str, Any]:
"""Enables or disables tent mode."""
return await self._sendInfotainment(
Expand All @@ -2275,8 +2250,6 @@ async def set_tent_mode(self, on: bool) -> dict[str, Any]:
)
)

# Group 8: Parental controls

async def parental_controls(self, activate: bool, pin: str) -> dict[str, Any]:
"""Activates or deactivates parental controls with PIN."""
return await self._sendInfotainment(
Expand Down Expand Up @@ -2340,8 +2313,6 @@ async def parental_controls_set_speed_limit(
)
)

# Group 9: Charge on solar

async def update_charge_on_solar(
self, enabled: bool, lower_charge_limit: float, upper_charge_limit: float
) -> dict[str, Any]:
Expand Down Expand Up @@ -2371,8 +2342,6 @@ async def get_charge_on_solar(self) -> dict[str, Any]:
mutating=False,
)

# Group 10: Navigation

async def navigation_gps_destination_request(
self, lat: float, lon: float, destination: str, order: int
) -> dict[str, Any]:
Expand All @@ -2394,8 +2363,6 @@ async def navigation_gps_destination_request(
)
)

# Group 11: Admin

async def reset_pin_to_drive_admin(self) -> dict[str, Any]:
"""Resets PIN to Drive as admin (fleet manager/owner). Requires firmware 2023.44+."""
return await self._sendInfotainment(
Expand All @@ -2406,8 +2373,6 @@ async def reset_pin_to_drive_admin(self) -> dict[str, Any]:
)
)

# Group 12: VCSEC — closures & RKE

async def open_tonneau(self) -> dict[str, Any]:
"""Opens the tonneau cover."""
return await self._sendVehicleSecurity(
Expand Down Expand Up @@ -2444,7 +2409,6 @@ async def auto_secure_vehicle(self) -> dict[str, Any]:
UnsignedMessage(RKEAction=RKEAction_E.RKE_ACTION_AUTO_SECURE_VEHICLE)
)

# Group 18: Niche/low-certainty-value commands
#
# Included per the captain's full-proto-coverage directive; each has no
# known third-party consumer use case today, unlike every other command
Expand Down
Loading