Entities
The integration builds every entity from the vehicle's VIN. Entity IDs follow <platform>.xpeng_<vehicle>_<object_id>, where <vehicle> is the last six characters of the VIN — the same suffix the device name shows. Throughout this page <vehicle> is written literally, e.g. sensor.xpeng_<vehicle>_range; on a real car the placeholder is replaced by those six VIN characters.
The trailing <object_id> is generated by Home Assistant from the entity's English name, not from the integration's internal key=, so the suffix is usually the slugified friendly name — sensor.xpeng_<vehicle>_tyre_pressure_front_left comes from key="tyre_pressure_fl". XPengEntity.suggested_object_id pins the suggestion to the English name so the id is the same in every UI language even though the friendly name is translated; see Translations. No entity is gated on model or trim in the code: a car that does not report a field simply leaves that entity unknown.

The same entities, filtered to the integration, in Settings → Devices & Services → Entities:

Entity counts depend on the vehicle's capabilities, command policy and legacy layout option. Existing entries keep legacy entities until the owner disables Keep legacy buttons and duplicate sensors. New entries use compact mode. Unknown optional hardware is not automatically declared unsupported.
Compact controllers and climate modes
| Entity pattern | Type | State and behavior |
|---|---|---|
cover.xpeng_<vehicle>_trunk | cover | Measured trunk state; separate permissions for opening and closing |
cover.xpeng_<vehicle>_windows | cover | Open means ventilation; close uses service 12; no arbitrary position/full-opening command |
cover.xpeng_<vehicle>_charge_port | cover | Measured port state; motorized actions only when allowed/supported |
switch.xpeng_<vehicle>_charging | switch | Measured charging state, explicit start/stop with acknowledgement checks |
switch.xpeng_<vehicle>_maximum_heating / _maximum_cooling | switch | Capability-gated measured climate modes |
switch.xpeng_<vehicle>_<climate_mode> | switch | Capability-gated measured Refresh, Sterilisation and A/C cleaning |
switch.xpeng_<vehicle>_<climate_mode> | switch | Capability-gated measured rear defrost/Pet mode/Silent Mode; vehicle restrictions still apply |
sensor.xpeng_<vehicle>_hvac_fan_speed | sensor | Raw fan telemetry retained in compact mode; fan-speed control remains withheld |
binary_sensor.xpeng_<vehicle>_climate | binary sensor | Original evcc-compatible climate on/off interface retained with its existing unique ID |
Entity IDs above are defaults; renamed existing IDs are preserved. Front defrost is exposed through the climate entity's preset. Legacy paired buttons and duplicate sensors appear only when the legacy layout is enabled; the evcc interfaces, raw fan reading and independent cabin measurements remain available.
By platform
| Platform | Availability | Notes |
|---|---|---|
sensor | Capability/layout dependent | Raw fan telemetry, cabin measurements and evcc interfaces retained |
binary_sensor | Capability/layout dependent | Includes integration health and evcc climate status |
cover | Up to 3 | Trunk, windows and charge port; separate open/close permissions |
button | Layout/policy dependent | Wake/refresh/horn/flash and optional legacy paired controls |
switch | Capability/layout dependent, plus schedules | Charging, climate modes, X-Guard and accessory power |
number | Capability/layout dependent | Charge limit and retained supported settings; fan control withheld |
select | Hardware dependent | Seat and steering-wheel levels |
climate | 1 per vehicle | Cabin target, power and front defrost |
calendar, image, device_tracker | Per vehicle | Schedules, vehicle image and location |
Battery and charging
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_battery | sensor | % | battery_soc; device class battery, state class measurement |
sensor.xpeng_<vehicle>_charging_state | sensor (enum) | – | 0 Disconnected, 1 Connected, 2 Charging, 3 Complete, 4 Error, 8 Idle, 15 Scheduled; unmapped values render Unknown (n) |
sensor.xpeng_<vehicle>_charge_power | sensor | kW | interval.charge.power |
sensor.xpeng_<vehicle>_charge_voltage | sensor | V | interval.charge.voltage |
sensor.xpeng_<vehicle>_charge_current | sensor | A | interval.charge.electricity |
sensor.xpeng_<vehicle>_charge_rate | sensor | – | Raw interval.charge.charge_rate; no unit or device class declared in code |
sensor.xpeng_<vehicle>_discharge_capacity | sensor | – | Raw interval.charge.discharge_capacity; no unit declared in code |
sensor.xpeng_<vehicle>_charge_current_limit | sensor | A | instant.charge.electric_current_limit + 5 A (key="charge_limit"); wire index 1-27 |
sensor.xpeng_<vehicle>_max_charge | sensor | % | max_range_charge — the configured charge target the car reports |
sensor.xpeng_<vehicle>_charge_time_remaining | sensor | min | time_to_complete_charge_min |
sensor.xpeng_<vehicle>_slow_charge_port | sensor (enum) | – | 0 Closed (flap shut, no cable), 1 Open (flap open, nothing in it), 2 Connected (AC cable in); unmapped → Unknown (n). Export cars have one combined CCS2 port, so there is no fast-port sensor |
sensor.xpeng_<vehicle>_fast_charge_added_range | sensor | km | Range added by a DC session |
sensor.xpeng_<vehicle>_charge_schedule_start | sensor | – | Raw reserve_charge_start_time; format is not declared in code |
sensor.xpeng_<vehicle>_charge_schedule_end | sensor | – | Raw reserve_charge_end_time; format is not declared in code |
binary_sensor.xpeng_<vehicle>_charging | binary_sensor | – | ON when charging_state == 2 or interval charge power > 0 — the second test catches external/EVCC charging |
binary_sensor.xpeng_<vehicle>_plugged_in | binary_sensor | – | ON when the charge port reports Connected (2). Open (1) is a flap with nothing in it, so it is not plugged |
number.xpeng_<vehicle>_charge_limit | number (control) | % | 50–100 in steps of 5; writes the car's charge target |
number.xpeng_<vehicle>_charge_current_limit_control | number (control) | A | 6–32 in steps of 1; writes the AC charge current limit (service_type 4, cmd_type 7). Despite the near-identical name this is not the percentage control above, and it is not an A/C power toggle |
button.xpeng_<vehicle>_start_charging | button | – | Start charging |
button.xpeng_<vehicle>_stop_charging | button | – | Stop charging |
button.xpeng_<vehicle>_open_charge_port | button | – | Opens the charge port. Not created when Motorized charge-port controls is off (manual flap) |
button.xpeng_<vehicle>_close_charge_port | button | – | Closes the charge port. Not created when Motorized charge-port controls is off (manual flap) |
Charging history and energy
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_last_charge_energy | sensor | kWh | Energy taken by the last charge, rounded to 1 dp; device class energy but no state class (it is per-charge, not cumulative) |
sensor.xpeng_<vehicle>_last_charge_range_added | sensor | km | chargeStatistics.addedRange |
sensor.xpeng_<vehicle>_last_charge_duration | sensor | min | Source field is milliseconds; divided by 60,000 |
sensor.xpeng_<vehicle>_energy_consumption_7_day_avg | sensor | kWh/100km | REST report, avgTripEnergyPowerOf7Days; also exposes report_url and avg_7day_kwh_per_100km |
sensor.xpeng_<vehicle>_parked_consumption | sensor | kWh | Standby drain estimate; state class total, resets at local midnight, attributes soc_drop_percent_today, yesterday_kwh, usable_battery_kwh, day, tracking |
WARNING
Energy consumption (7-day avg) is gated per account by XPENG. A secondary (shared) account is refused the underlying report and the endpoint returns exactly 0.0 with no error, while the owner's app shows the real figure. A 0.0 on this sensor must not be read as "no consumption" — when the value is 0.0 the sensor adds a zero_may_mean_restricted attribute saying exactly that. Compare against the owner account's app before trusting it.
Parked consumption is a coarse estimate by design: XPENG reports SOC to whole percent and pushes rarely while asleep, so each observed 1 % drop while parked and not charging is converted with the configured usable pack size (the usable_battery_kwh option, default 87.5 kWh — the G6 Long Range NMC pack; a G6 Standard Range LFP pack is about 66 kWh). Driving and charging are excluded.
Range, trip and driving
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_range | sensor | km | odometer.avalible_driving_distance (field name as spelled by XPENG) |
sensor.xpeng_<vehicle>_odometer | sensor | km | State class total_increasing |
sensor.xpeng_<vehicle>_speed | sensor | km/h | Rounded to 1 dp; also an attribute of the device tracker |
sensor.xpeng_<vehicle>_heading | sensor | – | Raw interval.drive.angle, rounded to 1 dp; no device class |
sensor.xpeng_<vehicle>_shift_state | sensor (enum) | – | 0 N, 1 D, 2 R, 3 P, 4 P; anything else is passed through as its raw string |
sensor.xpeng_<vehicle>_vehicle_mode | sensor (enum) | – | 0 Parked, 1 Standby, 2 Driving; anything else is passed through raw |
sensor.xpeng_<vehicle>_power_state | sensor | – | Raw instant.power.car_power_state; the code declares no mapping |
sensor.xpeng_<vehicle>_range_type | sensor (enum) | – | Diagnostic. 1 NEDC, 2 WLTP, 3 CLTC, 4 Dynamic; unmapped → Unknown (n) |
Tyres
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_tyre_pressure_front_left | sensor | kPa | tpms_pressure_fl; device class pressure, state class measurement |
sensor.xpeng_<vehicle>_tyre_pressure_front_right | sensor | kPa | tpms_pressure_fr |
sensor.xpeng_<vehicle>_tyre_pressure_rear_left | sensor | kPa | tpms_pressure_rl |
sensor.xpeng_<vehicle>_tyre_pressure_rear_right | sensor | kPa | tpms_pressure_rr |
The unit column is what XPENG reports. Home Assistant converts it for display, so the four sensors can show kPa, psi, bar (or hPa, Pa, mbar, inHg, mmHg, atm) without touching the integration's saved data:
- All four at once — Configure → Tyre pressure unit sets the default to Home Assistant unit system, kPa, psi or bar; see Integration options. The default follows your unit system (Settings → System → General).
- One entity — Settings → Devices & Services → Entities → pick the pressure entity → Settings → Unit of measurement. That choice is stored in the entity registry, per entity and per car, and wins over the option above. It survives restarts and renames.
Recorded history is converted with the display unit, so changing either setting does not break long-term statistics.
Doors, windows and body
| Entity | Type | Unit | Notes |
|---|---|---|---|
binary_sensor.xpeng_<vehicle>_lock | binary_sensor | – | Device class lock. ON = unlocked (HA lock semantics); OFF = locked |
binary_sensor.xpeng_<vehicle>_doors | binary_sensor | – | ON when any door, the bonnet or the tailgate is ajar |
binary_sensor.xpeng_<vehicle>_driver_door | binary_sensor | – | Individual ajar flag |
binary_sensor.xpeng_<vehicle>_passenger_door | binary_sensor | – | Individual ajar flag |
binary_sensor.xpeng_<vehicle>_rear_left_door | binary_sensor | – | Individual ajar flag |
binary_sensor.xpeng_<vehicle>_rear_right_door | binary_sensor | – | Individual ajar flag |
binary_sensor.xpeng_<vehicle>_trunk | binary_sensor | – | Tailgate ajar (tail.tail_status == 1) |
binary_sensor.xpeng_<vehicle>_bonnet | binary_sensor | – | Bonnet ajar |
binary_sensor.xpeng_<vehicle>_windows | binary_sensor | – | ON only when a window position is a genuine 0–99 value; 100 = closed, and unparseable values count as closed rather than open |
binary_sensor.xpeng_<vehicle>_temporary_lock | binary_sensor | – | Device class lock; ON = temporary lock engaged (temp_lock_st) |
binary_sensor.xpeng_<vehicle>_trunk_power | binary_sensor | – | Trunk power outlet (V2L) switch state |
sensor.xpeng_<vehicle>_trunk_power_timer | sensor | min | Auto-off countdown reported by the car |
lock.xpeng_<vehicle>_door_lock | lock (control) | – | Lock / unlock. Optimistic; a lock command is followed by a state refresh |
switch.xpeng_<vehicle>_trunk_power | switch (control) | – | Toggles the outlet; ON sets a 60 min auto-off |
number.xpeng_<vehicle>_trunk_power_timer | number (control) | min | Outlet auto-off, 0–1440 in steps of 30; setting 0 switches the outlet off |
button.xpeng_<vehicle>_open_trunk | button | – | Open tailgate |
button.xpeng_<vehicle>_close_trunk | button | – | Close tailgate |
button.xpeng_<vehicle>_close_windows | button | – | Uses the official app close command; physically confirmed on a P7+ (22 October 2026) |
button.xpeng_<vehicle>_vent_windows | button | – | Vents all windows — the only window command verified to work (P7+, 2026-10-22) |
button.xpeng_<vehicle>_open_windows | button | – | Sends the same verified command, which vents; full opening was not observed |
Lights, horn and wake-up
| Entity | Type | Unit | Notes |
|---|---|---|---|
switch.xpeng_<vehicle>_parking_lights | switch (control) | – | Parking lights. Assumed-state: the car returns no state feedback for this, so the switch never knows the truth |
button.xpeng_<vehicle>_flash_lights | button | – | Flash the headlights |
button.xpeng_<vehicle>_honk_horn | button | – | Sound the horn |
button.xpeng_<vehicle>_wake_vehicle | button | – | Force-upload request (wakes the car) |
button.xpeng_<vehicle>_force_update | button | – | Force update, sent on a different message type from Wake vehicle |
Climate and comfort
| Entity | Type | Unit | Notes |
|---|---|---|---|
climate.xpeng_<vehicle>_climate | climate (control) | °C | Modes off / heat_cool; target normally 16–32 °C in 0.5 °C steps, with 15.5/32.5 endpoints only when supported; also supports turn-on/turn-off. hvac_action is inferred (heating below target −0.3, cooling above target +0.3, else idle) |
sensor.xpeng_<vehicle>_cabin_temperature | sensor | °C | hvac_inner_temp_float |
sensor.xpeng_<vehicle>_set_temperature | sensor | °C | hvac_temp_float — the car's own target |
sensor.xpeng_<vehicle>_hvac_fan_speed | sensor | – | Raw hvac_wind_speed; no unit declared |
sensor.xpeng_<vehicle>_hvac_quick_warm | sensor (diagnostic) | – | Raw quick-warm mode flag |
sensor.xpeng_<vehicle>_hvac_quick_cool | sensor (diagnostic) | – | Raw quick-cool mode flag |
sensor.xpeng_<vehicle>_left_comfort_preon_countdown | sensor (diagnostic) | s | Seconds left on the keep-climate preon; device class duration; attribute active |
binary_sensor.xpeng_<vehicle>_climate | binary_sensor | – | ON when hvac_on == 1 |
binary_sensor.xpeng_<vehicle>_climate_auto | binary_sensor | – | ON when hvac_auto == 1 |
binary_sensor.xpeng_<vehicle>_defrost | binary_sensor | – | ON when hvac_defrost == 1 |
binary_sensor.xpeng_<vehicle>_mirror_heating | binary_sensor | – | ON when hvac_mirror_heat_mode == 1 |
switch.xpeng_<vehicle>_front_defrost | switch (control) | – | Legacy-only measured front defrost; compact mode uses the climate preset. Commands wait for correlated acknowledgements. |
number.xpeng_<vehicle>_fan_speed | number (control) | – | Legacy control withheld: its old mapping sets temperature. Raw fan telemetry remains available. |
sensor.xpeng_<vehicle>_driver_seat_heating | sensor | – | Raw level 0–3 |
sensor.xpeng_<vehicle>_passenger_seat_heating | sensor | – | Raw level 0–3 |
sensor.xpeng_<vehicle>_left_rear_seat_heating | sensor | – | Raw level 0–3 |
sensor.xpeng_<vehicle>_right_rear_seat_heating | sensor | – | Raw level 0–3 |
sensor.xpeng_<vehicle>_steering_wheel_heating | sensor | – | Raw level 0–3 |
select.xpeng_<vehicle>_driver_seat_heating | select (control) | – | Off / Heat 1 / Heat 2 / Heat 3 |
select.xpeng_<vehicle>_passenger_seat_heating | select (control) | – | Off / Heat 1 / Heat 2 / Heat 3. The car refuses mode 0 here, so Off does nothing |
select.xpeng_<vehicle>_left_rear_seat_heating | select (control) | – | Off / Heat 1 / Heat 2 / Heat 3 |
select.xpeng_<vehicle>_right_rear_seat_heating | select (control) | – | Off / Heat 1 / Heat 2 / Heat 3 |
select.xpeng_<vehicle>_steering_wheel_heating | select (control) | – | Off / Low / Medium / High |
HVAC schedules
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_hvac_schedules | sensor (diagnostic) | – | Count of appointments. Attributes carry the decoded list (appointment_id, start_time, cycle_type, days, schedule_bitmask, is_valid, action_type) plus next_start_time |
calendar.xpeng_<vehicle>_hvac_schedule | calendar | – | One 15-minute event per valid, due appointment (summary HVAC <actionType>); the day bitmask selects days, with bit 0 = Monday and 0 meaning one-shot. The event property looks 14 days ahead |
switch.xpeng_<vehicle>_hvac_schedule_<appointment> | switch (control) | – | One switch per scheduled appointment, created as schedules are discovered. Its name (and therefore its entity ID) is built from the start time and days, so it differs per car; the entity becomes unavailable if the appointment disappears |
Location and weather
| Entity | Type | Unit | Notes |
|---|---|---|---|
device_tracker.xpeng_<vehicle>_location | device_tracker | – | Source type gps. Latitude/longitude of 0 are treated as no fix and reported as unknown. Since 0.6.24 the position is the last valid fix: a frame that reports its coordinates as not current (interval.drive.coordValid false) does not move the car. Attributes speed, bearing, course, coord_type, coord_valid (the car's own GPS-validity flag, null when it does not report one) and fix_age_s (seconds since the last real fix — a growing number is the honest signal that the car has not reported a position). course is the car's interval.drive.angle as a float and is what the map card rotates the marker from; it is null when the car has not reported an angle, and bearing keeps the same raw value for existing templates |
sensor.xpeng_<vehicle>_latitude | sensor | – | Raw latitude; no device class. An unusable fix does not overwrite it — see the tracker's coord_valid / fix_age_s |
sensor.xpeng_<vehicle>_longitude | sensor | – | Raw longitude; no device class. An unusable fix does not overwrite it — see the tracker's coord_valid / fix_age_s |
sensor.xpeng_<vehicle>_weather_at_vehicle | sensor | °C | Weather at the car from the XPENG assistant service. Attributes include condition (Chinese condition strings mapped to English), temp_min, temp_max, real_feel, humidity, aqi, aqi_rating, cloud_cover, wind_direction, wind_speed, pressure, visibility, sunrise, sunset |
Security, sentinel and X-Guard
| Entity | Type | Unit | Notes |
|---|---|---|---|
binary_sensor.xpeng_<vehicle>_sentinel_mode | binary_sensor | – | ON when ext.soldier_camera_status == 1 |
binary_sensor.xpeng_<vehicle>_x_guard_camera | binary_sensor | – | Reads the same field as Sentinel mode (ext.soldier_camera_status); the two entities can never disagree |
sensor.xpeng_<vehicle>_sentinel_sensitivity | sensor | – | Raw sentinel_mode_sensitivity level |
switch.xpeng_<vehicle>_x_guard | switch (control) | – | Sentinel/X-Guard on/off. Turning it on enables video and sensitivity 2; turning it off zeroes both. Assumed-state |
number.xpeng_<vehicle>_sentinel_sensitivity | number (control) | – | Sensitivity 1–3; any level above 0 also enables video |
button.xpeng_<vehicle>_query_x_guard | button | – | Asks the car to report its X-Guard state |
TIP
The switch entity's translation string sentinel_switch reads X-Guard, the product name, so every language keeps the id switch.xpeng_<vehicle>_x_guard. It is the sibling binary sensor that is named Sentinel mode.
OTA and software
There is no update platform in this integration (no update.py); OTA state is exposed as sensors plus one switch.
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_ota_status | sensor (enum) | – | 0 No update, 1 Available, 2 Downloading, 3 Ready, 4 Installing, 99 Up to date; unmapped → Unknown (n), and a missing status → Unknown |
sensor.xpeng_<vehicle>_ota_last_checked | sensor (diagnostic) | – | device_class: timestamp; when the car last checked for an OTA update. unknown until the car reports it. |
sensor.xpeng_<vehicle>_ota_update | sensor | – | REST view: Available: <version>, Up to date, or Current: <version> when only the installed version is known. Attributes add current_version, os_name, available_version, estimated_minutes, can_cancel_schedule, cdu_version, auto_upgrade (0 disabled / 1 enabled / 2 dispatching) and pending_version |
sensor.xpeng_<vehicle>_xos_version | sensor | – | XOS software version from the REST OTA endpoint |
sensor.xpeng_<vehicle>_beta_program | sensor (diagnostic) | – | REST popup: popupType 1 Upgrade available, 2 Beta test, 3 Mandatory update; otherwise Type n or No data. Attributes carry title, content, version, url, buttonText, cancelText |
switch.xpeng_<vehicle>_ota_auto_upgrade | switch (control) | – | REST auto-upgrade toggle. ON for status ≥ 1 (enabled or dispatching); attribute raw_status gives closed / open / dispatching |
Service, maintenance and scenes
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_next_maintenance | sensor | – | State is <n> days. Attributes next_date, days_remaining, km_remaining, range_distance, range_days, booking_url |
sensor.xpeng_<vehicle>_x_combos | sensor | – | State is <n> active from the X-Combo scenes. Attributes list every scene with id, name, status (RUNNABLE = active), type, description, icon, plus flat scene_<i> / scene_<i>_id / scene_<i>_active helpers for service calls |
sensor.xpeng_<vehicle>_vehicle_extension | sensor (diagnostic) | – | Vehicle alert/notification messages from the REST API; state is <n> messages or No messages |
sensor.xpeng_<vehicle>_remote_capabilities | sensor (diagnostic) | – | State is <n> capabilities; the full capability list is an attribute. This is the entity that tells you what a particular car actually supports |
Vehicle identity and hardware
| Entity | Type | Unit | Notes |
|---|---|---|---|
sensor.xpeng_<vehicle>_vehicle_identity | sensor (diagnostic) | – | Prefers the manufacturer's seriesName, else the offline VIN decode. Attributes include series_code, vehicle_type_name, nick_name, diagram_version, vin_masked, wmi, manufacturer, vds, model_family, body_style, powertrain, miit_model_code, model_year, plant, plant_country, plant_confidence, vin_check_digit_valid, identity_confidence and vin_warnings. The full VIN is deliberately not exposed |
sensor.xpeng_<vehicle>_cdu_id | sensor (diagnostic) | – | Head-unit (CDU) hardware ID; attribute parts_no_eight2ten |
sensor.xpeng_<vehicle>_cdu_partition | sensor (diagnostic) | – | Raw cduAOrBFlag integer. The class docstring states the semantics are not defined in the source |
sensor.xpeng_<vehicle>_tbox_iccid | sensor (diagnostic) | – | TBox SIM ICCID. Only created when an ICCID is configured in the options; there is no app-tier API that exposes it |
image.xpeng_<vehicle>_vehicle_picture | image (diagnostic) | – | Vehicle picture from the cloud vehicle-list response; unavailable until a URL is known |
Remote commands
Every write path is either a button (stateless command) or one of the optimistic control entities. Buttons send an MQTT command straight to the car with no confirmation; the last response is visible on sensor.xpeng_<vehicle>_command_feedback.
Each one exists only as far as Command permissions allows: a group set to Disabled is not created at all, and one set to Read only keeps its state but refuses its commands - so an entity listed below can legitimately be missing. A new install starts at Safe Plus, which has everything here except the OTA switch, the trunk-power outlet, unlocking, the trunk and the windows.
Buttons
| Entity | Family | Action |
|---|---|---|
button.xpeng_<vehicle>_wake_vehicle | Wake / refresh | Force-upload request (wakes the car) |
button.xpeng_<vehicle>_force_update | Wake / refresh | Force update on a separate message type |
button.xpeng_<vehicle>_start_charging | Charging | Start charging |
button.xpeng_<vehicle>_stop_charging | Charging | Stop charging |
button.xpeng_<vehicle>_open_charge_port | Charge port | Open the port |
button.xpeng_<vehicle>_close_charge_port | Charge port | Close the port |
button.xpeng_<vehicle>_open_trunk | Trunk | Open tailgate |
button.xpeng_<vehicle>_close_trunk | Trunk | Close tailgate |
button.xpeng_<vehicle>_open_windows | Windows | Open all windows |
button.xpeng_<vehicle>_close_windows | Windows | Close all windows |
button.xpeng_<vehicle>_vent_windows | Windows | Vent all windows |
button.xpeng_<vehicle>_flash_lights | Lights / horn | Flash headlights |
button.xpeng_<vehicle>_honk_horn | Lights / horn | Sound horn |
button.xpeng_<vehicle>_query_x_guard | Security | Query X-Guard state |
Writable state entities
| Entity | Type | Range / options | Command |
|---|---|---|---|
lock.xpeng_<vehicle>_door_lock | lock | locked / unlocked | Lock or unlock, then wake for a refresh |
climate.xpeng_<vehicle>_climate | climate | off, heat_cool; capability-selected temperature limits | Turn climate on/off or set the target temperature; the entity hardcodes a 15-minute run, which the xpeng.climate_on service exposes as a configurable duration |
switch.xpeng_<vehicle>_x_guard | switch | on / off | Sentinel mode on/off |
switch.xpeng_<vehicle>_trunk_power | switch | on / off | Outlet on (60 min auto-off) / off |
switch.xpeng_<vehicle>_front_defrost | switch | on / off | Legacy-only measured front defrost; compact mode uses the climate preset. Commands wait for correlated acknowledgements. |
switch.xpeng_<vehicle>_parking_lights | switch | on / off | Parking lights (no state feedback) |
switch.xpeng_<vehicle>_ota_auto_upgrade | switch | on / off | REST auto-upgrade setting |
number.xpeng_<vehicle>_charge_limit | number | 50–100 %, step 5 | Charge target |
number.xpeng_<vehicle>_charge_current_limit_control | number | 6–32 A, step 1 | AC charge current limit (cmd_type 7) |
number.xpeng_<vehicle>_fan_speed | number | 1–8 | Legacy control withheld: its old mapping sets temperature. Raw fan telemetry remains available. |
number.xpeng_<vehicle>_sentinel_sensitivity | number | 1–3 | Sentinel sensitivity (also enables video) |
number.xpeng_<vehicle>_trunk_power_timer | number | 0–1440 min, step 30 | Outlet auto-off; 0 switches the outlet off |
select.xpeng_<vehicle>_driver_seat_heating | select | Off / Heat 1 / Heat 2 / Heat 3 | Driver seat heat (cmd_type 1) |
select.xpeng_<vehicle>_passenger_seat_heating | select | Off / Heat 1 / Heat 2 / Heat 3 | Passenger seat heat (cmd_type 0); Off is refused by the car |
select.xpeng_<vehicle>_driver_seat_ventilation | select | Off / Ventilation 1 / Ventilation 2 / Ventilation 3 | Driver seat ventilation |
select.xpeng_<vehicle>_passenger_seat_ventilation | select | Off / Ventilation 1 / Ventilation 2 / Ventilation 3 | Passenger seat ventilation |
select.xpeng_<vehicle>_left_rear_seat_heating | select | Off / Heat 1 / Heat 2 / Heat 3 | Left rear seat heat (cmd_type 3) |
select.xpeng_<vehicle>_right_rear_seat_heating | select | Off / Heat 1 / Heat 2 / Heat 3 | Right rear seat heat (cmd_type 4) |
select.xpeng_<vehicle>_steering_wheel_heating | select | Off / Low / Medium / High | Steering-wheel heat |
The door lock and the trunk cover also carry door_state_updated_at and door_state_age_seconds. instant.door is the one section a parked car stops sending first — it goes quiet before the walk-away lock — so the lock and trunk can report a value hours old while every energy sensor in the same state is fresh. Those two attributes are the section's own clock, and they are absent until something has actually carried that section in the current session.
Besides these entities the integration registers services for the same operations (and for things no entity covers, such as execute_scene, trigger_ota, send_navigation and the HVAC schedule CRUD calls). See the services page.
Diagnostics
These entities answer "is the integration still receiving data?", which is not the same question as "what is the car doing?" — a parked, asleep car produces no messages, and that is normal. All of them are EntityCategory.DIAGNOSTIC (Credential age and Last data update are the two exceptions: they are uncategorised but diagnostic in purpose). The health entities poll themselves every 30 s instead of waiting for a push, because their values keep changing while nothing else happens.
| Entity | Type | Healthy value | Notes |
|---|---|---|---|
binary_sensor.xpeng_<vehicle>_credentials_valid | binary_sensor (diagnostic) | on, attribute reason: connected, no failures recorded (or reason: ok when a fresh session is not up) | ON when the MQTT client has a live session and no failure on record — with mint-on-demand there are deliberately no recent mints to point at while connected — or, when disconnected, when a successful refresh is on record and no older than 3 × mqtt_refresh_interval (135 s at the default 45 s) with no consecutive failures. OFF reasons: no successful refresh yet (never worked since start — points at onboarding), N consecutive failures (the broker refused), no successful refresh for Ns (stale). Other attributes: last_success, age_s, stale_after_s, last_error, account, client_id. The client_id is the install's device identity, truncated to its first 26 characters |
binary_sensor.xpeng_<vehicle>_mqtt_connected | binary_sensor (diagnostic) | on | The paho session to XPENG's broker. Attributes last_state_message_age_s and last_message_age_s; a 0 there means either "arrived this second" or "nothing has arrived yet this session" — the code is explicit that those two are indistinguishable from the client's own clocks |
sensor.xpeng_<vehicle>_polling_status | sensor (diagnostic) | Parked for a parked, quiet car; Active while charging or driving | The one-word answer. Reconnecting = socket down; Silent = nothing meaningful for 300 s with the socket up; Escalated = the watchdog has already sent a force-upload (only after 30 min of silence, at most once per 12 h, unless the last state said the car was moving — then it cannot be woken, so it is one per 10 min and one per episode of motion). Attributes: cadence, mqtt_connected, seconds_since_data (the one to watch — it resets only when a message carried data), state_silence_seconds, any_msg_age_seconds, mqtt_query_interval_seconds, rest_poll_interval_seconds, last_query, escalations_this_session, last_query_at, last_rest_poll_at, last_escalation_at, and last_takeover_at / account_takeovers when a renewal login has evicted the session |
sensor.xpeng_<vehicle>_next_poll | sensor (diagnostic) | A future timestamp | device_class: timestamp. Attributes query_interval_seconds, last_query, timer_started_at, counted_from, timer_granularity_seconds, next_rest_poll_at, seconds_to_next_rest_poll. The due time is not the send time: the timer acts on its own cadence, which is what timer_granularity_seconds reports |
sensor.xpeng_<vehicle>_last_data_update | sensor | A recent timestamp | Last data update in the UI (key="last_update"), device_class: timestamp — Home Assistant renders it in your timezone and can age it. A long age is normal for a sleeping car. Attributes timestamp, age_seconds kept for templates |
sensor.xpeng_<vehicle>_last_data_timestamp | sensor (diagnostic) | The same instant | device_class: timestamp; unknown until the first vehicle message. It duplicates the row above (which was kept on its old entity ID for existing dashboards) — either works in automations. Note the entity ID ends in _last_data_timestamp, not _last_data_update, because object IDs come from names and Last data update already belongs to the sensor above |
sensor.xpeng_<vehicle>_mqtt_listener | sensor (diagnostic) | No messages on a quiet car | Reports <n> messages, or No messages before anything arrives. Attributes message_count, log (rolling 50-event text log, ready for a Markdown card), last_topic, last_payload, last_received |
sensor.xpeng_<vehicle>_mqtt_discovery | sensor (diagnostic) | No discovery until discovery is enabled and has run | Otherwise <accepted> accepted / <rejected> rejected. Attributes accepted_topics, rejected_topics, results |
sensor.xpeng_<vehicle>_command_feedback | sensor (diagnostic) | unknown until a command is answered | The last MQTT command response: message text, else the numeric code, else received. Attributes count, service_type, msg_type, code, message, msg_id, timestamp, recent (last 5) |
sensor.xpeng_<vehicle>_last_notification | sensor (diagnostic) | unknown until something new arrives | Fed by both rare msg_type=3 MQTT frames and the app's server-side Message Centre, polled every notification_poll_interval (300 s by default). count stays at 0 until a new notification arrives — the first poll primes a baseline rather than replaying the inbox. Attributes: count, recent (last 5 records), message, title, category, msg_type, msg_id, timestamp, collected_at, delay_s and raw (the unparsed record — see Capture notifications). The same fields are on the xpeng_notification event, which fires once per item and is the right trigger for capture: the sensor's state is the text, so two identical messages produce one state change. Account-takeover notices are not recorded here (since 0.6.15): the renewal app's login produces one every ~100 min, and it drowned the real notifications. It is on xpeng_account_takeover and the polling_status attributes instead |
sensor.xpeng_<vehicle>_credential_age | sensor | Small just after a reconnect; can climb while a session stays up | How long since a credential was last minted, e.g. 0m / 1m, or Unknown. Credentials are minted on demand, so a long-lived session legitimately has no recent mint and the age climbs; it resets at startup, on a reconnect that minted, and on a renewal import. That is why credentials_valid — which counts a live connection as evidence — is the health signal, not this age. Attributes refreshed_at, age_seconds |
sensor.xpeng_<vehicle>_last_renewal | sensor (diagnostic) | A recent timestamp, or unknown before credentials have ever arrived | device_class: timestamp. When a token + tenant pair was last installed: a renewal by the app, the Repairs card, a reauth, or the flow the app drives on a first install. Stored in the config entry, so it survives a restart — and it is not credential_age above, which follows the on-demand MQTT credential mint. Attributes refreshed_at, age_seconds |
sensor.xpeng_<vehicle>_account | sensor (diagnostic) | The account email | Which XPENG account the tokens belong to, read from the config entry. Falls back to the numeric account ID with an email_unknown_reason attribute for entries imported before the email was recorded. The address is shown in clear text and will therefore be stored by the recorder |
There is no dedicated device-ID sensor: the per-install device identity is surfaced only as the truncated client_id attribute of Credentials valid.
Ambiguities in the source
charge_rateanddischarge_capacityhave no unit or device class in the code; only the raw MQTT field name defines them.charge_schedule_start/charge_schedule_endare passed through raw, with no declared format.cdu_partition(cduAOrBFlag) is deliberately undocumented — the class docstring says its semantics are not defined in the source.sentinel_modeandx_guard_cameraare two binary sensors over one field (soldier_camera_status), so they can never disagree.power_state(car_power_state) has no value mapping in the code.- Every name-bearing entity resolves its friendly name through a translation key now;
sentinel_switch,sentinel_sensitivity_controlandtrunk_power_timer_controlused to be dead strings because those classes set_attr_namedirectly, and the seat/button/cover tables passed aname=. The entity IDs are unchanged: they were always derived from the same English names that are now pinned byXPengEntity.suggested_object_id. - HVAC schedule switches have appointment-derived entity IDs, so they are not stable across cars.
- No entity is gated on model or trim, and none is disabled by default; a field the car or the account does not provide simply reads
unknown.