Something is wrong with the ping me at home isarmed code. Removed it in favor of this code to disable the security system when I get home. configure>scenes>pingmeathome Code can be copied and changed to the "away" else if statement below to arm the system when your device is not in range. Please note you must change the "program name" to whatever your security program is named. The default name is shown below "Security Alarm System" Add the 3 lines after "disable alarm" to your existing code:
if (pinging_buddies > 0 && Program.Parameter("PingMe.AtHome").Value != "1")
{
Program.RaiseEvent("PingMe.AtHome", "1", "Ping Me At Home");
//Disable Alarm
Program.WithName("Security Alarm System").RaiseEvent("HomeGenie.SecurityArmed", "0", "Security System");
Program.WithName("Security Alarm System").Parameter("HomeGenie.SecurityTriggered").Value = "0";
Program.WithName("Security Alarm System").Parameter("Status.Level").Value = "0";
}
else if (pinging_buddies == 0 && Program.Parameter("PingMe.AtHome").Value != "0")
{
Program.RaiseEvent("PingMe.AtHome", "0", "Ping Me At Home");
}