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.
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.
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.
I fixed the ERR_OSSL_EVP_UNSUPPORTED error.
But i donāt have the time to maintain this, sorry.
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
Updated to 1.0.9, but still same error ![]()
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
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.
How can i install the app.
At this moment i use docker container with virtual device
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.
@Daxziz Very interested in this app. Please let us know when there is a test version available. Would donate for this app ![]()
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.
Sounds good, please let us know when there is a test version available on the app store or at github
enjoy the holidays
Also very interested in this when you get the time to put it out there. Will it work with older leafs as well?
Did some changes to GitHub - maccyber/homey-nissan-leaf: Adds support for Nissan Leaf pre May 2019 in homey based on tips: Device: should be object (#/properties/settings/type) - #2 by robertklep
So new version 1.0.11 may work for you.
The weird thing is that it has worked for me all the time
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?
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
[
{
"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
Tried to publish it to the app store, so letās see what happends.
@Daxziz can you give us an update? Iām very interested in your app.
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.
Ok thanks for your response. weāll have to be patient then.
@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.
