Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to pair keys with the car with 4.0 bluetooth dongle #116

Closed
HiFuGa opened this issue Sep 16, 2024 · 30 comments
Closed

Impossible to pair keys with the car with 4.0 bluetooth dongle #116

HiFuGa opened this issue Sep 16, 2024 · 30 comments

Comments

@HiFuGa
Copy link

HiFuGa commented Sep 16, 2024

Hello,

I can not pair the keys with the car, with the addon on HAOS.

I initialy followed the doc of the addon :

image

Then I saw some users met some trouble and the doc of the docker version has been modified, to tell to put the card key just after pushing the pairing button :

image

I did it, but nothing changed, I don't see any pop-up on the screen of the car.

This is what I have in the logs :

[18:58:54] DEBUG: setupExtendedControls() entering vin:XP7xxxxxxxxxxxxxx
[18:58:54] DEBUG: configHADeviceEnvVars() same LastVIN:XP7xxxxxxxxxxxxxx
[18:58:54] DEBUG: retryMQTTpub; entering...
[18:58:54] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/charging/config -l
[18:58:54] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/charging/config -l
[18:58:54] DEBUG: retryMQTTpub; entering...
[18:58:54] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/climate/config -l
[18:58:54] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/climate/config -l
[18:58:54] DEBUG: retryMQTTpub; entering...
[18:58:54] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/sentry-mode/config -l
[18:58:54] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/sentry-mode/config -l
[18:58:54] DEBUG: retryMQTTpub; entering...
[18:58:54] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/steering-wheel-heater/config -l
[18:58:55] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/steering-wheel-heater/config -l
[18:58:55] DEBUG: retryMQTTpub; entering...
[18:58:55] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/charge-port/config -l
[18:58:55] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/charge-port/config -l
[18:58:55] DEBUG: retryMQTTpub; entering...
[18:58:55] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/trunk/config -l
[18:58:55] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/trunk/config -l
[18:58:55] DEBUG: retryMQTTpub; entering...
[18:58:55] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/windows/config -l
[18:58:55] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/windows/config -l
[18:58:55] DEBUG: retryMQTTpub; entering...
[18:58:55] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps/config -l
[18:58:56] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps/config -l
[18:58:56] DEBUG: retryMQTTpub; entering...
[18:58:56] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps-override/config -l
[18:58:56] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps-override/config -l
[18:58:56] DEBUG: retryMQTTpub; entering...
[18:58:56] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-limit/config -l
[18:58:56] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-limit/config -l
[18:58:56] DEBUG: retryMQTTpub; entering...
[18:58:56] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/climate-temp/config -l
[18:58:56] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/climate-temp/config -l
[18:58:56] DEBUG: retryMQTTpub; entering...
[18:58:56] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-left/config -l
[18:58:57] DEBUG: mosquitto_pub successfully sent -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-left/config -l
[18:58:57] DEBUG: retryMQTTpub; entering...
[18:58:57] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-right/config -l
[18:58:57] DEBUG: mosquitto_pub successfully sent -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-right/config -l
[18:58:57] DEBUG: Leaving setupExtendedControls() vin:XP7xxxxxxxxxxxxxx
[18:58:57] DEBUG: setupPanelMain() leaving vin:XP7xxxxxxxxxxxxxx
[18:58:57] NOTICE: setupHADiscoveryAllVINsMain; Discarding any unread MQTT messages for topic:tesla_ble/XP7xxxxxxxxxxxxxx/config
[18:58:58] NOTICE: Listening for Home Assistant Start (in background)
[18:58:58] INFO: Entering main loop...
[18:58:58] NOTICE: main loop; Lauching background listen_to_mqtt_loop...
[18:58:58] INFO: main loop; launch BLE scanning for car presence every 120 seconds
[18:58:58] NOTICE: Entering Listen to MQTT loop...
[18:58:58] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[18:58:58] INFO: Launching listen_to_mqtt
[18:58:58] INFO: Listening to MQTT
[18:59:08] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[18:59:08] DEBUG: PRESENCE_EXPIRE_TIME:0
[18:59:08] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[18:59:08] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[18:59:08] INFO: vin:XP7xxxxxxxxxxxxxx presence has expired, set presence ON
[18:59:08] DEBUG: mqtt topic tesla_ble/XP7xxxxxxxxxxxxxx/binary_sensor/presence succesfully updated to ON
[18:59:08] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726419788
[18:59:08] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[18:59:08] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[19:01:08] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[19:01:19] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[19:01:19] DEBUG: PRESENCE_EXPIRE_TIME:1726419788
[19:01:19] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[19:01:19] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[19:01:19] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726419919
[19:01:19] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[19:01:19] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[19:02:26] INFO: Received MQTT message; topic:tesla_ble/XP7xxxxxxxxxxxxxx/config msg:deploy-key vin:XP7xxxxxxxxxxxxxx cmd:config
[19:02:26] DEBUG: deploy-key; calling deployKeyMain()
[19:02:26] DEBUG: deployKeyMain; calling teslaCtrlSendKey()
[19:02:26] INFO: Trying to deploy the public key to vin:XP7xxxxxxxxxxxxxx
[19:02:26] NOTICE: Attempt 1/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[19:02:46] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[19:02:46] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[19:02:46] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[19:02:51] NOTICE: Attempt 2/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[19:03:11] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[19:03:11] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[19:03:11] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[19:03:16] NOTICE: Attempt 3/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[19:03:19] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[19:03:29] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[19:03:29] DEBUG: PRESENCE_EXPIRE_TIME:1726419919
[19:03:29] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[19:03:29] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence not detected
[19:03:29] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC presence not expired
[19:03:29] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[19:03:29] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[19:03:36] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[19:03:37] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[19:03:37] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[19:03:42] NOTICE: Attempt 4/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[19:04:02] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[19:04:02] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[19:04:02] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[19:04:07] NOTICE: Attempt 5/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[19:04:27] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[19:04:27] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[19:04:27] DEBUG: deployKeyMain; key was not delivered

