evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Polestar - Login failed

Open GitJS01 opened this issue 8 months ago β€’ 5 comments

Describe the bug

Since midnight tonight, I've been getting the following message in my evcc v0.303.1: creating vehicle PS2 failed: cannot create vehicle type β€˜template’: cannot create vehicle type β€˜polestar’: login failed: could not find resume path Has Polestar changed something again?

Steps to reproduce

  1. Start evcc
  2. Message in the Log

Configuration details

vehicles:
- name: PS2
  type: template
  template: polestar
  user: [email protected]
  password: passwd
  vin: LPSVxxxxxxx
  title: DE-DE-123E
  capacity: 78

Log details

[main ] ERROR 2026/03/20 09:29:20 creating vehicle PS2 failed: cannot create vehicle type 'template': cannot create vehicle type 'polestar': login failed: could not find resume path

What type of operating system or environment does evcc run on?

Docker container

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

v0.303.1

GitJS01 avatar Mar 20 '26 08:03 GitJS01

needs trace log

andig avatar Mar 20 '26 08:03 andig

I still got this error. The polestar2mqtt docker from consulitas (polestar.fans) does work, cause my iobroker shows the current percentage... but the evcc app shows this, even after reboot [main ] ERROR 2026/03/22 09:59:56 creating vehicle db:11 failed: cannot create vehicle type 'template': cannot create vehicle type 'polestar': login failed: could not find resume path

oswaldo-be avatar Mar 22 '26 09:03 oswaldo-be

https://github.com/evcc-io/evcc/issues/28378#issuecomment-4096604051

andig avatar Mar 22 '26 09:03 andig

#28378 (comment)

I would really like to help. How can i send you this log, when running evcc as App in HAOS? HAOS -> System -> Protokolle -> evcc

[main  ] ERROR 2026/03/22 06:51:12 creating vehicle db:11 failed: cannot create vehicle type 'template': cannot create vehicle type 'polestar': login failed: could not find resume path
[main  ] WARN 2026/03/22 06:51:12 tariffs configured via UI; evcc.yaml config will be ignored
[site  ] INFO 2026/03/22 06:51:14 site config:
[site  ] INFO 2026/03/22 06:51:14   meters:      grid βœ“ pv βœ“ battery βœ“
[site  ] INFO 2026/03/22 06:51:14     grid:      power βœ“ energy βœ“ currents βœ“
[site  ] INFO 2026/03/22 06:51:14     pv 1:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2026/03/22 06:51:14     pv 2:      power βœ“ energy βœ“ currents βœ—
[site  ] INFO 2026/03/22 06:51:14     battery 1: power βœ“ energy βœ“ currents βœ— soc βœ“ capacity βœ“
[site  ] INFO 2026/03/22 06:51:14   vehicles:
[site  ] INFO 2026/03/22 06:51:14     vehicle 1: range βœ— finish βœ— status βœ— climate βœ— wakeup βœ—
[site  ] INFO 2026/03/22 06:51:14   tariffs:
[site  ] INFO 2026/03/22 06:51:14     grid:      pricestatic
[site  ] INFO 2026/03/22 06:51:14     feed-in:   βœ—
[site  ] INFO 2026/03/22 06:51:14     co2:       βœ“
[site  ] INFO 2026/03/22 06:51:14     solar:     βœ“
[lp-1  ] INFO 2026/03/22 06:51:14 loadpoint 1:
[lp-1  ] INFO 2026/03/22 06:51:14   mode:        pv
[lp-1  ] INFO 2026/03/22 06:51:14   charger:     power βœ“ energy βœ“ currents βœ“ phases βœ— wakeup βœ—
[lp-1  ] INFO 2026/03/22 06:51:14   meters:      charge βœ“
[lp-1  ] INFO 2026/03/22 06:51:14     charge:    power βœ“ energy βœ“ currents βœ“
[lp-1  ] INFO 2026/03/22 06:51:14 vehicle updated: unknown -> Polestar  2
[lp-1  ] INFO 2026/03/22 06:51:14 car connected

Found something:

