Skip to content

Open the R1T tailgate and the side bins over Parallax - #255

Merged
natekspencer merged 1 commit into
mainfrom
r1t-tailgate-side-bins
Nov 16, 2026
Merged

natekspencer merged 1 commit into
mainfrom
r1t-tailgate-side-bins

Conversation

@natekspencer

Copy link
Copy Markdown
Collaborator

Follow-up to #245, which left these two gaps.

Tailgate

OPEN_LIFTGATE_UNLATCH_TAILGATE was always encoded as LIFTGATE, so a Parallax-capable R1T was asked to open a liftgate it doesn't have. The Rivian app opens an R1T's tailgate and any other model's liftgate. encode_vehicle_command now does the same with a new keyword:

encode_vehicle_command(VehicleCommand.OPEN_LIFTGATE_UNLATCH_TAILGATE, model=vehicle["model"])

Without model it raises RivianBadRequestError instead of guessing. (The app falls back to R1T when it doesn't know the model.)

I didn't add the app's separate OPEN_TAILGATE / OPEN_LIFTGATE commands. On an R1T, a legacy OPEN_TAILGATE was accepted but never opened the tailgate. Legacy OPEN_LIFTGATE_UNLATCH_TAILGATE opened it straight away.

Side bins

RELEASE_LEFT_SIDE_BIN and RELEASE_RIGHT_SIDE_BIN now go over Parallax under PVS_BD_CMD, like the app. They open SIDE_BIN_LEFT and SIDE_BIN_RIGHT on body.closures.open.

Testing

  • Unit tests cover the encodings, the routing for R1T, R1S and R2, the missing-model error, and the supported feature for each command.
  • On an R1T over Parallax, the tailgate (via OPEN_LIFTGATE_UNLATCH_TAILGATE with model="R1T") and both side bins opened.
  • When a released bin doesn't clear its latch, the vehicle reports a timeout about 9 s later, but body.closures.states reports the bin open. When the bin is pulled clear, it reports success. Callers may want to treat that timeout as "released, but not fully open", not as a failure.

For the integration

The Parallax dispatch needs to pass model=vehicle["model"].

🤖 Generated with Claude Code

OPEN_LIFTGATE_UNLATCH_TAILGATE was always encoded as the liftgate, which
an R1T doesn't have. Like the Rivian app, encode_vehicle_command now
takes the vehicle's model and opens an R1T's tailgate and any other
model's liftgate; without a model it raises instead of guessing.

RELEASE_LEFT_SIDE_BIN and RELEASE_RIGHT_SIDE_BIN now have their Parallax
equivalents, opening SIDE_BIN_LEFT and SIDE_BIN_RIGHT under PVS_BD_CMD as
the app does.

Tested on an R1T: the tailgate (with the model) and both side bins
opened. The vehicle reports a timeout when a released bin doesn't clear
its latch, though it then reports the bin open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@natekspencer
natekspencer merged commit eaeb369 into main Nov 16, 2026
6 checks passed
@natekspencer
natekspencer deleted the r1t-tailgate-side-bins branch November 16, 2026 03:47
walthowd added a commit to walthowd/home-assistant-rivian that referenced this pull request Nov 16, 2026
bretterer/rivian-python-client#255 opens an R1T's tailgate and any other model's
liftgate over Parallax, so `encode_vehicle_command` needs the model for
`OPEN_LIFTGATE_UNLATCH_TAILGATE`.
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