Hello everyone,
I have a use case that I wasn’t able to address.
I would like to be able to track via my phone a beacon tag near my appartment door to open it automatically similarly to a nfc tag would do if you scan it with your phone.
With the new discovery of iBeacon tags within home assistant’s new update does anyone know if its possible to do that?
You don’t even need a beacon. The companion app has an integrated beacon sender, and the new home assistant beacon tracker can recognize it.
So with a simple condition of the numeric state you can fire your automation to open the door.
But your home assistant must be near the door to work, if not you could use an esp32 as a bluetooth proxy (i’m not 100% sure) or use espresence:
Last one i’m using about a year to check if i am near before the door opens automatically. Works really good.
The other way round is a beacon scanner, this one is relative new in the companion app. It will give you a sensor with the estimated distance to the beacon.
Hello, Thanks for the quick reply.
My problem is that I live in an apartment building with multiple appartments.
I don’t have access to a an electrical source or connectivity near the front door which I would like to open. This is why I was thinking of using a beacon tag (running on batteries) and trigger an automation once my phone come’s near by. I could also use multiple beacon tags to triangulate more precisely my position with the street.
Those tags would rather act as antenna instead of trackers.
My phone is what I want to track.
I can’t find the ibeacon ref I bought but its similar to this one:
there is one app that can show you the broadcast uuid for sure; it’s called Beacon Scope by David Young in the Google play store. No iPhone version though.
Another good way to get the broadcast uuid is to use the beacon manufacturer’s configuration app. Use it to connect to the beacon then find the broadcast uuid major minor, then just copy and paste.
Using a phone to do beacon scanning or to act as a virtual beacon is always going to disappoint eventually. Best option is to use HA or ESP to scan for a battery powered (or usb powered) beacon. Leave the phone out of the loop. Phones don’t like apps that run constantly.
Oh, that sounds like it might work better. Since it would turn on the scanning at the right moment, the app might get better priority from the smartphone OS. If so, you should be able to get good/fast/reliable scan results (e.g. the phone would see the beacon that was placed inside the front door).
I’m not familiar with the Companion app yet. Gotta spend some time playing around with it soon.
I’m getting the distance in meters after the Beacon ID instead of the major and minor. How would you go about matching just part of the attribute in a template instead of the part that’s constantly changing?
Awesome, thanks so much @dbrunt Do you know how I would be able to use the value too if say I only wanted to trigger if it was within X distance of the beacon?
That would require more elaborate templating based on the value of the attribute. I have not tried that since I am not concerned about the distance. In my case if it detects it, close enough! BT has a very limited range IMO…
Ive had ESPresense working just fine with 2 iPhones and 2 Apple Watches across 3x ESP32 devices. Took a little while to figure out the IRK values for the Apple stuff as it constantly changes MAC, but there is documentation on site to do it.
I just installed the standard ESPHome flash image on one of my ESP32 devices and I can’t get it to recognise any bluetooth devices yet, but it has appeared in HA, right now I might be sticking with ESPresense unless I suss this out!