There is a PingMe.AtHome app/program in the Security group which would give you a good starting point of using an event/parameter:
//setup
Program.Parameter("PingMe.AtHome").Value = "1";
//code
if (pinging_buddies > 0 && Program.Parameter("PingMe.AtHome").Value != "1")
{
Program.RaiseEvent("PingMe.AtHome", "1", "Ping Me At Home");
If I understand how this particular app works, you would need to have your router assign a fixed IP to your cellphone so the app could ping it reliably. Also would require WiFi on cellphone to be on as you arrived home.