I’m fairly sure I also have an Android phone that doesn’t do BLE advertisements. Mine is a OnePlus 5. I have however found a “workaround” that seems to be reliable. I have installed the app Beacon Simulator. If I create a beacon in the app and contiously have it running it seems I also get the ADV_RAND messages in the monitor.sh log and presence detection is working very reliable.

Appreciate that. It sounds like the MAC address broadcast by your beacon is a public address?

when the door is opened I stop the depart sequence from running.

when my door is closed i check whether both phones are away (0 confidence)
— if so then I run an arrive scan.
— if not then i run the depart sequence from the linked post above. I don’t do the restart sequence (because I only have the one pi running monitor, so it can’t be out of sync with itself). instead at the end of the depart sequence I do an arrival scan.

the obvious problem is that one of the phones can be in the house but outside of the pi’s bluetooth range. so it comes back as not home. not a huge problem for me since i’m also tracking based on WiFi and a bunch of logic based stuff surrounding my doors and motion sensors. I might add some additional trigger for an arrival scan like triggering a certain motion sensor that is close to pi.

Yes, I have the app running at all times. I have three Pi Zero W covering my house using sample config provided by andrewjfreyer with one mqtt sensor per Pi and a min_max sensor. It’s been running reliable for me for a week now

I’ve been using this for a week now and quite honestly, I’m still in awe :). The Nmap scanner which I still have running is grossly inaccurate by comparison.

Monitor is getting it right 99% of the time…that 1% is because my RPi is not able to see my whole house, but I’ll be solving that soon. One thing I do notice, my iphone 8 is measured at being consistent on the confidence scale more than the wife’s iphone6s…but monitor still handles even that

Wondering if anyone else running master build with 2 rPi Zero W is going offline? Once in a while my send pi will show offline and within HA it will say unknown. I will need to restart the pi or service in order for this to cone back online.

I tried using beta as well but i find it is not fast at detecting my devices. With pi1 i am using -tr and with my second pi upstairs i am using -tad.

What are other using? and what are others behave file look like that have more than 1 pi running monitor?

I cant think of any trigger i can use for our front door without a sensor, i do have a cam in the front and can use the motion for the triggers but i would get some false once in a while as well.

Massive merge into master! Version 0.1.956 merges hundreds of bug fixes and optimizations into the master branch from beta. Please read the new readme and comments in this thread related to beta.

Instead of posting all the many, many changes and updates - I’ll ask everyone read the updated readme. Post questions here, and I’ll do my best to answer if they’re not already addressed in the readme’s FAQs.

In your most recent update of the install walk through it looks step #9 got dropped (initial run with sudo bash monitor.sh)

Also, add me to the list of people with android phones that don’t appear to be sending random advertisements. My wife and I both have samsung galaxy s9s that aren’t detected using your suggested hcitool lescan and hcidump method.

I have paired my phone with both regular bluetooth devices and a BLE device (a 2017 nvidia shield remote), and the phone seems to be connected and working just fine with the bluetooth devices. Is it possible that hcitool isn’t detecting the advertisements? Or would it definitely be a problem with my phone?

Also, add me to the list of people with android phones that don’t appear to be sending random advertisements. My wife and I both have samsung galaxy s9s that aren’t detected using your suggested hcitool lescan and hcidump method.

Before I start, just wanted to thank @andrewjfreyer, awesome work sir! I’ve been watching this thread and decided to add a Pi Zero W to my collection so I can join in on the fun!

However, upon setting everything up it doesn’t appear to be finding any random advertisements from any of my Android phones, Galaxy S5, J2 Pro or Note 9.

Beacon Simulator

Bluetooth Low Energy (BLE) beacon simulator.
This app transforms your Android device into a virtual BLE beacon advertiser and transmitter. You can create your own collection of beacon configurations and use them anytime, anywhere, to emulate a physical beacon.
Its purpose is essentially to help developers working on beacon software with more flexibility than with some real beacons.
Current features:
- Broadcast and advertise iBeacon, AltBeacon, Eddystone
- Eddystone support for: URL, UID, un...

I have found another app that might shed some light on the Android situation, nRF Connect. Under Device Information there’s a section for Bluetooth low energy that list the phone capabilities. The item “Periodic advertisement supported” on my phone says “NO”. I’d be interested to hear from others if this is indeed an indicator if the phone will work out of the box with @andrewjfreyers excellent monitor service.