[polestar] TRACE 2026/03/22 11:04:40 GET https://polestarid.eu.polestar.com/as/authorization.oauth2?client_id=l3oopkc_10&code_challenge=XXX-XXX&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fwww.polestar.com%2Fsign-in-callback&response_type=code&scope=openid&scope=profile&scope=email&state=XXX
[polestar] TRACE 2026/03/22 11:04:40 GET https://www.polestar.com/sign-in-callback?error_description=Repeated+parameter%28s%29%3A+scope&state=ZC4Q8gYGOXvMX3zN&error=invalid_request#.
[polestar] TRACE 2026/03/22 11:04:40 <!DOCTYPE html><html style="scroll-behavior: smooth"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Pure progressive performance | Polestar</title><meta name="description" content="Passion and emotion drive us, electricity and innovation drive our cars. We are all in, guiding our industry forward through pure, progressive, performance."><meta name="application-name" content="Polestar"><meta name="mobile-web-app-capable" content="yes"><meta name="theme-color" content="#ffffff"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="apple-mobile-web-app-title" content="Polestar"><link rel="shortcut icon" href="https://www.polestar.com/w3-assets/favicon.ico"><link rel="apple-touch-icon" href="https://www.polestar.com/w3-assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="https://www.polestar.com/w3-assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="https://www.polestar.com/w3-assets/favicon-16x16.png"><link rel="mask-icon" href="https://www.polestar.com/w3-assets/safari-pinned-tab.svg" color="#000000"><link rel="icon" type="image/png" sizes="228x228" href="https://www.polestar.com/w3-assets/coast-228x228.png"><meta name="msapplication-TileColor" content="#ffffff"><meta name="msapplication-TileImage" content="https://www.polestar.com/w3-assets/mstile-144x144.png"><meta name="msapplication-config" content="https://www.polestar.com/w3-assets/browserconfig.xml"><link rel="yandex-tableau-widget" href="https://www.polestar.com/w3-assets/yandex-browser-manifest.json"><link rel="preconnect" crossorigin="anonymous" href="https://cdnjs.cloudflare.com/"><link rel="preload" as="script" crossorigin="anonymous" href="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=3.111.0&features=document.querySelector%2Cdefault%2Cfetch"><script>let hasAppliedConsent = false;
      function extractCookieBannerParam() {
        try {
          const url = new URL(window.location.href);
          const direct = url.searchParams.get('cookie_banner');
          if (direct) return direct;

          const loginUri = url.searchParams.get('login_uri');
          if (loginUri) {
            return new URLSearchParams(new URL(loginUri).search).get('cookie_banner');
          }

          const toParam = url.searchParams.get('to');
          if (toParam?.includes('?')) {
            return new URLSearchParams(toParam.split('?')[1]).get('cookie_banner');
          }

          return null;
        } catch {
          return null;
        }
      }

      window.OptanonWrapper = function () {
        if (hasAppliedConsent) return;
        hasAppliedConsent = true;

        const cookieBannerParam = extractCookieBannerParam();

        if (cookieBannerParam === 'disable') {
          return;
        }

        window.dispatchEvent(new Event('consent.onetrust'));
      };</script><script>(function () {
        function shouldDisableCookieBanner() {
          try {
            const url = new URL(window.location.href);
            const direct = url.searchParams.get('cookie_banner');
            if (direct === 'disable') return true;

            const loginUri = url.searchParams.get('login_uri');
            if (loginUri) {
              const cookieBannerParam = new URLSearchParams(new URL(loginUri).search).get(
                'cookie_banner',
              );
              if (cookieBannerParam === 'disable') return true;
            }

            const toParam = url.searchParams.get('to');
            if (toParam?.includes('?')) {
              const cookieBannerParam = new URLSearchParams(toParam.split('?')[1]).get(
                'cookie_banner',
              );
              if (cookieBannerParam === 'disable') return true;
            }

            return false;
          } catch {
            return false;
          }
        }

        const deniedPaths = [
          '/login/create-account',
          '/login/reset-password/initiate',
          '/login/account',
          '/login/create-account/',
          '/login/reset-password/initiate/',
          '/login/account/',
        ];

        const allowCookieBanner =
          !deniedPaths.some((path) => window.location.pathname.endsWith(path)) &&
          !shouldDisableCookieBanner();

        if (!allowCookieBanner) {
          return;
        }

        var script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
        script.setAttribute('data-domain-script', '2b8f0235-bba3-48f8-b40b-77394cd12e03');

        document.write(script.outerHTML);
      })();</script><script>(function (w, d, s, l, i) {
        const deniedPaths = [
          '/login/create-account',
          '/login/reset-password/initiate',
          '/login/account',
          '/login/create-account/',
          '/login/reset-password/initiate/',
          '/login/account/',
        ];

        const allowCookieBanner = !deniedPaths.some((path) =>
          window.location.pathname.endsWith(path),
        );

        if (!allowCookieBanner) {
          return;
        }

        w[l] = w[l] || [];
        w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
        var f = d.getElementsByTagName(s)[0],
          j = d.createElement(s),
          dl = l != 'dataLayer' ? '&l=' + l : '';
        j.async = true;
        j.setAttributeNode(d.createAttribute('data-ot-ignore'));
        j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
        f.parentNode.insertBefore(j, f);
      })(window, document, 'script', 'dataLayer', 'GTM-T6SM3VW');</script><script defer="defer" src="/login/static/767ce343.js" integrity="sha256-XI+ngM0TZo/Q4J1lBJxuwfVi6whrHv6DuA/mbGDZOTk= sha384-ai/R6Vtk0U6UX+rfwS47vO7Iu0KisOEOogez+e3bqjc186sueqo5tC7r9jjOkoQK" crossorigin="anonymous"></script><script defer="defer" src="/login/static/cdfd9503.js" integrity="sha256-2QS7XON4WmWRlScExvEn+HcpzpDnZ/xDE6nBQuXfWP0= sha384-863x3u3g/HNgIGPVlG/4XacGJCR1Xd4E9cJ7aebUSqpZs5wK7NzxFL3rEIPITvQL" crossorigin="anonymous"></script><script defer="defer" src="/login/static/8ecbc33d.js" integrity="sha256-mOADtr1Kveg6eMU+KHQZ295e7XXj3njF1GYHcsidWeM= sha384-zkd2I+ceZuMtAuTLVOAXE2/CWKC5M54lKeLWFjjfPLuFA/NizMhQXzt+JXUTRsPT" crossorigin="anonymous"></script><script defer="defer" src="/login/static/6d4d0428.js" integrity="sha256-25gov4Q0AMbKUKIqje6zNwtyA0akJaZBzuBcLTKE5eM= sha384-hzXfe2WF9rLvhhRVqx6sDZkPVDY2gklwnWrCwWKk7iAxSnPVR5PaaM75ZEzLjXtN" crossorigin="anonymous"></script><script defer="defer" src="/login/static/467034f1.js" integrity="sha256-9nBK7w36MPdLiBZSr9d0WCWkIlCn7GvnNVn9TVjYJJY= sha384-Q8XFcLAOh5gbEgszQa87wzFonMaVGifnWNI9Z4RTJbcHHVNHkkHgJDCZINgPciT2" crossorigin="anonymous"></script><script defer="defer" src="/login/static/cac01ab4.js" integrity="sha256-SLmD8yxw8myLGwS85RERNpJlfmSr0CmVGzeC0Tfis7g= sha384-znXvlrXUN9SWMydvoKbTd26nJhJlDC8NYGHs373NwOxAG6+UnOZk7Tcr4sdrxQ1u" crossorigin="anonymous"></script><script defer="defer" src="/login/static/e476d4f5.js" integrity="sha256-FuxSoacr51T4engGJlsj0OJRyGuhJvV5iSx8EMQsgTQ= sha384-E6AQSE38I8GpKTuQ9UQ+6nmNV/LTIFQGQQmprDpfmNMe9N8do/aP7CqgZcBdjm+x" crossorigin="anonymous"></script><script defer="defer" src="/login/static/9fa39b83.js" integrity="sha256-aMqNgmOete65BeoH9eCMknLrvOCPenhM37Pj/hVmabo= sha384-w8l9HeXkK2lxa1YFuiR7ma768256KLBr9HEZ8arrtTrN9yhTPvhKPUYZFidlOax8" crossorigin="anonymous"></script><script defer="defer" src="/login/static/609cc93d.js" integrity="sha256-ccYfPlHclkO+Kmee4yahITA51mJvJb2Qt7/JfHjBn2c= sha384-D6UygEZetl2hstr+yGFmwGs53p6CpuRFlsmhYf/mQRW5VJH4gNUwXl1pgjR2oAdX" crossorigin="anonymous"></script><script defer="defer" src="/login/static/74679f38.js" integrity="sha256-jrUXC29bo+weUt8unqpn1vpSD2Y3jg9QjrooWDj7CKI= sha384-Wa2q9cV3DuHWxkhOCZtMn/ng7kUkDHCnefbQR534Nm83cvpNOwDH8qXa5YVKL0n+" crossorigin="anonymous"></script><script defer="defer" src="/login/static/a2bcf668.js" integrity="sha256-e5UVo4FgqR15fjmI8jJnXz7mA+NBpqCV5fmQWaJfjmM= sha384-Ojmkg4R17e

oswaldo-be avatar Mar 22 '26 09:03 oswaldo-be

Same issue here with my Polestar 4 (I guess Polestar model does not matter, since they all use the same API) Happy to provide what ever info.

Image

satahub avatar Apr 01 '26 14:04 satahub