I'd use a flag and set it when you're at home. Then have the macros only execute when the flag is set.
OR.. Set the flag when you leave have the macros only execute when the flag is clear.
Get the idea?
I have a pair of macros linked by an else that execute welcome or exit depending on whether my at home flag is set. Then driving over a switch I made in the garage either turns on a welcome light for me or shuts off all the lights when I leave. In both cases the garage door closes automatically, in 20 sec if I'm leaving and about 5 min if I'm coming home.