tesla-local-control / tesla_ble_mqtt_docker

Apache License 2.0
29 stars 8 forks source link

Raspberry Pi Zero W unable to find car #34

Closed jherby2k closed 3 months ago

jherby2k commented 3 months ago

This is more of an FYI than anything, but i spent much of last night and this AM trying to get it all working on a Pi Zero W, and the Tesla just doesn't show up in the bluetoothctl scans. Finally in frustration i switched to a Pi 4 and boom - there it is. Working great now.

Doesn't seem to be a range thing - i ran an extension cord right out to the car and the Pi Zero still can't pick it up.

Both running latest Raspberry Pi OS, but the Pi Zero is 32-bit only which is a pretty different OS build, as i understand it.

Just thought i'd throw this in here to save people some frustration.

iainbullock commented 3 months ago

I haven't checked but does the original Pi have BLE or just standard Bluetooth?

jherby2k commented 3 months ago

OG had neither, but the Pi Zero W added Wifi/bluetooth and allegedly BLE.

epenet commented 3 months ago

I have Pi Zero 2W and that one works fine.

iainbullock commented 3 months ago

Another possible issue is if you use 2.4GHz WiFi it interferes with Bluetooth. Use 5GHz or Ethernet if you can. Again not sure about the capabilities of your RPi

jherby2k commented 3 months ago

no ethernet on the Pi Zero W. It has BT 4.0 which should include BLE. Anyway, all good i'm working on a Pi 4 now.

raphmur commented 3 months ago

Ok nice.

FYI, I have seen on another thread that the bluetooth device was not properly started. Calling bluetoothctl scan on after boot made the thing come online.

Can you try it? Boot the Pi Zero Call bluetoothctl scan on and paste the output Try again the docker image

jherby2k commented 3 months ago

i had dozens of devices show up, just not my car. Of interest, bluetoothctl seems to be constantly scanning and ignores "scan off" etc. Something weird with raspbian 32-bit maybe. My Pi 4 behaved correctly out of the box.

iainbullock commented 3 months ago

The other devices might be standard Bluetooth not BLE

iainbullock commented 3 months ago

I'll close this. We might add a 'Hardware page' for this sort of info. FYI a new version was released today. Note the config environment and HA entity names are different, which may cause breaking changes. Read CHANGELOG.md. Let me know how it goes if you decide to upgrade