The bluetooth is working fine (I can command bluetooth devices in my home).

The car is saw :

image

I tried to add a longer USB cable, to be nearest the car, the bluetooth devices in my home are still working fine, but I got the same logs and still no message on the screen of the car...

image

I you have any advice...

Thank you !

PS : There is as well maybe a bug with the wake up fonction :

I rebooted the car, in the logs of the addon, I saw the addon was trying to wake up the car, but without success.

I had to restart the addon to get back the status "presence" at ON.

@guyank
Copy link

guyank commented Sep 16, 2024

This sounds very similar to the issues I was having. #106 I've managed to solve it but I'm not sure how. When pairing was successful, I received the following (on attempt 2):

Adding Home Assistant 'Deploy Key' button
Private and Public keys were generated; Next:

           1/ Remove any previously deployed BLE keys from vehicle before deploying this one
           2/ Open the Tesla App on your smartphone and make sure the vehicule is awake
           3/ In Home Assistant device Tesla_BLE_LRWXXXXXXXXXX, push the button 'Deploy Key'
Received MQTT message; topic:tesla_ble/LRWXXXXXXXXXX/config msg:deploy-key vin:LRWXXXXXXXXXX cmd:config
Trying to deploy the public key to vin:LRWXXXXXXXXXX
Attempt 1/5 to delivery the public key to vin LRWXXXXXXXXXX
teslaCtrlSendKey; Error: ble: failed to enumerate device services: ATT request failed: input channel closed: io: read/write on closed pipe
Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
teslaCtrlSendKey; Retrying in 5 seconds
Attempt 2/5 to delivery the public key to vin LRWXXXXXXXXXX
KEY DELIVERED; IN YOUR CAR, CHECK THE CAR's CENTRAL SCREEN AND ACCEPT THE KEY USING YOUR NFC CARD

For whatever reason, the key isn't being delivered to the car. My final setup has my Pi4B connected by ethernet, with WIFI turned off. Its probably 2 metres away from the car, inside the house.

