Closed capof1000 closed 2 weeks ago
ERROR: teslaCtrlSendCommand; Error: failed to find a BLE device: can't init hci: no devices available: (hci0: can't down device: no such device)
This is the clue. The Tesla library is very fussy about the BLE device. This is a completely separate process from presence detection.
Either something else on your HA machine is using the BLE device; the BLE device is not compatible; you are sending commands too quickly in succession; the BLE device is not mapped to hci0, etc
Hi iainbullock , thank you for your quick answer, sorry for my bad english in advance.
i think i made it work... but dont really know what was the key move !
Maybe some information about my setup , i run HA in a Virtual machine, in my synology NAS. I have plug the Bluetooth device ont the Synology ( with a 10meters extender), the BLE is a TPlink UBS00. I have decide to more or less restart for scratch :
[18:38:42] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [18:39:01] INFO: Received MQTT message; topic:tesla_ble/LRWYGCFSXPC77xxxx/config msg:deploy-key vin:LRWYGCFSXPC77xxxx cmd:config [18:39:01] INFO: Trying to deploy the public key to vin:LRWYGCFSXPC77xxxx [18:39:01] NOTICE: Attempt 1/5 to delivery the public key to vin LRWYGCFSXPC77xxxx [18:39:06] WARNING: KEY DELIVERED; IN YOUR CAR, CHECK THE CAR's CENTRAL SCREEN AND ACCEPT THE KEY USING YOUR NFC CARD [18:39:06] INFO: acceptKeyConfirmationLoop; check if key was accepted by sending a ping command vin:LRWYGCFSXPC77xxxx [18:39:06] NOTICE: Attempt 1/5 sending Ping vehicule to vin:LRWYGCFSXPC77xxxx command:ping [18:39:12] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C presence not expired [18:39:25] INFO: Command ping was successfully delivered to vin:LRWYGCFSXPC77xxxx [18:39:25] INFO: acceptKeyConfirmationLoop; congratulation, the public key has been accepted vin:LRWYGCFSXPC77xxxx [18:39:25] INFO: Setting up Home Assistant device's panel [18:39:25] INFO: vin:LRWYGCFSXPC77xxxx presence has expired, set presence ON
[18:40:07] INFO: Received MQTT message; topic:tesla_ble/LRWYGCFSXPC77xxxx/charging-set-amps-override msg:11 vin:LRWYGCFSXPC77xxxx cmd:charging-set-amps-override [18:40:07] NOTICE: Attempt 1/5 sending Set charging Amps to 11 to vin:LRWYGCFSXPC77xxxx command:charging-set-amps 11 [18:40:11] INFO: Command charging-set-amps 11 was successfully delivered to vin:LRWYGCFSXPC77xxxx
I guy, thank you for the work ! I (think) i manage to do the setup, i have move the ble antena as close as possible from the car, key excahnge has work at first try, but all send comand are failling.
[19:43:19] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:43:35] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:43:50] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:44:06] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:44:21] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:44:37] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:44:52] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:45:08] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:45:23] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:45:39] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:45:54] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:46:09] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:46:25] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:46:40] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:46:56] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:47:11] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:47:27] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:47:42] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:47:58] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:48:13] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:48:29] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:48:44] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:48:59] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:49:11] INFO: Received MQTT message; topic:tesla_ble/LRWYGCFSXPC77xxxx/charging-set-amps-override msg:17 vin:LRWYGCFSXPC77xxxx cmd:charging-set-amps-override [19:49:11] NOTICE: Attempt 1/5 sending Set charging Amps to 17 to vin:LRWYGCFSXPC77xxxx command:charging-set-amps 17 [19:49:15] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:49:30] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:49:46] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected [19:49:49] ERROR: tesla-control send command:charging-set-amps 17 to vin:LRWYGCFSXPC77xxxx failed exit status 1. [19:49:49] ERROR: teslaCtrlSendCommand; Error: failed to find a BLE device: can't init hci: no devices available: (hci0: can't down device: no such device) [19:49:49] NOTICE: teslaCtrlSendCommand; Retrying in 4 seconds [19:49:53] NOTICE: Attempt 2/5 sending Set charging Amps to 17 to vin:LRWYGCFSXPC77xxxx command:charging-set-amps 17 [19:50:01] INFO: vin:LRWYGCFSXPC77xxxx ble_ln:S989f122328e709b1C match:(S989f122328e709b1C|8C:03:7B:4E:xx:xx) presence detected