Skip to content

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 XPENG device page

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

The entity list, filtered to XPENG

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 patternTypeState and behavior
cover.xpeng_<vehicle>_trunkcoverMeasured trunk state; separate permissions for opening and closing
cover.xpeng_<vehicle>_windowscoverOpen means ventilation; close uses service 12; no arbitrary position/full-opening command
cover.xpeng_<vehicle>_charge_portcoverMeasured port state; motorized actions only when allowed/supported
switch.xpeng_<vehicle>_chargingswitchMeasured charging state, explicit start/stop with acknowledgement checks
switch.xpeng_<vehicle>_maximum_heating / _maximum_coolingswitchCapability-gated measured climate modes
switch.xpeng_<vehicle>_<climate_mode>switchCapability-gated measured Refresh, Sterilisation and A/C cleaning
switch.xpeng_<vehicle>_<climate_mode>switchCapability-gated measured rear defrost/Pet mode/Silent Mode; vehicle restrictions still apply
sensor.xpeng_<vehicle>_hvac_fan_speedsensorRaw fan telemetry retained in compact mode; fan-speed control remains withheld
binary_sensor.xpeng_<vehicle>_climatebinary sensorOriginal 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 ​

PlatformAvailabilityNotes
sensorCapability/layout dependentRaw fan telemetry, cabin measurements and evcc interfaces retained
binary_sensorCapability/layout dependentIncludes integration health and evcc climate status
coverUp to 3Trunk, windows and charge port; separate open/close permissions
buttonLayout/policy dependentWake/refresh/horn/flash and optional legacy paired controls
switchCapability/layout dependent, plus schedulesCharging, climate modes, X-Guard and accessory power
numberCapability/layout dependentCharge limit and retained supported settings; fan control withheld
selectHardware dependentSeat and steering-wheel levels
climate1 per vehicleCabin target, power and front defrost
calendar, image, device_trackerPer vehicleSchedules, vehicle image and location