@HiFuGa
Copy link
Author

HiFuGa commented Sep 16, 2024

I will try to move the NUC inside the car…

Hope this will work, but I don’t know if it should be near the car only for the pairing or always.

in my case, I see the car at « home » correctly, and it is well detected each 10 seconds, even the NUC is at more than 10 meters from the car.

if it is only for the pairing, then it is OK… I just need to pass this step X-D

@HiFuGa
Copy link
Author

HiFuGa commented Sep 16, 2024

I guess, I couldn't be closer... And it didn't work again.

image

I don't understand why the presence is detected, and when I ask to deploy the keys, it becomes not detected and come back after the deploying procedure...

[17:34:49] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/sentry-mode/config -l
[17:34:49] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/sentry-mode/config -l
[17:34:49] DEBUG: retryMQTTpub; entering...
[17:34:49] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/steering-wheel-heater/config -l
[17:34:50] DEBUG: mosquitto_pub successfully sent -t homeassistant/switch/tesla_ble_XP7xxxxxxxxxxxxxx/steering-wheel-heater/config -l
[17:34:50] DEBUG: retryMQTTpub; entering...
[17:34:50] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/charge-port/config -l
[17:34:50] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/charge-port/config -l
[17:34:50] DEBUG: retryMQTTpub; entering...
[17:34:50] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/trunk/config -l
[17:34:50] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/trunk/config -l
[17:34:50] DEBUG: retryMQTTpub; entering...
[17:34:50] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/windows/config -l
[17:34:50] DEBUG: mosquitto_pub successfully sent -t homeassistant/cover/tesla_ble_XP7xxxxxxxxxxxxxx/windows/config -l
[17:34:50] DEBUG: retryMQTTpub; entering...
[17:34:50] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps/config -l
[17:34:50] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps/config -l
[17:34:50] DEBUG: retryMQTTpub; entering...
[17:34:50] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps-override/config -l
[17:34:51] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-amps-override/config -l
[17:34:51] DEBUG: retryMQTTpub; entering...
[17:34:51] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-limit/config -l
[17:34:51] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/charging-set-limit/config -l
[17:34:51] DEBUG: retryMQTTpub; entering...
[17:34:51] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/climate-temp/config -l
[17:34:51] DEBUG: mosquitto_pub successfully sent -t homeassistant/number/tesla_ble_XP7xxxxxxxxxxxxxx/climate-temp/config -l
[17:34:51] DEBUG: retryMQTTpub; entering...
[17:34:51] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-left/config -l
[17:34:51] DEBUG: mosquitto_pub successfully sent -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-left/config -l
[17:34:51] DEBUG: retryMQTTpub; entering...
[17:34:51] DEBUG: Attempt 1/6 retryMQTTpub; calling mosquitto_pub -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-right/config -l
[17:34:51] DEBUG: mosquitto_pub successfully sent -t homeassistant/select/tesla_ble_XP7xxxxxxxxxxxxxx/heater-seat-front-right/config -l
[17:34:51] DEBUG: Leaving setupExtendedControls() vin:XP7xxxxxxxxxxxxxx
[17:34:51] DEBUG: setupPanelMain() leaving vin:XP7xxxxxxxxxxxxxx
[17:34:51] NOTICE: setupHADiscoveryAllVINsMain; Discarding any unread MQTT messages for topic:tesla_ble/XP7xxxxxxxxxxxxxx/config
[17:35:16] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[17:35:26] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[17:35:26] DEBUG: PRESENCE_EXPIRE_TIME:1726501036
[17:35:26] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[17:35:26] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[17:35:26] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726501166
[17:35:26] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[17:35:26] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[17:37:26] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[17:37:37] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[17:37:37] DEBUG: PRESENCE_EXPIRE_TIME:1726501166
[17:37:37] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[17:37:37] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[17:37:37] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726501297
[17:37:37] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[17:37:37] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[17:39:37] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[17:39:47] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[17:39:47] DEBUG: PRESENCE_EXPIRE_TIME:1726501297
[17:39:47] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[17:39:47] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[17:39:47] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726501427
[17:39:47] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[17:39:47] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[17:40:47] INFO: Received MQTT message; topic:tesla_ble/XP7xxxxxxxxxxxxxx/config msg:deploy-key vin:XP7xxxxxxxxxxxxxx cmd:config
[17:40:47] DEBUG: deploy-key; calling deployKeyMain()
[17:40:47] DEBUG: deployKeyMain; calling teslaCtrlSendKey()
[17:40:47] INFO: Trying to deploy the public key to vin:XP7xxxxxxxxxxxxxx
[17:40:47] NOTICE: Attempt 1/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[17:41:07] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[17:41:07] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[17:41:07] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[17:41:12] NOTICE: Attempt 2/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[17:41:32] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[17:41:32] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[17:41:32] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[17:41:37] NOTICE: Attempt 3/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[17:41:47] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[17:41:57] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[17:41:57] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[17:41:57] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[17:41:58] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[17:41:58] DEBUG: PRESENCE_EXPIRE_TIME:1726501427
[17:41:58] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[17:41:58] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence not detected
[17:41:58] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC presence not expired
[17:41:58] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[17:41:58] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[17:42:02] NOTICE: Attempt 4/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[17:42:22] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[17:42:22] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[17:42:22] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[17:42:27] NOTICE: Attempt 5/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[17:42:47] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[17:42:47] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[17:42:47] DEBUG: deployKeyMain; key was not delivered
[17:43:58] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[17:44:08] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[17:44:08] DEBUG: PRESENCE_EXPIRE_TIME:1726501427
[17:44:08] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[17:44:08] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[17:44:08] INFO: vin:XP7xxxxxxxxxxxxxx presence has expired, set presence ON
[17:44:08] DEBUG: mqtt topic tesla_ble/XP7xxxxxxxxxxxxxx/binary_sensor/presence succesfully updated to ON
[17:44:08] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726501688
[17:44:08] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[17:44:08] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66

