Skip to content

feat: open and close a power tailgate - #523

Merged
nanomad merged 2 commits into
developfrom
feat/power-tailgate
Nov 12, 2026
Merged

nanomad merged 2 commits into
developfrom
feat/power-tailgate

Conversation

@nanomad

@nanomad nanomad commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Uses control_tailgate from saic-ismart-client-ng 0.15.0. It shares the client bump commit with the message time fix PR.

Changes

  • Command: doors/boot/powerTailgate/set with payload open or close. It calls control_tailgate, then refreshes. doors/boot/set (unlock the latch) is unchanged.
  • Opt-in: --power-tailgate-vins / POWER_TAILGATE_VINS, a comma-separated list of VINs. No model configuration code says if a car has a power tailgate. For a car that isn't listed, the handler refuses the command without calling the API and reports Failed: ... plus a command_error event. This also covers command batches (Add sequential MQTT command batches with one final refresh #518), which can run any registered topic.
  • Home Assistant: a "Power Tailgate" cover (device_class: door, no stop button), with its state from doors/boot (bootStatus). For cars that aren't listed, the entity is removed. _publish_cover is new in base.py.
  • README: documents the option and the command.

Not checked

  • Tested on a car only with the client (MG S6 EV, UK). The gateway path is covered by unit tests only.
  • Expect a small conflict with feat: gate HA entities on the vehicle model configuration #499: the discovery calls for windows, doors and tailgate moved into a new __publish_body_sensors() to stay under ruff's statement limit.

Add the doors/boot/powerTailgate/set command (open/close) and a Home
Assistant cover that uses doors/boot as its state. Both are opt-in per
car with POWER_TAILGATE_VINS, since no model configuration flag tells
if a car has a power tailgate. The handler refuses the command for cars
that are not listed. doors/boot/set keeps its lock behaviour.
@nanomad
nanomad merged commit 9c915f7 into develop Nov 12, 2026
11 checks passed
@nanomad
nanomad deleted the feat/power-tailgate branch November 12, 2026 16:19
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.

1 participant