Skip to main content

Python API Client for FCA/Stellantis cars

Project description

Python client for accessing FCA/Stellantis cars cloud API

Installation

pip3 install py-uconnect

Usage

from py_uconnect import brands, Client

# Create client
client = Client('foo@bar.com', 'very_secret', pin='1234', brand=brands.FIAT_EU)
# Fetch the vehicle data into cache
client.refresh()

# List vehicles
vehicles = client.get_vehicles()
for vehicle in vehicles.values():
    print(vehicle.to_json(indent=2))

This would emit something similar to:

{
  "vin": "XXXXXXXXXXXXXXXXXXXX",
  "nickname": "500e",
  "make": "FIAT",
  "model": "Neuer 500",
  "year": 2023,
  "region": "EMEA",
  "sdp": null,
  "image_url": "https://example.com/vehicle/image.png",
  "fuel_type": "E",
  "ignition_on": false,
  "trunk_locked": true,
  "odometer": 1841,
  "odometer_unit": "km",
  "days_to_service": 325,
  "distance_to_service": 13159.0,
  "distance_to_service_unit": "km",
  "distance_to_empty": 134,
  "distance_to_empty_unit": "km",
  "battery_voltage": 14.875,
  "battery_state_of_charge": "normal",
  "oil_level": null,
  "fuel_low": false,
  "fuel_amount": null,
  "plugged_in": false,
  "ev_running": false,
  "charging": false,
  "charging_level": 0,
  "charging_level_preference": 5,
  "state_of_charge": 63,
  "time_to_fully_charge_l3": 41,
  "time_to_fully_charge_l2": 96,
  "time_to_fully_charge_l1": null,
  "ev_head_seat": null,
  "ev_cabin_cond": null,
  "wheel_front_left_pressure": null,
  "wheel_front_left_pressure_unit": "kPa",
  "wheel_front_left_pressure_warning": false,
  "wheel_front_right_pressure": null,
  "wheel_front_right_pressure_unit": "kPa",
  "wheel_front_right_pressure_warning": false,
  "wheel_rear_left_pressure": null,
  "wheel_rear_left_pressure_unit": "kPa",
  "wheel_rear_left_pressure_warning": false,
  "wheel_rear_right_pressure": null,
  "wheel_rear_right_pressure_unit": "kPa",
  "wheel_rear_right_pressure_warning": false,
  "door_driver_locked": true,
  "door_passenger_locked": true,
  "door_rear_left_locked": true,
  "door_rear_right_locked": true,
  "window_driver_closed": true,
  "window_passenger_closed": true,
  "location": {
    "longitude": 1.580266952514648,
    "latitude": 1.36115264892578,
    "altitude": 0,
    "bearing": 0,
    "is_approximate": false,
    "updated": 1738660203.634
  },
  "supported_commands": [
    "RDL",
    "RDU",
    "VF",
    "ROLIGHTS",
    "CNOW",
    "DEEPREFRESH",
    "ROPRECOND",
    "ROTRUNKUNLOCK",
    "ROPRECOND_OFF"
  ],
  "enabled_services": [
    "RDL",
    "RDU",
    "VF",
    "ROLIGHTS",
    "CNOW",
    "DEEPREFRESH",
    "ROPRECOND",
    "ROTRUNKUNLOCK",
    "ROPRECOND_OFF",
    "SVLA",
    "BCALL",
    "ECALL"
  ]
}

Additional API methods

# Vehicle health report
report = client.get_vehicle_health_report(vin)

# Maintenance history
history = client.get_maintenance_history(vin)

# Eco-coaching trip data
last_trip = client.get_eco_coaching_last_trip(vin)
trips = client.get_eco_coaching_trips(vin)

# Vehicle image (dedicated endpoint)
image = client.get_vehicle_image(vin)

# EV charge schedules
schedules = client.get_charge_schedules(vin)
client.set_charge_schedule(vin, schedule)

# Remote operation status (check if a command succeeded)
status = client.get_remote_operation_status(vin, correlation_id)

# Stolen vehicle locator status (SiriusXM Guardian / SVLA)
svla = client.get_stolen_vehicle_status(vin)

# Vehicle subscription status
subscription = client.get_vehicle_subscription(vin)

# Set vehicle nickname
client.set_vehicle_nickname(vin, "My Car")

# Trigger a fresh location update (returns correlation ID)
correlation_id = client.update_location(vin)

Service Delivery Platform (SDP)

NAFTA vehicles report a sdp field indicating the connected services provider:

  • "SXM" - SiriusXM Guardian
  • "SPRINT" - Uconnect Access (Sprint/T-Mobile)
  • null - EMEA/LATAM/IAP regions (no SDP distinction)

The enabled_services field lists all active services on the vehicle, including non-command services like SVLA (Stolen Vehicle Locator), BCALL, ECALL, etc.

SiriusXM Guardian vehicles

Some US-market vehicles use SiriusXM Guardian as their connected services provider instead of the standard Uconnect cellular service. These vehicles may not appear in the API if the account has not been properly linked.

Analysis of the official Stellantis mobile apps (Ram NAFTA, Chrysler NAFTA, Wagoneer NAFTA) shows that:

  • There are no separate API endpoints for SXM Guardian vehicles. All vehicles use channels.sdpr-02.fcagcv.com regardless of SDP type.
  • The sdp field only affects UI presentation (subscription messages, branding).
  • The apps contain a legacy Mopar login fallback: when Gigya login fails for a Mopar-only account, the app POSTs to api.extra.fcagroup.com which triggers a server-side account migration to Gigya, then retries the standard login.

This suggests SXM Guardian vehicles should work once the account is migrated to Gigya. However, we cannot fully verify this without a real SXM Guardian account because some configuration values in the APK are encrypted.

If your SiriusXM Guardian vehicle does not appear:

  1. Install the official app for your brand (Jeep, Ram, Chrysler, Dodge, etc.)
  2. Log in with your Mopar/SXM Guardian credentials
  3. If the app prompts you to link or migrate your account, complete the process
  4. Verify your vehicle is visible and functional in the official app
  5. Use the same credentials with this library

If your vehicle still does not appear after completing these steps, please open an issue with your vehicle year, make, model, and whether it shows in the official app.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_uconnect-0.4.2.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_uconnect-0.4.2-py2.py3-none-any.whl (19.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file py_uconnect-0.4.2.tar.gz.

File metadata

  • Download URL: py_uconnect-0.4.2.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py_uconnect-0.4.2.tar.gz
Algorithm Hash digest
SHA256 4accb79b374df451b86cb2c9930ed909e53a0f962f2dc9fc89b97a4ca379df51
MD5 3f8638937ad2b835ef10e2ae529a6cbd
BLAKE2b-256 aea054b71f89765305355b523d6c5a116bb3a2b7e80dbd2e8e1155616a07d1b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_uconnect-0.4.2.tar.gz:

Publisher: pypi.yml on hass-uconnect/py-uconnect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_uconnect-0.4.2-py2.py3-none-any.whl.

File metadata

  • Download URL: py_uconnect-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py_uconnect-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea5e114cbb77443414f70de4787d20d4197cce3dfce85861535270a63276649c
MD5 03e3a5bb0fdcb9cb338040cb6e39294f
BLAKE2b-256 d099507944d23b6933cb5ac8b8cb98587d3e2ce0dbf0d1ee7c31950b23b54355

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_uconnect-0.4.2-py2.py3-none-any.whl:

Publisher: pypi.yml on hass-uconnect/py-uconnect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page