@iainbullock
Copy link
Collaborator

Yes you can't get closer I agree!

Presence Detection is done by a completely different method compared to communication with the car. It doesn't use the Tesla provided vehicle-command library.

Maybe the system doesn't like your hardware. What hardware are you using? Can you try a different Bluetooth adapter? Do you have another device e.g. Raspberry Pi that you could try (with the docker version of this project perhaps)

@HiFuGa
Copy link
Author

HiFuGa commented Sep 17, 2024

I am using the dongle Sena UD100a:

http://www.senanetworks.com/ud100-g03.html

i have two raspberry PI3b, I don’t use anymore.

it could work with it ?

the bluetooth was not going far enough, with the raspberry, that’s why I bought the Sena in the past, before to change for a NUC.

@HiFuGa
Copy link
Author

HiFuGa commented Sep 17, 2024

Maybe something is missing in my configuration…

I have actually nothing in the configuration.yaml file regarding the bluetooth.

I only use these integrations for the bluetooth :

IMG_6605

This is the Sena USB dongle :

IMG_6603

I don’t see any device in the ibeacon tracking integration.

It was the case when I installed HA at the beginning, but as I didn’t know what was the device, I deleted the integration, and now nothing appears.

IMG_6602

@HiFuGa
Copy link
Author

HiFuGa commented Sep 17, 2024

I added the integration Bluetooth LE Tracker, via the configuration.yaml file, and I see the bluetooth name of the Tesla inside the file known_devices.yaml.

I don't know if there is other things I can try, via command line in SSH or something else ?

@HiFuGa
Copy link
Author

HiFuGa commented Sep 17, 2024

The car been finally added in the iBeacon tracker integration :

image

The signal seems to be OK, but the pairing is still not working.

