

I have thought about different ways to do that. Both iOS and android have the ability to run scripts upon certain triggers such as joining a certain Wi-Fi network. (On iOS the Shortcuts app can do this). I’ve thought about using that to post to the already running mqtt broker and using that to update my system. Or I’ve thought about just snooping all the nearby Wi-Fi clients to my server, and if it detects my phone, do something similar.
Or I suppose you could turn it around, before the system decides it has an intruder, check to see if your phone is in fact at home via some method. Either scanning for it on Wi-Fi or some other way.
IMO everyone should read Culture Clash by Jean Donaldson. Really sets the stage for further reading into dog training, but is also great to just demystify a lot of misconceptions people have about dog behavior in general. 100% this one.