3 ms·
Home assistant does headless bt presence detection in ~200 lines of python I think the author had a painful experience because they wanted to do embedded and ha
by wutwutwat 3y ago
Home assistant does headless bt presence detection in ~200 lines of python I think the author had a painful experience because they wanted to do embedded and had to interface at a much lower level, where it's a long ago solved problem in higher level languages. Considering the tracker ended up in their door next to their computer, they could have stuck with the rpi that ran python and been fine
https://github.com/home-assistant/core/blob/dev/homeassistant/components/bluetooth_tracker/device_tracker.py https://github.com/home-assistant/core/blob/dev/homeassistan...
https://www.home-assistant.io/integrations/bluetooth_tracker/ https://www.home-assistant.io/integrations/bluetooth_tracker...
- lesuorac 3y agoI don't know the author's code but mine was at the same level as home assistant's. I believe I was using Bluer (BlueZ) [1] and afaik the problem is that the dependency needs an armv7 version of DBUS when it compiles which my non-armv7 laptop did not provide. If I do the home assistant route and just copy my source code over to the raspi and build the binary there it all compiles+runs fine. Except for the part where I can't compile it locally and so I don't know of a build issue until its been transferred + built. [1]: https://github.com/bluez/bluer https://github.com/bluez/bluer