[20:03:47] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:05:47] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:05:57] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:05:57] DEBUG: PRESENCE_EXPIRE_TIME:1726596467
[20:05:57] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:05:57] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:05:57] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726596597
[20:05:57] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:05:57] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:07:57] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:08:08] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:08:08] DEBUG: PRESENCE_EXPIRE_TIME:1726596597
[20:08:08] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:08:08] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:08:08] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726596728
[20:08:08] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:08:08] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:10:08] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:10:18] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:10:18] DEBUG: PRESENCE_EXPIRE_TIME:1726596728
[20:10:18] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:10:18] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:10:18] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726596858
[20:10:18] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:10:18] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:12:18] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:12:29] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:12:29] DEBUG: PRESENCE_EXPIRE_TIME:1726596858
[20:12:29] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:12:29] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:12:29] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726596989
[20:12:29] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:12:29] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:13:06] INFO: Received MQTT message; topic:tesla_ble/XP7xxxxxxxxxxxxxx/config msg:deploy-key vin:XP7xxxxxxxxxxxxxx cmd:config
[20:13:06] DEBUG: deploy-key; calling deployKeyMain()
[20:13:06] DEBUG: deployKeyMain; calling teslaCtrlSendKey()
[20:13:06] INFO: Trying to deploy the public key to vin:XP7xxxxxxxxxxxxxx
[20:13:06] NOTICE: Attempt 1/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[20:13:26] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[20:13:26] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[20:13:26] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[20:13:31] NOTICE: Attempt 2/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[20:13:51] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[20:13:51] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[20:13:51] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[20:13:56] NOTICE: Attempt 3/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[20:14:16] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[20:14:16] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[20:14:16] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[20:14:21] NOTICE: Attempt 4/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[20:14:29] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:14:39] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:14:39] DEBUG: PRESENCE_EXPIRE_TIME:1726596989
[20:14:39] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:14:39] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence not detected
[20:14:39] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC presence not expired
[20:14:39] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:14:39] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:14:41] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[20:14:41] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[20:14:41] NOTICE: teslaCtrlSendKey; Retrying in 5 seconds
[20:14:46] NOTICE: Attempt 5/5 to delivery the public key to vin XP7xxxxxxxxxxxxxx
[20:15:06] ERROR: teslaCtrlSendKey; Error: context deadline exceeded
[20:15:06] ERROR: Could not send the key; Is the car awake and sufficiently close to the bluetooth adapter?
[20:15:06] DEBUG: deployKeyMain; key was not delivered
[20:16:39] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:16:50] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:16:50] DEBUG: PRESENCE_EXPIRE_TIME:1726596989
[20:16:50] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:16:50] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:16:50] INFO: vin:XP7xxxxxxxxxxxxxx presence has expired, set presence ON
[20:16:50] DEBUG: mqtt topic tesla_ble/XP7xxxxxxxxxxxxxx/binary_sensor/presence succesfully updated to ON
[20:16:50] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726597250
[20:16:50] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:16:50] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:18:50] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:19:00] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:19:00] DEBUG: PRESENCE_EXPIRE_TIME:1726597250
[20:19:00] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:19:00] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence not detected
[20:19:00] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC presence not expired
[20:19:00] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:19:00] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:21:00] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:21:11] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:21:11] DEBUG: PRESENCE_EXPIRE_TIME:1726597250
[20:21:11] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:21:11] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:21:11] INFO: vin:XP7xxxxxxxxxxxxxx presence has expired, set presence ON
[20:21:11] DEBUG: mqtt topic tesla_ble/XP7xxxxxxxxxxxxxx/binary_sensor/presence succesfully updated to ON
[20:21:11] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726597511
[20:21:11] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:21:11] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66
[20:23:11] DEBUG: bluetoothctl_read; check presence, launch bluetoothctl power on,devices,scan on
[20:23:21] DEBUG: VIN:XP7xxxxxxxxxxxxxx
[20:23:21] DEBUG: PRESENCE_EXPIRE_TIME:1726597511
[20:23:21] DEBUG: listen_to_ble; calling check_presence() BLE_LN:SxxxxxxxxxxxxxxxxC BLE_MAC:BLE_MAC
[20:23:21] INFO: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC match:(SxxxxxxxxxxxxxxxxC|11:22:33:44:55:66) presence detected
[20:23:21] DEBUG: vin:XP7xxxxxxxxxxxxxx ble_ln:SxxxxxxxxxxxxxxxxC update presence expire time to 1726597641
[20:23:21] DEBUG: listen_to_ble; macAddr:11:22:33:44:55:66 BLE_MAC:11:22:33:44:55:66
[20:23:21] DEBUG: listen_to_ble; BLE_MAC_LIST:11:22:33:44:55:66