Battery and charging ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_batterysensor%battery_soc; device class battery, state class measurement
sensor.xpeng_<vehicle>_charging_statesensor (enum)–0 Disconnected, 1 Connected, 2 Charging, 3 Complete, 4 Error, 8 Idle, 15 Scheduled; unmapped values render Unknown (n)
sensor.xpeng_<vehicle>_charge_powersensorkWinterval.charge.power
sensor.xpeng_<vehicle>_charge_voltagesensorVinterval.charge.voltage
sensor.xpeng_<vehicle>_charge_currentsensorAinterval.charge.electricity
sensor.xpeng_<vehicle>_charge_ratesensor–Raw interval.charge.charge_rate; no unit or device class declared in code
sensor.xpeng_<vehicle>_discharge_capacitysensor–Raw interval.charge.discharge_capacity; no unit declared in code
sensor.xpeng_<vehicle>_charge_current_limitsensorAinstant.charge.electric_current_limit + 5 A (key="charge_limit"); wire index 1-27
sensor.xpeng_<vehicle>_max_chargesensor%max_range_charge — the configured charge target the car reports
sensor.xpeng_<vehicle>_charge_time_remainingsensormintime_to_complete_charge_min
sensor.xpeng_<vehicle>_slow_charge_portsensor (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_rangesensorkmRange added by a DC session
sensor.xpeng_<vehicle>_charge_schedule_startsensor–Raw reserve_charge_start_time; format is not declared in code
sensor.xpeng_<vehicle>_charge_schedule_endsensor–Raw reserve_charge_end_time; format is not declared in code
binary_sensor.xpeng_<vehicle>_chargingbinary_sensor–ON when charging_state == 2 or interval charge power > 0 — the second test catches external/EVCC charging
binary_sensor.xpeng_<vehicle>_plugged_inbinary_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_limitnumber (control)%50–100 in steps of 5; writes the car's charge target
number.xpeng_<vehicle>_charge_current_limit_controlnumber (control)A6–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_chargingbutton–Start charging
button.xpeng_<vehicle>_stop_chargingbutton–Stop charging
button.xpeng_<vehicle>_open_charge_portbutton–Opens the charge port. Not created when Motorized charge-port controls is off (manual flap)
button.xpeng_<vehicle>_close_charge_portbutton–Closes the charge port. Not created when Motorized charge-port controls is off (manual flap)

Charging history and energy ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_last_charge_energysensorkWhEnergy 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_addedsensorkmchargeStatistics.addedRange
sensor.xpeng_<vehicle>_last_charge_durationsensorminSource field is milliseconds; divided by 60,000
sensor.xpeng_<vehicle>_energy_consumption_7_day_avgsensorkWh/100kmREST report, avgTripEnergyPowerOf7Days; also exposes report_url and avg_7day_kwh_per_100km
sensor.xpeng_<vehicle>_parked_consumptionsensorkWhStandby 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 ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_rangesensorkmodometer.avalible_driving_distance (field name as spelled by XPENG)
sensor.xpeng_<vehicle>_odometersensorkmState class total_increasing
sensor.xpeng_<vehicle>_speedsensorkm/hRounded to 1 dp; also an attribute of the device tracker
sensor.xpeng_<vehicle>_headingsensor–Raw interval.drive.angle, rounded to 1 dp; no device class
sensor.xpeng_<vehicle>_shift_statesensor (enum)–0 N, 1 D, 2 R, 3 P, 4 P; anything else is passed through as its raw string
sensor.xpeng_<vehicle>_vehicle_modesensor (enum)–0 Parked, 1 Standby, 2 Driving; anything else is passed through raw
sensor.xpeng_<vehicle>_power_statesensor–Raw instant.power.car_power_state; the code declares no mapping
sensor.xpeng_<vehicle>_range_typesensor (enum)–Diagnostic. 1 NEDC, 2 WLTP, 3 CLTC, 4 Dynamic; unmapped → Unknown (n)

Tyres ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_tyre_pressure_front_leftsensorkPatpms_pressure_fl; device class pressure, state class measurement
sensor.xpeng_<vehicle>_tyre_pressure_front_rightsensorkPatpms_pressure_fr
sensor.xpeng_<vehicle>_tyre_pressure_rear_leftsensorkPatpms_pressure_rl
sensor.xpeng_<vehicle>_tyre_pressure_rear_rightsensorkPatpms_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 ​

EntityTypeUnitNotes
binary_sensor.xpeng_<vehicle>_lockbinary_sensor–Device class lock. ON = unlocked (HA lock semantics); OFF = locked
binary_sensor.xpeng_<vehicle>_doorsbinary_sensor–ON when any door, the bonnet or the tailgate is ajar
binary_sensor.xpeng_<vehicle>_driver_doorbinary_sensor–Individual ajar flag
binary_sensor.xpeng_<vehicle>_passenger_doorbinary_sensor–Individual ajar flag
binary_sensor.xpeng_<vehicle>_rear_left_doorbinary_sensor–Individual ajar flag
binary_sensor.xpeng_<vehicle>_rear_right_doorbinary_sensor–Individual ajar flag
binary_sensor.xpeng_<vehicle>_trunkbinary_sensor–Tailgate ajar (tail.tail_status == 1)
binary_sensor.xpeng_<vehicle>_bonnetbinary_sensor–Bonnet ajar
binary_sensor.xpeng_<vehicle>_windowsbinary_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_lockbinary_sensor–Device class lock; ON = temporary lock engaged (temp_lock_st)
binary_sensor.xpeng_<vehicle>_trunk_powerbinary_sensor–Trunk power outlet (V2L) switch state
sensor.xpeng_<vehicle>_trunk_power_timersensorminAuto-off countdown reported by the car
lock.xpeng_<vehicle>_door_locklock (control)–Lock / unlock. Optimistic; a lock command is followed by a state refresh
switch.xpeng_<vehicle>_trunk_powerswitch (control)–Toggles the outlet; ON sets a 60 min auto-off
number.xpeng_<vehicle>_trunk_power_timernumber (control)minOutlet auto-off, 0–1440 in steps of 30; setting 0 switches the outlet off
button.xpeng_<vehicle>_open_trunkbutton–Open tailgate
button.xpeng_<vehicle>_close_trunkbutton–Close tailgate
button.xpeng_<vehicle>_close_windowsbutton–Uses the official app close command; physically confirmed on a P7+ (22 October 2026)
button.xpeng_<vehicle>_vent_windowsbutton–Vents all windows — the only window command verified to work (P7+, 2026-10-22)
button.xpeng_<vehicle>_open_windowsbutton–Sends the same verified command, which vents; full opening was not observed

Lights, horn and wake-up ​

EntityTypeUnitNotes
switch.xpeng_<vehicle>_parking_lightsswitch (control)–Parking lights. Assumed-state: the car returns no state feedback for this, so the switch never knows the truth
button.xpeng_<vehicle>_flash_lightsbutton–Flash the headlights
button.xpeng_<vehicle>_honk_hornbutton–Sound the horn
button.xpeng_<vehicle>_wake_vehiclebutton–Force-upload request (wakes the car)
button.xpeng_<vehicle>_force_updatebutton–Force update, sent on a different message type from Wake vehicle

Climate and comfort ​

EntityTypeUnitNotes
climate.xpeng_<vehicle>_climateclimate (control)°CModes 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_temperaturesensor°Chvac_inner_temp_float
sensor.xpeng_<vehicle>_set_temperaturesensor°Chvac_temp_float — the car's own target
sensor.xpeng_<vehicle>_hvac_fan_speedsensor–Raw hvac_wind_speed; no unit declared
sensor.xpeng_<vehicle>_hvac_quick_warmsensor (diagnostic)–Raw quick-warm mode flag
sensor.xpeng_<vehicle>_hvac_quick_coolsensor (diagnostic)–Raw quick-cool mode flag
sensor.xpeng_<vehicle>_left_comfort_preon_countdownsensor (diagnostic)sSeconds left on the keep-climate preon; device class duration; attribute active
binary_sensor.xpeng_<vehicle>_climatebinary_sensor–ON when hvac_on == 1
binary_sensor.xpeng_<vehicle>_climate_autobinary_sensor–ON when hvac_auto == 1
binary_sensor.xpeng_<vehicle>_defrostbinary_sensor–ON when hvac_defrost == 1
binary_sensor.xpeng_<vehicle>_mirror_heatingbinary_sensor–ON when hvac_mirror_heat_mode == 1
switch.xpeng_<vehicle>_front_defrostswitch (control)–Legacy-only measured front defrost; compact mode uses the climate preset. Commands wait for correlated acknowledgements.
number.xpeng_<vehicle>_fan_speednumber (control)–Legacy control withheld: its old mapping sets temperature. Raw fan telemetry remains available.
sensor.xpeng_<vehicle>_driver_seat_heatingsensor–Raw level 0–3
sensor.xpeng_<vehicle>_passenger_seat_heatingsensor–Raw level 0–3
sensor.xpeng_<vehicle>_left_rear_seat_heatingsensor–Raw level 0–3
sensor.xpeng_<vehicle>_right_rear_seat_heatingsensor–Raw level 0–3
sensor.xpeng_<vehicle>_steering_wheel_heatingsensor–Raw level 0–3
select.xpeng_<vehicle>_driver_seat_heatingselect (control)–Off / Heat 1 / Heat 2 / Heat 3
select.xpeng_<vehicle>_passenger_seat_heatingselect (control)–Off / Heat 1 / Heat 2 / Heat 3. The car refuses mode 0 here, so Off does nothing
select.xpeng_<vehicle>_left_rear_seat_heatingselect (control)–Off / Heat 1 / Heat 2 / Heat 3
select.xpeng_<vehicle>_right_rear_seat_heatingselect (control)–Off / Heat 1 / Heat 2 / Heat 3
select.xpeng_<vehicle>_steering_wheel_heatingselect (control)–Off / Low / Medium / High

HVAC schedules ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_hvac_schedulessensor (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_schedulecalendar–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 ​

EntityTypeUnitNotes
device_tracker.xpeng_<vehicle>_locationdevice_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>_latitudesensor–Raw latitude; no device class. An unusable fix does not overwrite it — see the tracker's coord_valid / fix_age_s
sensor.xpeng_<vehicle>_longitudesensor–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_vehiclesensor°CWeather 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 ​

EntityTypeUnitNotes
binary_sensor.xpeng_<vehicle>_sentinel_modebinary_sensor–ON when ext.soldier_camera_status == 1
binary_sensor.xpeng_<vehicle>_x_guard_camerabinary_sensor–Reads the same field as Sentinel mode (ext.soldier_camera_status); the two entities can never disagree
sensor.xpeng_<vehicle>_sentinel_sensitivitysensor–Raw sentinel_mode_sensitivity level
switch.xpeng_<vehicle>_x_guardswitch (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_sensitivitynumber (control)–Sensitivity 1–3; any level above 0 also enables video
button.xpeng_<vehicle>_query_x_guardbutton–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.

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_ota_statussensor (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_checkedsensor (diagnostic)–device_class: timestamp; when the car last checked for an OTA update. unknown until the car reports it.
sensor.xpeng_<vehicle>_ota_updatesensor–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_versionsensor–XOS software version from the REST OTA endpoint
sensor.xpeng_<vehicle>_beta_programsensor (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_upgradeswitch (control)–REST auto-upgrade toggle. ON for status ≥ 1 (enabled or dispatching); attribute raw_status gives closed / open / dispatching

Service, maintenance and scenes ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_next_maintenancesensor–State is <n> days. Attributes next_date, days_remaining, km_remaining, range_distance, range_days, booking_url
sensor.xpeng_<vehicle>_x_combossensor–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_extensionsensor (diagnostic)–Vehicle alert/notification messages from the REST API; state is <n> messages or No messages
sensor.xpeng_<vehicle>_remote_capabilitiessensor (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 ​

EntityTypeUnitNotes
sensor.xpeng_<vehicle>_vehicle_identitysensor (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_idsensor (diagnostic)–Head-unit (CDU) hardware ID; attribute parts_no_eight2ten
sensor.xpeng_<vehicle>_cdu_partitionsensor (diagnostic)–Raw cduAOrBFlag integer. The class docstring states the semantics are not defined in the source
sensor.xpeng_<vehicle>_tbox_iccidsensor (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_pictureimage (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 ​

EntityFamilyAction
button.xpeng_<vehicle>_wake_vehicleWake / refreshForce-upload request (wakes the car)
button.xpeng_<vehicle>_force_updateWake / refreshForce update on a separate message type
button.xpeng_<vehicle>_start_chargingChargingStart charging
button.xpeng_<vehicle>_stop_chargingChargingStop charging
button.xpeng_<vehicle>_open_charge_portCharge portOpen the port
button.xpeng_<vehicle>_close_charge_portCharge portClose the port
button.xpeng_<vehicle>_open_trunkTrunkOpen tailgate
button.xpeng_<vehicle>_close_trunkTrunkClose tailgate
button.xpeng_<vehicle>_open_windowsWindowsOpen all windows
button.xpeng_<vehicle>_close_windowsWindowsClose all windows
button.xpeng_<vehicle>_vent_windowsWindowsVent all windows
button.xpeng_<vehicle>_flash_lightsLights / hornFlash headlights
button.xpeng_<vehicle>_honk_hornLights / hornSound horn
button.xpeng_<vehicle>_query_x_guardSecurityQuery X-Guard state

Writable state entities ​

EntityTypeRange / optionsCommand
lock.xpeng_<vehicle>_door_locklocklocked / unlockedLock or unlock, then wake for a refresh
climate.xpeng_<vehicle>_climateclimateoff, heat_cool; capability-selected temperature limitsTurn 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_guardswitchon / offSentinel mode on/off
switch.xpeng_<vehicle>_trunk_powerswitchon / offOutlet on (60 min auto-off) / off
switch.xpeng_<vehicle>_front_defrostswitchon / offLegacy-only measured front defrost; compact mode uses the climate preset. Commands wait for correlated acknowledgements.
switch.xpeng_<vehicle>_parking_lightsswitchon / offParking lights (no state feedback)
switch.xpeng_<vehicle>_ota_auto_upgradeswitchon / offREST auto-upgrade setting
number.xpeng_<vehicle>_charge_limitnumber50–100 %, step 5Charge target
number.xpeng_<vehicle>_charge_current_limit_controlnumber6–32 A, step 1AC charge current limit (cmd_type 7)
number.xpeng_<vehicle>_fan_speednumber1–8Legacy control withheld: its old mapping sets temperature. Raw fan telemetry remains available.
number.xpeng_<vehicle>_sentinel_sensitivitynumber1–3Sentinel sensitivity (also enables video)
number.xpeng_<vehicle>_trunk_power_timernumber0–1440 min, step 30Outlet auto-off; 0 switches the outlet off
select.xpeng_<vehicle>_driver_seat_heatingselectOff / Heat 1 / Heat 2 / Heat 3Driver seat heat (cmd_type 1)
select.xpeng_<vehicle>_passenger_seat_heatingselectOff / Heat 1 / Heat 2 / Heat 3Passenger seat heat (cmd_type 0); Off is refused by the car
select.xpeng_<vehicle>_driver_seat_ventilationselectOff / Ventilation 1 / Ventilation 2 / Ventilation 3Driver seat ventilation
select.xpeng_<vehicle>_passenger_seat_ventilationselectOff / Ventilation 1 / Ventilation 2 / Ventilation 3Passenger seat ventilation
select.xpeng_<vehicle>_left_rear_seat_heatingselectOff / Heat 1 / Heat 2 / Heat 3Left rear seat heat (cmd_type 3)
select.xpeng_<vehicle>_right_rear_seat_heatingselectOff / Heat 1 / Heat 2 / Heat 3Right rear seat heat (cmd_type 4)
select.xpeng_<vehicle>_steering_wheel_heatingselectOff / Low / Medium / HighSteering-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.

EntityTypeHealthy valueNotes
binary_sensor.xpeng_<vehicle>_credentials_validbinary_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_connectedbinary_sensor (diagnostic)onThe 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_statussensor (diagnostic)Parked for a parked, quiet car; Active while charging or drivingThe 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_pollsensor (diagnostic)A future timestampdevice_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_updatesensorA recent timestampLast 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_timestampsensor (diagnostic)The same instantdevice_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_listenersensor (diagnostic)No messages on a quiet carReports <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_discoverysensor (diagnostic)No discovery until discovery is enabled and has runOtherwise <accepted> accepted / <rejected> rejected. Attributes accepted_topics, rejected_topics, results
sensor.xpeng_<vehicle>_command_feedbacksensor (diagnostic)unknown until a command is answeredThe 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_notificationsensor (diagnostic)unknown until something new arrivesFed 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_agesensorSmall just after a reconnect; can climb while a session stays upHow 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_renewalsensor (diagnostic)A recent timestamp, or unknown before credentials have ever arriveddevice_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>_accountsensor (diagnostic)The account emailWhich 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_rate and discharge_capacity have no unit or device class in the code; only the raw MQTT field name defines them.
  • charge_schedule_start / charge_schedule_end are 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_mode and x_guard_camera are 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_control and trunk_power_timer_control used to be dead strings because those classes set _attr_name directly, and the seat/button/cover tables passed a name=. The entity IDs are unchanged: they were always derived from the same English names that are now pinned by XPengEntity.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.