Repository navigation
Conversation
control_tailgate(vin, action=TailgateAction.OPEN/CLOSE) sends what the iSmart app sends on an MG S6 EV (decrypted app traffic, UK): request type 9 with a single parameter, 31 = 1 (open) or 2 (close), and no end-of-parameters marker. On that car both were accepted, the tailgate moved, and bootStatus then read 1 and 0. open_tailgate (unlock of lock 2, "Unlock Tailgate" in the app) is unchanged.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
control_tailgate(vin, action=TailgateAction.OPEN | TailgateAction.CLOSE)for cars with a power tailgate.It sends what the iSmart app sends on my MG S6 EV (UK, Trophy), from decrypted app traffic captured with mitmproxy on 7 Nov 2026:
bootStatusthen 1bootStatusthen 0The app sends no end-of-parameters marker (255) with it, so neither does this.
RvcReqType.TAILGATE = "9",RvcParamsId.TAILGATE = 31, andTailgateAction(OPEN = 1,CLOSE = 2) inlocks.open_tailgateis unchanged. It unlocks lock 2, which releases the latch; the app calls that "Unlock Tailgate". Its docstring now says so.tests/test_power_tailgate.pychecks open and close send exactly the captured request, and thatopen_tailgateis unchanged.Only the S6 EV has been checked. Cars without a power tailgate are expected to refuse it. I've had it running in mg-saic-ha since today (as an opt-in "Has Power Tailgate" option), with open and close both confirmed on the car.