@iainbullock
Copy link
Collaborator

Not sure what you could try next, other than different hardware.

Also I'm not sure having Bluetooth LE Tracker integration interferes with this or not (although it seems it wasn't setup previously and you still had the problem)

@raphmur have you any ideas?

@raphmur
Copy link
Collaborator

raphmur commented Sep 18, 2024

Hi there @HiFuGa,

Thanks for all the detailed feedback.
iBeacons reports very strong signal (this is what I wanted to check) so no issue there.

I wonder however if there is a compatibility issue with your hardware ?

Can you try with a different device, supporting bluetooth 5.0 and BLE?

@HiFuGa
Copy link
Author

HiFuGa commented Sep 18, 2024

Hi @raphmur !

HA is installed directly on a NUC, I followed this procedure :

https://www.home-assistant.io/installation/generic-x86-64/

No VM or proxmox used.

The Sena UD100 is supported and listed here :

image

This is this one :

https://www.lextronic.fr/dongle-usb-bluetooth-longue-portee-ud100-3805.html

Pictures of mine :

IMG_6612

IMG_6613

I tested again this morning, and I see the signal dropping each time I push the deploy-key button.

image

I will try to see if I can find another dongle somewhere...

@HiFuGa
Copy link
Author

HiFuGa commented Sep 18, 2024

I removed all batteries and deconnected the power supply of all bluetooth device but it is still not working.

The connection is lost with the ibeacon device in HA...

Reharding this point :

"1/ Remove any previously deployed BLE keys from vehicle before deploying this one".

Should have remove as well the key linked to my phone ? Or it is only for previous keys used by this addon ?

It seems to match the time each time I asked to deploy the key, I found this in the HA logs :

image

@dettofatto
Copy link

dettofatto commented Sep 20, 2024

I've the same issue with realtek bt adapter of my nuc, with ha supervisor.
I've also removed my phone, but it is the same...

@iainbullock
Copy link
Collaborator

I appreciate there are various specifications of NUCs however have @guyank @dettofatto either of your got built in Bluetooth adapters (of any kind not necessarily BLE)?

@dettofatto
Copy link

dettofatto commented Sep 20, 2024

This is mine:
https://amzn.eu/d/1xk2asL
I'm searching another BT adapter.

@iainbullock
Copy link
Collaborator

iainbullock commented Sep 20, 2024

