Custom component Nissan Leaf via LeLink 2 (ELM327) BLE

The component does not always read the parameters when the car is turned on. There are two possible reasons: 1. unreliable elm327; 2. simultaneous operation of esp32 on two protocols.
Today I installed Vgate iCar Pro 2S ELM327 Bluetooth 5.3 V2.3.

    SERVICE_UUID = "000018f0-0000-1000-8000-00805f9b34fb"
    CHARACTERISTIC_UUID_READ = "00002af0-0000-1000-8000-00805f9b34fb"
    CHARACTERISTIC_UUID_WRITE = "00002af1-0000-1000-8000-00805f9b34fb"

I am observing. If it does not work better, I will install WT32-ETH01

There are a lot of bluetooth handling issues that I’ve never resolved still lurking in there. Honestly, I got it kind-of working then moved on.
I quite often get the situation where the integration needs to be restarted before it will talk to the car again.
One day I’ll dig back into this again and see if I can iron out some of the reliability issues.

We look forward to your return!!!
Using the Vgate iCar Pro 2S ELM327 Bluetooth 5.3 V2.3, WT32-ETH01 only slightly improved stability…

Is this component still working for people in 2025? I have had no luck with it.

The component works, but not as stably as I would like.

Wifi-OBD2 Dongle like OBD2 WIFI ELM327 V1.5
Hi Guys, i think this is the most progressive discussion about connecting BEV (Battery Electric Vehicle) over OBD (On Board Diagnostic) to Home assistant, this is why i going to ask here…
I read about the WiCAN, and other activities to read the OBD2. And realy appreciate the afford of these guys to find a solution.
But… On Lazada and other Asian shopping platforms, you can buy a ELM327 OBD2 Reader including Wifi for only 3 Euro.

Summarize:

Most people i read about the OBD2 with Homeassistant and BEV asking for this information’s:
-Soc (for charging purposes, e.g. with Solar charging)
-Voltage on Cell level (for HV (high Voltage) health), replaces the next option
-Max and Min Cell Voltage (for HV (high Voltage) health, to check the balancer)

maybe also add a ā€œcomming homeā€ feature e.g. to turn off and on some lights or open/close Gates etc.

All this is possible, if we connect the ELM327 to the local wifi, without any Bluetooth or Celphone with torque app or something else… i’m right?

And… there are a lot of different BEV now.

So i am wondering about this, maybe someone might help me?
First, we need an basic integration for ELM327 (maybe more than one per Home assistant, in case you have more than one Car), which will provide the basics about Sending request to a specific ELM327 and returns the results.
2nd: we need a simple way to debug the device (BEV) to send specific commands to the OBD2/Canbus, and receive/analyze the answers.
3rd: We need an Interface to translate the Send/Receive packets to a car specific Integration so even beginners like me can ā€œplayā€ with the car to generate new BEV (or even normal cars) to Home assistant.

I can not do (now) the first and the 2nd step, because i am to new to Home Assistant and i did not find a good tutorial how to develop a low level Integration like this. I know how to code in Pascal (in fact Navision dynamics and BC365), but i did not find a way to understand python and how to use it.

Maybe someone of you cracks might take this challenge?
I will bet some hundred Euros, if step one and step 2 are done, there will be integrations for hundrets of Cars in only some weeks.

There are a bunch of wifi ELM dongles out there that you could probably use and get something working. I selected BLE because it works better when you have a device roaming in and out of range - the BLE host detects advertisements from the BLE device really quickly, so when the car arrives home, we can react to that straight away.

You don’t need home assistant for this. There’s laptop software and/or mobile apps that you can build custom commands and monitor the response.

Yes… but it is a disadvantage for the typical HA user. HA has a low treshold to start with. And if someone can pack learning packages right inside the tool where the users need it, there will be a bigger response back to the comunity.

After the latest update:
Core 2026.1.0
Supervisor 2026.01.0
Operating System 16.3

The following integrations and platforms could not be set up: nissan_leaf_obd_ble

Solution:
In the file custom_components\nissan_leaf_obd_ble\__init__.py, replace

