I will share my “welcome home” piston, which it’s based on two “presence sensors” and a motion sensor.
The Presence Sensors are in fact two Virtual Switches that are ON via IFTTT only when either my phone or my wife phone it’s in a specified range from our home.After this, i have inside my apartment a Xiaomi Motion Sensor.
If one of two Phones are presend in conjunction with the motion sensor, the piston runs a sequence of actions.
In the end of the piston it’s an improvisation of mine, I don’t think it’s the best way to do it, but it works for me.My problem with this setup was that when I am using the “followed by” function, usually it took almost 10 minutes until the piston run properly (changing the location mode to home and alexa speaking some welcome announcement ), so I’ve chosed to force run the piston once in 30 seconds only on Away mode, so now it takes max 30 seconds in which the piston runs perfectly.
Similarly I have a “Goodbye” Piston, where IF both Presence Sensors are OFF (when the phones are out of the specified IFTTT GPS range), the house enters to Away mode, and some other stuffs.If only one of the Presence Sensor it’s gone(me gone, my wife in the house) nothing happens.If you are interested, please let me know, I will post my piston here.
Please tell me if I can help you further.Hope it helps!