I’m seeing a weird behavior if there are no (visible) BT devices in range, I get a traceback. Basically on timeout, OSError gets thrown. I’ve posted https://groups.google.com/forum/#!topic/pybluez/XgS2c2bOoOw and I have a workaround. Posting here in case it impacts anyone else.
Thanks for taking the time to respond, I went ahead and posted https://github.com/karulis/pybluez/pull/137 hopefully this will be merged and avoid the need to manually make the changes.
@clach04 I just have one issue now, maybe you have the same issue?
when I don’t pair my iphone or ipad with my pc, it won’t find them with the bluetooth tracker, but when I do pair them, the tracker keeps finding them even with their bluetooth turned off?
@Bart274 I’m seeing the same (problem) behavior that you described
Apologies for the tardy response, I finally upgraded to 0.27.2 on my live system today and enabled bluetooth_tracker on it. I’d previously been messing with my dev setup.
Even if I make my phone discoverable (and the Windows machine can see it but has not requested to pair with it) it does not show up in known_devices.yaml
I stepped out of HA and did the same discover test (using code from the linked Google group post) it always shows (a paired but powered off keyboard). If I make my phone discoverable it does show up, so it not showing up in HA could simply be due to timing (my phone defaults to being discover-able for 2 mins).
I did stumble across https://github.com/karulis/pybluez/issues/24 (closed) there are notes in there about caching and connecting to devices to really check if there are there. If that is the case, the HA scanner would need to be updated.
I had a quick check with the le tracker, gattlib is not supported under Windows (at least not at the moment).
I’m not going to have chance to play with this again for a while, I will continue monitor this thread.
@clach04 I modified the bluetooth tracker and have been playing with it a bit.
I managed to get it working. I needed to pair my iphones with my computer once, but now the tracker doesn’t find them anymore as soon as my bluetooth is turned off or when I’m out of range
Now I just need to change the code a bit, so it only uses my changes when the tracker is used on Windows
Thanks for sharing! Are there any windows users who own iBeacons (or who can answer the questions raised in the PR)? The PR has been closed and I think we need an answer if it is to be accepted/merged.
I’m a Windows user and would be also interested in the topic, however, you are interested in Bluetooth LE tracker and it’s not available for Windows users.
I have installed HA on Windows 10, but noticed that it was not reading from my bluetooth sensors. After some reading, I see that I need to install a python bluetooth service.
I tried running the following with the following error
C:\Users\jjand>py -m pip install pybluez
Collecting pybluez
Downloading PyBluez-0.22.zip (109kB)
100% |████████████████████████████████| 112kB 2.4MB/s
Complete output from command python setup.py egg_info:
Could not find the Windows Platform SDK
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in C:\Users\jjand\AppData\Local\Temp\pip-build-ayfr1r_m\pybluez\