# \[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:** 2

<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:** [August 24, 2023, 9:03pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/97 "2023-08-24T21:03:03Z")

</div>

Ok, I had a go at the code and tried the leaf-connect directly to see what kind of response I got, but couldnt get that one to work either, it throws me and Crypto/Cipher error, so I guess we have to wait until @Jonas_Enge have time to have a look at it.

---

<div class="post-metadata">

**Author:** ![Daniel-567219](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel-567219/32/79186_2.png) [@Daniel-567219](https://community.homey.app/u/Daniel-567219)\
**Post date:** [August 27, 2023, 10:27am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/98 "2023-08-27T10:27:27Z")

</div>

I have been trying to make an app like this myself this summer without any success. I also tried leaf-connect and got this error: ERR\_OSSL\_EVP\_UNSUPPORTED

It seems like it’s en error with the open ssl versions. The error started coming with node js 17 but have tried running the leaf-connect with node js 16.20 and got the same error.

I just started learning JavaScript so don’t know if it’s the right rabbit hole, but wanted to 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:** [August 27, 2023, 3:21pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/99 "2023-08-27T15:21:19Z")

</div>

Same as me then, Looks like there is something fishy in the encrypt-password.js, but not 100% sure. But the strange thing is that when running it in homey the login seems to work since it actually can connect and login but when running leaf-connect directly, it Looks like it cant login.

---

<div class="post-metadata">

**Author:** ![Jonas\_Enge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonas_enge/32/81300_2.png) [@Jonas\_Enge](https://community.homey.app/u/Jonas_Enge)\
**Post date:** [August 28, 2023, 5:03pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/100 "2023-08-28T17:03:23Z")

</div>

I [fixed](https://github.com/Alheimsins/leaf-connect/commit/5a9eb16487f406a480819409b2f5f56cab6a7013) the `ERR_OSSL_EVP_UNSUPPORTED` error.

But i don’t have the time to maintain this, sorry.

---

<div class="post-metadata">

**Author:** ![Daniel-567219](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel-567219/32/79186_2.png) [@Daniel-567219](https://community.homey.app/u/Daniel-567219)\
**Post date:** [August 28, 2023, 7:50pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/101 "2023-08-28T19:50:47Z")

</div>

Did get the same error on your app as @cscheiene in an earlier post, but may just be me that has done something wrong, haven’t got much time to look at it yet. But got the leaf-connect library to work now. Thanks

---

<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:** [September 2, 2023, 11:52am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/102 "2023-09-02T11:52:16Z")

</div>

Updated to 1.0.9, but still same error 🤔

---

<div class="post-metadata">

**Author:** ![Daxziz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daxziz/32/43405_2.png) [@Daxziz](https://community.homey.app/u/Daxziz)\
**Post date:** [December 8, 2023, 10:27am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/103 "2023-12-08T10:27:40Z")

</div>

Hi all

I have an app working based on my own code. It’s in MVP stage and still needs some love. However it’s time consuming to code and test. If there’s interest I’ll see if I can find the time to finish it. I own a 2018 Leaf, so that’s what I’m testing with. Also I’m only working on a Homey Pro 2019.

Here’s a link to a small YouTube video as proof: [https://www.youtube.com/shorts/ruMMk94sgOo](https://www.youtube.com/shorts/ruMMk94sgOo)

Again, let me know if this app has any interest still. As I’m short on spare time the progress is not gonna go fast as I have a full time job and a family to take care of. I could “buy” some extra spare time, but that would absolutely mean that I would have to ask for donations to complete it faster.

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [December 13, 2023, 8:28pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/104 "2023-12-13T20:28:14Z")

</div>

How can i install the app.  
At this moment i use docker container with virtual device

---

<div class="post-metadata">

**Author:** ![Daxziz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daxziz/32/43405_2.png) [@Daxziz](https://community.homey.app/u/Daxziz)\
**Post date:** [December 13, 2023, 8:43pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/105 "2023-12-13T20:43:08Z")

</div>

I haven’t released a test version yet. Very close though. I just need to find a bit more time and currently I haven’t got a lot of it.

---

<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:** [December 22, 2023, 9:18am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/106 "2023-12-22T09:18:26Z")

</div>

@Daxziz Very interested in this app. Please let us know when there is a test version available. Would donate for this app 😊

---

<div class="post-metadata">

**Author:** ![Daxziz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daxziz/32/43405_2.png) [@Daxziz](https://community.homey.app/u/Daxziz)\
**Post date:** [December 29, 2023, 1:34pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/107 "2023-12-29T13:34:48Z")

</div>

Christmas is busy with family time and fun. Haven’t had a chance to work on a version yet.  
Donations would mean that I can take a day off and work on the app, but until then I will work on it in my spare time 🙂  
I hope a test version could be ready end of January.

---

<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:** [December 30, 2023, 5:18am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/108 "2023-12-30T05:18:23Z")

</div>

Sounds good, please let us know when there is a test version available on the app store or at github 😊 enjoy the holidays

---

<div class="post-metadata">

**Author:** ![Dr\_Thunderbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dr_thunderbeard/32/80378_2.png) [@Dr\_Thunderbeard](https://community.homey.app/u/Dr_Thunderbeard)\
**Post date:** [January 20, 2024, 10:52am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/109 "2024-01-20T10:52:28Z")

</div>

Also very interested in this when you get the time to put it out there. Will it work with older leafs as well?

---

<div class="post-metadata">

**Author:** ![Jonas\_Enge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonas_enge/32/81300_2.png) [@Jonas\_Enge](https://community.homey.app/u/Jonas_Enge)\
**Post date:** [February 1, 2024, 7:53am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/110 "2024-02-01T07:53:31Z")

</div>

Did some changes to [GitHub - maccyber/homey-nissan-leaf: Adds support for Nissan Leaf pre May 2019 in homey](https://github.com/maccyber/homey-nissan-leaf) based on tips: [Device: should be object (#/properties/settings/type) - #2 by robertklep](https://community.homey.app/t/device-should-be-object-properties-settings-type/102871/2)

So new version 1.0.11 may work for you.  
The weird thing is that it has worked for me all the time

---

<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:** [February 1, 2024, 6:16pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/111 "2024-02-01T18:16:12Z")

</div>

Yes it works now, thank you!

The poll intervall. Does it just poll the nissan servers or does it force a poll from the car. Just thinking if a high poll might affect the 12v battery? And to change the poll intervall I have to remove and re-add the device?

---

<div class="post-metadata">

**Author:** ![Jonas\_Enge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonas_enge/32/81300_2.png) [@Jonas\_Enge](https://community.homey.app/u/Jonas_Enge)\
**Post date:** [February 1, 2024, 6:51pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/112 "2024-02-01T18:51:48Z")

</div>

The app fetches a cached status from Nissan servers, minimizing any impact on your battery. However, potential issues may arise if you set the ‘poll interval’ too low, as Nissan servers can be slow and unstable. To mitigate this, I programmed the app to automatically retry up to three times until a successful connection is established.

Currently, the option to modify settings has not been incorporated into the app.

I haven’t explored this aspect yet, but it’s possible that adding a file with something like might do the magic:

driver.settings.compose.json

```auto
[
  {
    "id": "username",
    "type": "text",
    "label": { "en": "Username" },
    "value": "John Doe",
    "hint": { "en": "The name of the user." }
  },
  {
    "id": "password",
    "type": "password",
    "label": { "en": "Password" },
    "value": "Secret",
    "hint": { "en": "The password of the user." }
  },
  {
    "id": "pollInterval",
    "type": "number",
    "label": { "en": "Poll interval (seconds)" },
    "value": 240,
    "hint": { "en": "How often to poll for the status" }
  },
  {
    "id": "regionCode",
    "type": "dropdown",
    "value": "NE",
    "label": { "en": "Select your region" },
    "values": [
      {
        "id": "NE",
        "label": { "en": "Europe" }
      },
      {
        "id": "NCI",
        "label": { "en": "Canada" }
      },
      {
        "id": "NNA",
        "label": { "en": "USA" }
      },
      {
        "id": "NMA",
        "label": { "en": "Australia" }
      },
      {
        "id": "NML",
        "label": { "en": "Japan" }
      }
    ]
  }
]

```

Don’t have the time to test it right now

Edit: Okey, did it anyways. Try with v1.0.13

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0b70e408978fad3afb2d422c7489f4fea3ec278.jpeg)

Tried to publish it to the app store, so let’s see what happends.

---

<div class="post-metadata">

**Author:** ![Stijn\_Van\_Heeswijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stijn_van_heeswijk/32/73136_2.png) [@Stijn\_Van\_Heeswijk](https://community.homey.app/u/Stijn_Van_Heeswijk)\
**Post date:** [February 5, 2024, 1:07pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/113 "2024-02-05T13:07:08Z")

</div>

@Daxziz can you give us an update? I’m very interested in your app.

---

<div class="post-metadata">

**Author:** ![Daxziz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daxziz/32/43405_2.png) [@Daxziz](https://community.homey.app/u/Daxziz)\
**Post date:** [February 5, 2024, 1:34pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/114 "2024-02-05T13:34:42Z")

</div>

I haven’t had the time for further development. I still hope to finish it, but it’s low on my agenda as I need spare time to code and so far all holidays are filled with family stuff.

I would probably need about a work week to finish it.

---

<div class="post-metadata">

**Author:** ![Stijn\_Van\_Heeswijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stijn_van_heeswijk/32/73136_2.png) [@Stijn\_Van\_Heeswijk](https://community.homey.app/u/Stijn_Van_Heeswijk)\
**Post date:** [February 5, 2024, 2:45pm UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/115 "2024-02-05T14:45:08Z")

</div>

Ok thanks for your response. we’ll have to be patient then.

---

<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:** [February 18, 2024, 7:12am UTC](https://community.homey.app/t/app-pro-nissan-leaf-switch-to-smarter-driving/24641/116 "2024-02-18T07:12:08Z")

</div>

@Jonas_Enge thanks for your work on the app. Confirmed that it’s also working on Nissan E-Nv200.

Any plans to add more flows? Start climate from flow and the ability to do a refresh of data from flow would be nice.

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

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