Skip to content

fix: name front heated seat params by physical side (#51) - #52

Merged
nanomad merged 1 commit into
SAIC-iSmart-API:developfrom
townsmcp:fix/heated-seat-physical-sides
Oct 25, 2026
Merged

nanomad merged 1 commit into
SAIC-iSmart-API:developfrom
townsmcp:fix/heated-seat-physical-sides

Conversation

@townsmcp

Copy link
Copy Markdown

Closes #51. Part of #26.

Builds on the #34 PR (which builds on #33's), so please merge those first. It renames the seats that HeatedSeat (added in #34) refers to. Until they're merged, this PR also shows their commits.

Parameters 17 and 18 are the physical front-left and front-right seats on both left- and right-hand drive cars, not driver/passenger. On a right-hand drive MG S6 EV (UK account, EU servers), the iSmart app's front-left seat (the passenger's) sends 17.

Changes

  • RvcParamsId: HEATED_SEAT_FRONT_LEFT = 17 and HEATED_SEAT_FRONT_RIGHT = 18 are now the main names. HEATED_SEAT_DRIVER / HEATED_SEAT_PASSENGER are kept as aliases of them, so existing code keeps working.
  • HeatedSeat and control_heated_seats: use the new names.
  • Nothing sent to the car changes. tests/test_heated_seat_sides.py checks the new names, that the old ones still resolve to the same parameters, and that control_heated_seats still sends exactly 17, 18, 255 as before.

ruff (check and format), mypy, pylint and pytest all pass locally on Python 3.13.

Parameters 17 and 18 are the front-left and front-right seats on both left-
and right-hand drive cars, not driver/passenger: on a right-hand drive MG S6
EV the iSmart app's front-left (passenger) seat sends 17. Adds
HEATED_SEAT_FRONT_LEFT / HEATED_SEAT_FRONT_RIGHT as the primary names and
keeps HEATED_SEAT_DRIVER / HEATED_SEAT_PASSENGER as aliases, so existing
code keeps working. HeatedSeat and control_heated_seats use the new names;
the bytes sent are unchanged (tested).
@nanomad
nanomad force-pushed the fix/heated-seat-physical-sides branch from 7a9b9a8 to e7368b2 Compare October 25, 2026 15:01
@nanomad
nanomad changed the base branch from master to develop October 25, 2026 15:01
@nanomad
nanomad merged commit c2f170c into SAIC-iSmart-API:develop Oct 25, 2026
4 checks passed
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.

Heated seat parameters 17/18 are front left/right, not driver/passenger

2 participants