I have a number of access points around the house, so created this Python script which tracks phone Wifi MAC addresses by checking which access point they are connected to. It then submits this to HASS as a sensor, so you can perform actions based on where people are.
This only works with access points running OpenWRT with SSH enabled.
See full info on the readme on github: https://github.com/velkrosmaak/openwrt-locator
PR’s, comments and thoughts welcome!