andrewjfreyer / monitor

Distributed advertisement-based BTLE presence detection reported via mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only send message for specific beacons + ability to pool them

Sol1du2 opened this issue · comments

Hello! First of all thanks for making this script! It's really awesome! 😄

I have a couple of tiles that I use as a way to detect when someone is at home. They advertise themselves as beacons and, as far as I can tell, they don't respond to arrival/depart scans. Which brings me to my first question:

  • When I run the script with -b, it will send an MQTT message for every beacon it finds, not just the ones set in the known beacons file. I live in an apartment building so there are A LOT of beacons around me. But also my own devices, like the nest smoke detectors, some philips bulbs etc advertise as beacons. I added a bunch of of mac addresses to the filter list however there are just so many, it would be way more efficient if there was a way to only send messages about the ones I'm actually interested in. As far as I can tell currently there is no way of doing this. I wonder a feature like that would make sense to implement in your script :)

  • My second question is, if there is an MQTT message that could be used to get the current status of a known beacon. This would be great because if I need to reboot HA, I also have to reboot monitor so that I get the beacon status back. It would also help me check if monitor is still running by periodically ask it to give me a beacon status, since, from HA's perspective, there is no way to know if monitor crashed or if the beacon status hasn't changed.

Thanks so much!