I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

I use MikroTik network gear at home, so I added the Mikrotik integration to Home Assistant. It showed my phone as a MAC address, connected through Wifi, and I used that as device tracker. Everything seemed fine, but then the next afternoon. the device tracker still showed me as Away.

I then discovered that GrapheneOS (edit: Android rather, see below) uses a different random MAC address for each connection to a network, as default. Changed it to use a static random MAC for my home network, and now it works as intended.

All this to avoid running the Morning Coffee automation if I'm not even home.

home-assistant.io/integrations

Screen shot from Home Assistant -> History for person Michael, showing me Home, Away, and then Home again. This matches my phone's connection to the home network.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.bsd.cafe/users/mjack/statuses/116047264338658170 on your instance and quote it. (Note that quoting is not supported in Mastodon.)