Closed iCarl closed 4 years ago
I'm getting similar issues on a new install.
what does running "hcitool dev" show for you? for me it doesn't detect any bluetooth devices on the raspberry pi at all. I'll investigate more.
So.
I had issues with running bionic and not raspbian on this system, that leads to some issues: there is a bogus hci0, get rid of it: $ rmmod btsdio
then attach the correct device: $ hciattach /dev/ttyAMA0 bcm43xx 921600
after this it works fine.
hcitool dev
outputs:
Devices:
hci0 B8:27:EB:C0:22:DD
sudo rmmod btsdio
outputs
rmmod: ERROR: Module btsdio is not currently loaded
hciattach /dev/ttyAMA0 bcm43xx
921600 outputs:
bcm43xx_init
Failed to write reset command
Can't initialize device: Success
You have a different error than I had then, your bluetooth module seems to be found correctly.
Does hcitool lescan
work for you?
It works, and detects the Plejd as "P mesh"
I've just merged a partial re-write using dbus instead of bluepy, this works for me and might fix this. Please re-open if this is still an issue.
I've tried three separate fresh installs in order to get this working. Fresh installs on both Raspbian and Homeassistant in venv.
I get error
I'm now running version 0.101.2 through virtual environment. This used to work a while ago, but stopped, hence the reinstall. What could be causing this?