The idea is this; I currently have Presence device arrival triggering “home” mode. I want to make it so that if we drive by the house (e.g. we “arrive” then we “leave”) WITHOUT activating the motion sensor, then the house goes back to “away” mode.
I’ve set a date/time variable called @lasthomemode that will capture the date/time that the location mode changes to home.
I’ll set up:
IF @bothaway changes to true
AND Location Mode is Home
AND Motion has been inactive since @lasthomemode
THEN set Location Mode to Away
How do I set up the “motion has been inactive since @lasthomemode” part of the piston?