from homeassistant.core import Config, HomeAssistant, callback

on

from homeassistant.core import HomeAssistant, ServiceCall, callback
from homeassistant.helpers.typing import ConfigType

replace

async def async_setup(hass: HomeAssistant, config: Config):

on

async def async_setup(hass: HomeAssistant, config: ConfigType):
1 Like

Yep, exactly that. I’ll update the repo one of these days…
For what it’s worth, I’m also working on some more major changes to the BLE part of this, hopefully to make the connection much more reliable.
Currently I find that after a while I need to either restart my bluetooth proxy, or reload the integration (or both) in order to estabilsh a connection.
I’m hoping the bleak_retry_connector will solve most of these problems.

1 Like

ok, good, it’s not me or something I did. I’d thought someone moved the ESP32 which was preventing it’s triggering when the Leaf pulled in the driveway. Then I was thinking my wife was jumping out of the car too quickly so it wasn’t getting enough time to BLE to link up and get data.

It’s handy when it works since we don’t have to get into the car to setup our OpenEVSE energy limits. Keep us posted on any updates and thanks for putting it together and sharing.

Hey folks,
I’ve just updated to component to the bleak_retry_connector for establishing BLE connections.
Hopefully should improve stability.
If you want to be a guinea pig, you can select a specific version to download, choose v0.2.2b1
Let me know how you get on.

2 Likes

Hi! Thanks! I updated to the latest version yesterday. It’s working. I’ll report on stability later.

Same here. So far so good!

Fixed a couple of bugs:
v0.2.2b2

Updated v0.2.2b2. I’m keeping an eye on it. Good!

Not quite good. I’m analyzing.

I’ve fixed a problem with the state class of the sensors. Haven’t pushed this yet.

For maximum information on the log, be sure to add this to your configuration.yaml:

logger:
  ...
  logs:
    ...
    custom_components.nissan_leaf_obd_ble: debug
    bleak_retry_connector: debug
