# \[APP\]\[Pro\] Nissan Leaf - Switch to smarter driving

**URL:** <https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641>\
**Category:** Apps\
**Tags:** app, community-app\
**Created:** [January 18, 2020, 12:02pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641 "2020-01-18T12:02:41Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![homeyhue99](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@homeyhue99](https://community.homey.app/u/homeyhue99)\
**Post date:** [January 18, 2025, 10:43pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/137 "2025-01-18T22:43:08Z")

</div>

Awesome - thanks for the quick fix!

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [January 19, 2025, 12:16pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/138 "2025-01-19T12:16:18Z")

</div>

I did not fix anything 😁 I guess @Jonas_Enge implemented a fix, but he is probably still looking for someone to take over the project.

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [January 21, 2025, 3:11pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/139 "2025-01-21T15:11:54Z")

</div>

Looks like it stopped working again 😏

 ![1000001145](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14df2dc80ba21e00e733883f43b2f2aecd115367.png)

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [January 21, 2025, 4:52pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/140 "2025-01-21T16:52:37Z")

</div>

I’m not able to log in to the Nissan Connect Android app either, so maybe this time it’s a Nissan server problem?

Update:

Translated from Nissan Support: “A temporary problem has occurred with the Nissan EV app. We are currently fixing the error and waiting for feedback from the technical department.”

Update: working for me again now

---

<div class="post-metadata">

**Author:** ![Matti\_Hirvonen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matti_hirvonen/32/79184_2.png) [@Matti\_Hirvonen](https://community.homey.app/u/Matti_Hirvonen)\
**Post date:** [January 31, 2025, 11:38am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/141 "2025-01-31T11:38:35Z")

</div>

Is it possible to get this work fot after 2019 models also. I´m willing to donate 20€.

---

<div class="post-metadata">

**Author:** ![Joris\_Vandamme](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joris_vandamme/32/66995_2.png) [@Joris\_Vandamme](https://community.homey.app/u/Joris_Vandamme)\
**Post date:** [January 31, 2025, 6:06pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/142 "2025-01-31T18:06:02Z")

</div>

I also want to make a donation for a Homey Nissan Connect app.

---

<div class="post-metadata">

**Author:** ![Bannus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bannus/32/16614_2.png) [@Bannus](https://community.homey.app/u/Bannus)\
**Post date:** [April 11, 2025, 5:01am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/143 "2025-04-11T05:01:26Z")

</div>

Any update: Tried to connect my Leaf (dec 2020), but unfortunately an error too.

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [April 11, 2025, 5:31am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/144 "2025-04-11T05:31:38Z")

</div>

The app works fine, but your car is not supported. Only cars made before may 2019 is supported

---

<div class="post-metadata">

**Author:** ![Bannus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bannus/32/16614_2.png) [@Bannus](https://community.homey.app/u/Bannus)\
**Post date:** [April 11, 2025, 5:54am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/145 "2025-04-11T05:54:02Z")

</div>

Ok Thanks, any outlook to have the 2020- model supported?

---

<div class="post-metadata">

**Author:** ![Bkinsbergen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bkinsbergen/32/124555_2.png) [@Bkinsbergen](https://community.homey.app/u/Bkinsbergen)\
**Post date:** [July 2, 2025, 12:24pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/146 "2025-07-02T12:24:35Z")

</div>

Since two days the homey Nissan app is not fetching data anymore. Are there more people with this problem?

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [July 2, 2025, 1:29pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/147 "2025-07-02T13:29:23Z")

</div>

Looks like Nissan updated their API. [New API endpoint URL · Issue #57 · joeshaw/carwings · GitHub](https://github.com/joeshaw/carwings/issues/57)

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [July 4, 2025, 6:16am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/148 "2025-07-04T06:16:04Z")

</div>

Has anyone taken over this project from @Jonas_Enge and can make the necessary updates?

---

<div class="post-metadata">

**Author:** ![cscheiene](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cscheiene/32/58218_2.png) [@cscheiene](https://community.homey.app/u/cscheiene)\
**Post date:** [July 9, 2025, 7:06am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/149 "2025-07-09T07:06:51Z")

</div>

All ok after the last app update

---

<div class="post-metadata">

**Author:** ![dooniem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dooniem/32/58384_2.png) [@dooniem](https://community.homey.app/u/dooniem)\
**Post date:** [October 13, 2025, 11:18am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/150 "2025-10-13T11:18:01Z")

</div>

Winter is coming, so I took matters into my own hands and wrote a Homeyscript that starts the Climate Controls. This means you finally get the flow card that this app is lacking. Tested October 2025 for Europe. Interested to see if this works for all of you guys….

In order for this to work you will have to manually encrypt your Nissan password to the AES standard Nissan uses. See the comments at the top of the code with for URL and the needed parameters.

```auto
// Start Nissan Leaf Climate Control
//Nissan uses AES encryption of your personal password in order to authenticate you.
//This code needs your encrypted password to work. Go to: 
//https://www.devglan.com/online-tools/aes-encryption-decryption
//Text to encrypt= your password, Cipher Mode:CBC, PKCS5Padding, IV= xaX4ui2PLnwqcc74, key Size= 256, secret= H9YsaE6mr3jBEsAaLC4EJRjn9VXEtTzV

const username = "USERNAME"; //<---Your e-mail
const encryptedPassword = "ENCRYPTED_PASSWORD"; //<---Get this from URL
const regionCode = "NE"; 
// Europe=NE, USA=NNA, Canda=NCI, Australia=NMA, Japan=NML
const baseUrl = "https://gdcportalgw.its-mo.com/api_v250205_NE/gdc/";
const initial_app_str = "9s5rfKVuMrT03RtzajWNcA";

// HTTP POST helper
async function post(endpoint, params) {
  const url = baseUrl + endpoint;
  const body = new URLSearchParams(params);
  const res = await fetch(url, {
    method: "POST",
    headers: {
      "User-Agent": "Mozilla/5.0",
      "Content-Type": "application/x-www-form-urlencoded"
    },
    body: body.toString()
  });

  const text = await res.text();
  try {
    return { ok: true, json: JSON.parse(text), raw: text };
  } catch {
    return { ok: false, error: "Failed to parse JSON", raw: text };
  }
}

async function startClimate() {
  // Login
  const login = await post("UserLoginRequest.php", {
    initial_app_str,
    UserId: username,
    Password: encryptedPassword,
    RegionCode: regionCode
  });
  if (!login.ok || !login.json) return `❌ Login failed: ${login.raw || login.error}`;
  const resp = login.json;

  // Extract VIN, session, timezone
  const car = resp.VehicleInfoList?.vehicleInfo?.find(v => v.custom_sessionid);
  if (!car) return "❌ No valid vehicle session found in login response.";
  const vin = car.vin;
  const session = car.custom_sessionid;
  const tz = resp.CustomerInfo?.Timezone || "Europe/Oslo";

  // Wake-up request (BatteryStatusCheckRequest)
  const wakeup = await post("BatteryStatusCheckRequest.php", {
    RegionCode: regionCode,
    VIN: vin,
    custom_sessionid: session,
    tz: tz
  });
  if (!wakeup.ok || !wakeup.json) return `⚠️ Wake-up failed: ${wakeup.raw || wakeup.error}`;
  const resultKey = wakeup.json?.resultKey;
  if (!resultKey) return `⚠️ Wake-up returned no resultKey: ${wakeup.raw}`;

  // Simple async wait (non-blocking)
async function sleep(ms) {
  const end = Date.now() + ms;
  while (Date.now() < end) await Promise.resolve(); // yield event loop
}

// Poll until wake-up completes (CheckUpdate)
let awake = false;
  for (let i = 0; i < 8; i++) {
    await wait(5000); // ✅ HomeyScript built-in wait (milliseconds)
    const check = await post("BatteryStatusCheckResultRequest.php", {
      RegionCode: regionCode,
      VIN: vin,
      custom_sessionid: session,
      tz: tz,
      resultKey: resultKey
    });
    if (check.ok && check.json && check.json.responseFlag === "1") {
      awake = true;
      break;
    }
  }
  if (!awake) return `⚠️ Vehicle did not respond to wake-up in time (VIN: ${vin})`;

  // Send the AC start command
  const acReq = await post("ACRemoteRequest.php", {
    RegionCode: regionCode,
    VIN: vin,
    custom_sessionid: session,
    tz: tz
  });
  if (!acReq.ok || !acReq.json) return `❌ AC request failed: ${acReq.raw || acReq.error}`;
  if (acReq.json.ErrorCode) return `⚠️ AC API error: ${acReq.json.ErrorCode} - ${acReq.json.ErrorMessage}`;

  return `✅ Climate start command sent successfully`;
}

// Run the flow
return await startClimate();

```

EDIT: Today I did not get a response in time from the car and had to run the flow card twice in order to start the climate control. I learned that Homeyscript have a max run time of 30sec, which is a bit small when talking to Nissan….So I have now made a flow which separates the “poll until wake-up complete” into a separate flow card which can be run as many times as I’d like. So I’m testing out a setup which allow for maximum 40 seconds wait (excluding the login time) before exiting the test. If someone is interested, please reply

---

<div class="post-metadata">

**Author:** ![KSi\_123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ksi_123/32/56497_2.png) [@KSi\_123](https://community.homey.app/u/KSi_123)\
**Post date:** [October 22, 2025, 1:53pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/151 "2025-10-22T13:53:34Z")

</div>

Great work, unfortunately I got the message that vehicle did not respond in time. Probably your splitted script would solve that. Can you share it?

---

<div class="post-metadata">

**Author:** ![Antohagg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/antohagg/32/48013_2.png) [@Antohagg](https://community.homey.app/u/Antohagg)\
**Post date:** [November 8, 2025, 6:43pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/152 "2025-11-08T18:43:50Z")

</div>

**UPDATE: It seems that nissan has introduced case sensitive username, so make sure that you use the same as when first registered.**

Anyone else having issues with the app? Has Nissan changed the api again?

@Jonas_Enge Could it be that the countrycode now needs to be hardcoded as done in the dartnissanconnect here: [Use hardcoded realm · Tobiaswk/dartnissanconnect@0cabf82 · GitHub](https://github.com/Tobiaswk/dartnissanconnect/commit/0cabf82d90db878630dd540b7a018b2a2404c0cd)

---

<div class="post-metadata">

**Author:** ![celox](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/celox/32/79472_2.png) [@celox](https://community.homey.app/u/celox)\
**Post date:** [December 10, 2025, 1:45pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/153 "2025-12-10T13:45:11Z")

</div>

Im late to the show, but I just bought a 2020 Leaf and was very surprised that there were no Homey integrations at all 😃 Even my other crappy Zoe had integration.  
I had a flow for my old car (Zoe) that checks temp in the morning and if its cold enough, just start the heating.

That is all I need 😃 I watched your old youtube short and that looks amazing

---

<div class="post-metadata">

**Author:** ![Ronny\_M](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronny_m/32/149491_2.png) [@Ronny\_M](https://community.homey.app/u/Ronny_M)\
**Post date:** [December 30, 2025, 11:18pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/154 "2025-12-30T23:18:17Z")

</div>

If someone had made another app after May 2019, I think many people would have been happy, I am among those who would be happy to pay a sum on paypal in advance for such an app in Homey!

---

<div class="post-metadata">

**Author:** ![enodis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/enodis/32/122569_2.png) [@enodis](https://community.homey.app/u/enodis)\
**Post date:** [January 4, 2026, 2:01am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/155 "2026-01-04T02:01:05Z")

</div>

I have made an app for NissanConnect, available for test. It should work with Nissan Leaf 2019+. Check this topic for more info:

> [@\[APP\]\[Pro\] NissanConnect - Make your Nissan a part of your smart home](https://community.homey.app/t/app-pro-nissanconnect-make-your-nissan-a-part-of-your-smart-home/147954):
>
> This is a thread for the NissanConnect app, currently available for test. Please inform about issues or feature requests and I will try to fix it. Currently the app support ELECTRIC vehicles only (Leaf, Ariya, Micra?). The app only works in Europe. It has been tested with a Nissan Leaf 2021. [NissanConnect | Homey](https://homey.app/a/eu.nissanconnect/test/)

---

<div class="post-metadata">

**Author:** ![fridtjofsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fridtjofsen/32/153791_2.png) [@fridtjofsen](https://community.homey.app/u/fridtjofsen)\
**Post date:** [February 1, 2026, 12:04pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/156 "2026-02-01T12:04:11Z")

</div>

My take on the frustration of not having an official app for NIssan:

> **[Nissan Connect | Homey](https://homey.app/en-no/app/com.nissan.connect/Nissan-Connect/)**
>
> Every drive starts at home

Please give feedback! Something missing? New features? Bugs?

[Previous page](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641.md?page=3)

[Next page](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641.md?page=5)