I see it has built in Bluetooth. Please can you remove the usb Bluetooth and try it with the built in? (At least I think it has I can't really read Italian) Thanks

@guyank
Copy link

guyank commented Sep 20, 2024

I appreciate there are various specifications of NUCs however have @guyank @dettofatto either of your got built in Bluetooth adapters (of any kind not necessarily BLE)?

I’m just using the Pi4 B’s built in bluetooth

@iainbullock
Copy link
Collaborator

I appreciate there are various specifications of NUCs however have @guyank @dettofatto either of your got built in Bluetooth adapters (of any kind not necessarily BLE)?

I’m just using the Pi4 B’s built in bluetooth

Ok that should work we have others using a RPi4 with no problems. I use a RPi3b+ running the Docker version of this project with no issues

I'm out of ideas for your situation. Do you have other hardware you could try?

@guyank
Copy link

guyank commented Sep 20, 2024

Sorry. As I thread in the other thread, I’ve got it working but had the same symptoms. Not sure what I changed, but being further away but connected by Ethernet is ultimately what worked.

@iainbullock
Copy link
Collaborator

Ok thanks. I sometimes forget who has already updated. Glad it works for you !

@dettofatto
Copy link

dettofatto commented Sep 21, 2024

I see it has built in Bluetooth. Please can you remove the usb Bluetooth and try it with the built in? (At least I think it has I can't really read Italian) Thanks

In my situation I'm already using realtek internal BT, so I must try with an usb bt. I'll buy and I'll try.
Thank you.

@dettofatto
Copy link

dettofatto commented Sep 21, 2024

I've bought but Anyway can I use hci1, instead the default hci0? I can't disable hci0, and as default is the internal. So the addon connect only with hcio.
I've also removed hci0 from hassio, reinstalled the plugin and etc...etc...
Edit... I've disabled internal Bluetooth, but it's the same thing also with the adapter.
Help...

@iainbullock
Copy link
Collaborator

I was going to suggest looking at this post, but I see you already have. #114 (comment)

Let's take the conversation over to that post, at least until we've gone as far as we can with that idea

@raphmur
Copy link
Collaborator

raphmur commented Sep 22, 2024

Hmmm yes, nice observation. Indeed, freeing the Wifi/BT device from the main standard traffic is better.

But this does not look to be the issue of @HiFuGa. @iainbullock , I wonder if the communication protocol with the Tesla is only supported in bluetooth 4.2 minimum? The Sena dongle seems to be only bluetooth 4.0.

@HiFuGa maybe can you try with a powered USB hub?

@dettofatto
Copy link

Hmmm yes, nice observation. Indeed, freeing the Wifi/BT device from the main standard traffic is better.

But this does not look to be the issue of @HiFuGa. @iainbullock , I wonder if the communication protocol with the Tesla is only supported in bluetooth 4.2 minimum? The Sena dongle seems to be only bluetooth 4.0.

@HiFuGa maybe can you try with a powered USB hub?
Ahhh! Maybe is only for 4.0 Bluetooth? This is very interesting... So:
With my boy's nuc I can't paring (maybe 4.0)
With external usb, after I've disabled the internal BT I can't paring
I've bought another BT adapter... 5.3. I'll try.

@dettofatto
Copy link

With 5.3 adapter it is all ok!

@iainbullock
Copy link
Collaborator

@dettofatto That's good news. We will note that the minimum spec is >4.0 (we don't know what exactly). I think we should recommend >=5.0

I believe @guyank has got it working.

I will keep the thread open for now as I think @HiFuGa still has issues.

@HiFuGa
Copy link
Author

HiFuGa commented Sep 29, 2024

Hello,
You can close this thread.

You found the root cause.

But instead buying a new bluetooth dongle >5.0, I bought a VE-Tronic charger to manage the charge automatically when solar panels are producing.

@HiFuGa HiFuGa closed this as completed Sep 29, 2024
@HiFuGa HiFuGa changed the title Impossible to pair keys with the car Impossible to pair keys with the car with 4.0 bluetooth dongle Sep 29, 2024
@dettofatto
Copy link

dettofatto commented Oct 6, 2024

Sorry for adding a comment, but i've done some new discoveries.
The only good bluetooth bettween thhese adapter is the first one (use google translate):

  1. https://www.amazon.it/dp/B0BVMXLM5P?ref=ppx_yo2ov_dt_b_fed_asin_title
  2. NO https://www.amazon.it/dp/B0CQN62YV9?ref=ppx_yo2ov_dt_b_fed_asin_title
  3. NO https://www.amazon.it/dp/B0CYS8X5JZ?ref=ppx_yo2ov_dt_b_fed_asin_title
  4. NO TPLink wifi+USB
  5. NO Realtek BT into MY NUC
  6. Sometimes YES https://www.amazon.it/dp/B0CZD94YFR?ref=ppx_yo2ov_dt_b_fed_asin_title

@iainbullock
Copy link
Collaborator

iainbullock commented Oct 7, 2024

Thanks for this. Did you try all these? I hope you could send those back that didn't work!

It's therefore not just a case of BLE version. Maybe the underlying Bluetooth chipset. Maybe also depends on whether using HAOS (used by the HA add-on version of the project) or Alpine (which the Docker version uses), as they may have different Linux drivers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants