# Nissan Leaf integration in Openhab2

**URL:** <https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919>\
**Category:** Other\
**Tags:** electric-car, nissan-leaf, pycarwings2\
**Created:** [July 7, 2020, 4:41am UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919 "2020-07-07T04:41:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrPetter](https://community.openhab.org/user_avatar/community.openhab.org/mrpetter/32/15293_2.png) [@MrPetter](https://community.openhab.org/u/MrPetter)\
**Post date:** [July 7, 2020, 4:41am UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/1 "2020-07-07T04:41:53Z")

</div>

Hello hive mind!

Not shure where to put this, so I’ll leave it here: One of my fav automations is the connection to Nissan’s (horrible) api to get status for our Nissan Leaf as well as to start climate control, charging etc. The common solution for this has been “Pycarwings2” and MQTT. As of mid 2019 the api end point (and possibly the api too) has changed and there have been zero updates to the lib.

Does anyone know of a live solution still being developed for this? Or at least one that currently works..?

Thanks!

Petter

---

<div class="post-metadata">

**Author:** ![Ez2517](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@Ez2517](https://community.openhab.org/u/Ez2517)\
**Post date:** [November 1, 2020, 12:00pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/2 "2020-11-01T12:00:04Z")

</div>

Hello,  
have you been able to connect your Leaf to OpenhAB in the meantime?  
I just wanted to point out that there is an up-to-date, working version of pycarwings2 here:

> **[GitHub - filcole/pycarwings2: Python library for interacting with the...](https://github.com/filcole/pycarwings2)**
>
> Python library for interacting with the NissanConnect EV (aka CARWINGS) telematics service.

I just tested the example and it works. Now I’ll try to go on from that…))

Brandy

---

<div class="post-metadata">

**Author:** ![MrPetter](https://community.openhab.org/user_avatar/community.openhab.org/mrpetter/32/15293_2.png) [@MrPetter](https://community.openhab.org/u/MrPetter)\
**Post date:** [November 1, 2020, 3:11pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/3 "2020-11-01T15:11:30Z")

</div>

Thanks for the tip, and no - I never got it to work. Unfortunately I returned the car (leasing) earlier this week! 😆

I will retain this link in case of getting another one though. Loved that car. But can’t really defend having a second car during the pandemic.

Thanks again, though!

Petter

---

<div class="post-metadata">

**Author:** ![Ez2517](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@Ez2517](https://community.openhab.org/u/Ez2517)\
**Post date:** [November 1, 2020, 7:33pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/4 "2020-11-01T19:33:57Z")

</div>

I see 😄 Btw, in the meantime I managed to get the Python2 version of pycarwings2 running on my openhabian (by manually doing the changes of the Python3 version linked above in the Python2 version). And it seems that leaf-python-mqtt is successfully feeding the data into Moquette. Now I just need to find out how to access the data in OpenHAB )))

Brandy

---

<div class="post-metadata">

**Author:** ![Dave\_Baldwin](https://community.openhab.org/user_avatar/community.openhab.org/dave_baldwin/32/45297_2.png) [@Dave\_Baldwin](https://community.openhab.org/u/Dave_Baldwin)\
**Post date:** [March 30, 2024, 5:42pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/5 "2024-03-30T17:42:40Z")

</div>

Resurrecting this if possible - is this Nissan integration still working? I am thinking of buying a Leaf soon .. (an older one)

---

<div class="post-metadata">

**Author:** ![asdfsafd](https://community.openhab.org/user_avatar/community.openhab.org/asdfsafd/32/56472_2.png) [@asdfsafd](https://community.openhab.org/u/asdfsafd)\
**Post date:** [February 2, 2025, 3:17pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/6 "2025-02-02T15:17:27Z")

</div>

I’m interested too, unfortunately the BASE\_URLs I tested with pycarwings2 are all outdated:  
#BASE\_URL = “[https://gdcportalgw.its-mo.com/api\_v200413\_NE/gdc/](https://gdcportalgw.its-mo.com/api_v200413_NE/gdc/)”  
#BASE\_URL = “[https://gdcportalgw.its-mo.com/api\_v210707\_NE/gdc/](https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/)”  
#BASE\_URL = “[https://gdcportalgw.its-mo.com/api\_v230317\_NE/gdc/](https://gdcportalgw.its-mo.com/api_v230317_NE/gdc/)”  
#BASE\_URL = “[https://gdcportalgw.its-mo.com/api\_v230317\_NE/gdc/InitialApp\_v2.php](https://gdcportalgw.its-mo.com/api_v230317_NE/gdc/InitialApp_v2.php)”

---

<div class="post-metadata">

**Author:** ![Dave\_Baldwin](https://community.openhab.org/user_avatar/community.openhab.org/dave_baldwin/32/45297_2.png) [@Dave\_Baldwin](https://community.openhab.org/u/Dave_Baldwin)\
**Post date:** [February 2, 2025, 3:29pm UTC](https://community.openhab.org/t/nissan-leaf-integration-in-openhab2/101919/7 "2025-02-02T15:29:32Z")

</div>

I abandoned the whole Nissan API approach and went with an ESP32 sniffing CANbus messages and reporting locally over MQTT.