2026-02-23 10:40:11.699 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATZ\r'
2026-02-23 10:40:11.740 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:11.741 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Stopping notifications on characteristic UUID: 00002af0-0000-1000-8000-00805f9b34fb
2026-02-23 10:40:11.741 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Disconnecting from device
2026-02-23 10:40:11.766 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] BleakClient disconnected (expected)
2026-02-23 10:40:11.767 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Disconnected from device
2026-02-23 10:40:11.768 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.coordinator] Car is on, polling: interval = 0:00:10
2026-02-23 10:40:11.768 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.coordinator] Finished fetching nissan_leaf_obd_ble data in 5.781 seconds (success: True)
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.coordinator] Check if the device is still available to connect
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Connecting to BLEDevice
2026-02-23 10:40:21.988 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] Initializing ELM327: PROTOCOL=('6',)
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] looks like the __port is all good: <custom_components.nissan_leaf_obd_ble.bleserial.bleserial object at 0x7f0979198c30>
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] attempt to open the port: <custom_components.nissan_leaf_obd_ble.bleserial.bleserial object at 0x7f0979198c30>
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] open port, ble_device: 41:42:86:99:68:C2: IOS-Vlink
2026-02-23 10:40:21.988 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Connecting to ble_device: 41:42:86:99:68:C2: IOS-Vlink IOS-Vlink
2026-02-23 10:40:21.989 DEBUG (MainThread) [bleak_retry_connector] IOS-Vlink - 41:42:86:99:68:C2: Connection attempt: 1
2026-02-23 10:40:22.074 DEBUG (MainThread) [bleak_retry_connector] IOS-Vlink - 41:42:86:99:68:C2: Connected after 1 attempts
2026-02-23 10:40:22.074 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Connected to ble_device: 41:42:86:99:68:C2: IOS-Vlink
2026-02-23 10:40:22.074 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Starting notifications on characteristic UUID: 00002af0-0000-1000-8000-00805f9b34fb
2026-02-23 10:40:22.123 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notifications started
2026-02-23 10:40:22.123 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATZ\r'
2026-02-23 10:40:22.123 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:22.124 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATZ\r'
2026-02-23 10:40:22.158 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:22.158 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] wait: 1 seconds
2026-02-23 10:40:22.195 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'ATZ\r')
2026-02-23 10:40:23.160 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 4 bytes of data
2026-02-23 10:40:23.160 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'ATZ\r')
2026-02-23 10:40:23.160 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:23.332 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r\rELM327 v2.3\r\r>')
2026-02-23 10:40:23.336 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:23.337 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 15 bytes of data
2026-02-23 10:40:23.337 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\rELM327 v2.3\r\r>')
2026-02-23 10:40:23.337 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'ATZ\r\r\rELM327 v2.3\r\r>'
2026-02-23 10:40:23.337 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATE0\r'
2026-02-23 10:40:23.337 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.337 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATE0\r'
2026-02-23 10:40:23.392 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.392 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:23.438 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'ATE0\rOK\r\r>')
2026-02-23 10:40:23.445 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'A')
2026-02-23 10:40:23.445 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 9 bytes of data
2026-02-23 10:40:23.445 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'TE0\rOK\r\r>')
2026-02-23 10:40:23.445 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'ATE0\rOK\r\r>'
2026-02-23 10:40:23.446 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATSP6\r'
2026-02-23 10:40:23.446 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.446 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATSP6\r'
2026-02-23 10:40:23.485 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.487 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.487 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.487 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.487 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.487 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATH1\r'
2026-02-23 10:40:23.488 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.488 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATH1\r'
2026-02-23 10:40:23.546 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.547 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.547 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.547 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.547 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.548 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATL0\r'
2026-02-23 10:40:23.548 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.548 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATL0\r'
2026-02-23 10:40:23.591 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATS0\r'
2026-02-23 10:40:23.593 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.593 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATS0\r'
2026-02-23 10:40:23.636 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.637 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.637 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.638 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.638 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.638 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'ATCAF0\r'
2026-02-23 10:40:23.638 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.638 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'ATCAF0\r'
2026-02-23 10:40:23.680 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'AT RV\r'
2026-02-23 10:40:23.682 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.682 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'AT RV\r'
2026-02-23 10:40:23.741 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'14.5V\r\r>')
2026-02-23 10:40:23.742 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.743 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 8 bytes of data
2026-02-23 10:40:23.743 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'14.5V\r\r>')
2026-02-23 10:40:23.743 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'14.5V\r\r>'
2026-02-23 10:40:23.743 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'AT SH 797 \r'
2026-02-23 10:40:23.743 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.743 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'AT SH 797 \r'
2026-02-23 10:40:23.786 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.787 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.788 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.788 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.788 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.788 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'AT FC SH 797 \r'
2026-02-23 10:40:23.788 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.788 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'AT FC SH 797 \r'
2026-02-23 10:40:23.831 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.833 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'AT FC SD 30 00 00\r'
2026-02-23 10:40:23.833 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.833 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'AT FC SD 30 00 00\r'
2026-02-23 10:40:23.891 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.892 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.892 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.892 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.892 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.893 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'AT FC SM 1\r'
2026-02-23 10:40:23.893 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.893 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'AT FC SM 1\r'
2026-02-23 10:40:23.936 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 5 bytes of data
2026-02-23 10:40:23.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'OK\r\r>')
2026-02-23 10:40:23.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'OK\r\r>'
2026-02-23 10:40:23.938 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'7970210C0': Mystery command
2026-02-23 10:40:23.938 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'0210C0\r'
2026-02-23 10:40:23.938 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:23.938 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'0210C0\r'
2026-02-23 10:40:23.992 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:23.992 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.020 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0250C00000000000\r')
2026-02-23 10:40:24.024 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.024 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.024 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0250C00000000000\r')
2026-02-23 10:40:24.024 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.096 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.097 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.097 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.097 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.097 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0250C00000000000\r\r>'
2026-02-23 10:40:24.098 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0250C00000000000
2026-02-23 10:40:24.098 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221304': Power switch status
2026-02-23 10:40:24.098 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221304\r'
2026-02-23 10:40:24.098 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.098 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221304\r'
2026-02-23 10:40:24.142 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.143 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.157 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0562130480BC0000\r')
2026-02-23 10:40:24.164 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.164 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.164 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0562130480BC0000\r')
2026-02-23 10:40:24.164 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.247 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.247 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.247 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.247 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.248 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0562130480BC0000\r\r>'
2026-02-23 10:40:24.248 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0562130480BC0000
2026-02-23 10:40:24.248 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221156': Gear position
2026-02-23 10:40:24.248 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221156\r'
2026-02-23 10:40:24.248 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.248 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221156\r'
2026-02-23 10:40:24.293 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.293 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.307 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0462115601000000\r')
2026-02-23 10:40:24.315 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.315 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.315 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0462115601000000\r')
2026-02-23 10:40:24.315 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.396 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.399 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.399 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.399 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.399 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0462115601000000\r\r>'
2026-02-23 10:40:24.400 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0462115601000000
2026-02-23 10:40:24.400 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221103': 12V battery voltage
2026-02-23 10:40:24.400 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221103\r'
2026-02-23 10:40:24.400 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.400 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221103\r'
2026-02-23 10:40:24.442 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.442 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.457 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A04621103B5000000\r')
2026-02-23 10:40:24.464 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.464 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.464 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A04621103B5000000\r')
2026-02-23 10:40:24.464 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.547 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.548 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.548 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.549 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.549 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A04621103B5000000\r\r>'
2026-02-23 10:40:24.549 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A04621103B5000000
2026-02-23 10:40:24.549 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221183': 12V battery current
2026-02-23 10:40:24.549 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221183\r'
2026-02-23 10:40:24.549 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.549 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221183\r'
2026-02-23 10:40:24.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.592 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.607 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0562118306070000\r')
2026-02-23 10:40:24.614 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.614 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.614 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0562118306070000\r')
2026-02-23 10:40:24.614 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.665 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.668 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.668 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.668 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.668 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0562118306070000\r\r>'
2026-02-23 10:40:24.668 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0562118306070000
2026-02-23 10:40:24.668 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221203': Number of quick charges
2026-02-23 10:40:24.669 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221203\r'
2026-02-23 10:40:24.669 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.669 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221203\r'
2026-02-23 10:40:24.711 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.711 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.727 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0562120303460000\r')
2026-02-23 10:40:24.733 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.734 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.734 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0562120303460000\r')
2026-02-23 10:40:24.734 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.771 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0562120303460000\r\r>'
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0562120303460000
2026-02-23 10:40:24.778 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'79703221205': Number of L1/L2 charges
2026-02-23 10:40:24.778 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'03221205\r'
2026-02-23 10:40:24.779 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.779 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'03221205\r'
2026-02-23 10:40:24.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.832 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.846 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'79A0562120501960000\r')
2026-02-23 10:40:24.854 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'7')
2026-02-23 10:40:24.854 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 19 bytes of data
2026-02-23 10:40:24.854 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'9A0562120501960000\r')
2026-02-23 10:40:24.854 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.892 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Notification received: bytearray(b'\r>')
2026-02-23 10:40:24.897 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'\r')
2026-02-23 10:40:24.897 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data
2026-02-23 10:40:24.897 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Read data: bytearray(b'>')
2026-02-23 10:40:24.897 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] read: b'79A0562120501960000\r\r>'
2026-02-23 10:40:24.897 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Received frame: 79A0562120501960000
2026-02-23 10:40:24.898 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.obd] Sending command: b'7970322115d': Ambient temperature
2026-02-23 10:40:24.898 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.elm327] write: b'0322115d\r'
2026-02-23 10:40:24.898 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Resetting input buffer
2026-02-23 10:40:24.898 INFO (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Writing data to characteristic UUID: 00002af1-0000-1000-8000-00805f9b34fb Data: b'0322115d\r'
2026-02-23 10:40:24.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Data written
2026-02-23 10:40:24.937 DEBUG (MainThread) [custom_components.nissan_leaf_obd_ble.bleserial] Reading 1 bytes of data