OK, so I’m cautiously optimistic that this is my long-term solution
Here’s what I did:
-
On a Raspberry Pi (3B+ in my case), I followed the steps described here: https://github.com/andrewjfreyer/monitor - specifically, the sections “Installation Instructions for Raspberry Pi Zero W” and " Configuration and Setup", right up until point 10 “Edit mqtt_preferences file:”, which I did not follow
-
Created a new user in HASS.IO for MQTT purposes
-
Installed the MQTT addon in HASS.IO and started it
-
Restarted HASS.IO
-
Installed the MQTT integration in HASS.IO, using the Discovery option
-
Went back to the Pi and did Step 10 from the guide (“Edit mqtt_preferences file:”) with the user and pass I created in HASS.IO for this purpose
-
DID NOT FOLLOW STEP 11 TO ADD ANY KNOWN MAC ADDRESSES (because when I did, it would just see my Tile twice when scanning, once home and once not_home, thus rendering the whole thing useless)
-
Edited the behavior_preferences file on the Pi to add the line “PREF_DEVICE_TRACKER_REPORT =true” (thus the system will work as a device tracker, not just with the percentages initially described by the author, saves you from creating template sensors if all you want is home/not_home)
-
Edited configuration.yaml to add a new device tracker:
The device address mentioned here is its MAC address and “first floor” is whatever you configured in the mqtt_preferences file
- Type on the Pi “sudo bash monitor.sh -b”
That’s it! Works great so far.