Skip to content

JLR InControl v1.4.6

Choose a tag to compare

@github-actions github-actions released this 28 Aug 12:06
949d4c5

Fixes vehicle location repeatedly asking you to sign in again.

Update, then sign in once more — Settings → Devices & Services → Jaguar Land Rover InControl → ⋮ → Reconfigure. The improved sign-in capture only applies to a new sign-in. Apologies for asking again; this one is based on a captured exchange rather than a guess.

What was actually wrong

A bounce back to the login page means one of two things, and they look identical from the outside: the session expired, or the request reached an identity server that never held it. It was the second, every time.

Jaguar Land Rover's identity service sits behind a load balancer. The session cookie is necessary but not sufficient — a companion cookie routes the request to the server actually holding the session, and two more route inside their gateway. All of them arrive together when you sign in. Send the session without its siblings and you get the login page, looking for all the world like an expired session. That is what the previous few attempts were chasing.

Two fixes:

  • The refresh only collected cookies applying to the site root, silently excluding two scoped to a subpath. It now takes the whole set.
  • The session cookie's value is something the sign-in already returns separately, so it is now derived from that as well — the one cookie that cannot be missing no longer depends on it being noticed.

After this, a sign-in should last rather than needing repeating within the hour. If it still does not, that is worth reporting: it would mean the session really is short-lived, which is a different problem with a different answer.

Live vehicle status has been unaffected by all of this throughout.

What's Changed

  • Carry the whole identity cookie set, not just the session

Installation

HACS (recommended)

Add https://github.com/willbeeching/ha-jlr-incontrol as a custom repository (category Integration), install, and restart Home Assistant.

Manual

Download jlr_incontrol.zip, extract into config/custom_components/, and restart Home Assistant.