Security Script

Posted on
Tue Jul 26, 2011 2:47 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

bschollnick2 wrote:
pomprocker wrote:
I've been seeing this in my log in v5b6:

Error script error: in file "Security Script v4_03.scpt"
Error script error: «script» doesn’t understand the str message. (-1708)
Error error dispatching event to attachment script (-1753)


That's strange.... Have you made any changes to the Security Script configuration recently?

Can you email (benjamin AT schollnick DOT net) me your Security Script? I would like to see what your configuration is...


Can you post more of the log? I believe I have seen the issue here.... For some reason, if you have an unrecognized sensor id, this can appear.

I believe within 2-4 lines either above, or below, you will see a message regarding an unrecognized sensor...

I'll see if I can track this down, but with Indigo v5 around the corner, and hopefully including the X10 security code that I need, I have not decided on what I am going to do regarding the Applescript security script...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Jul 26, 2011 2:48 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

pomprocker wrote:
I had emailed you the script, and never heard back from you.


Sorry.... Real life, specifically a death in the family, has thrown everything into a little bit of chaos... See my previous posting..

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Jul 26, 2011 2:52 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Security Script

I'm sorry for your loss :(

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Fri Sep 02, 2011 11:57 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Security Script

How can I get the security script to relax on the number of emails it sends?


Code: Select all
Sep 2, 2011 10:45:23 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:45:23 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 124 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:45:33 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 124 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:46:00 PM
  Schedule                        Clock
  Received RF                     security command sensor normal (min delay) (ID 17)
  Security                        Heart Beat detected from Dining_Room_Window
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 124 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:46:26 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:46:26 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 125 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:46:36 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 125 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:47:00 PM
  Schedule                        Clock

Sep 2, 2011 10:47:35 PM
  Received RF                     security command sensor normal (min delay) (ID 245)
  Security                        Heart Beat detected from Right_Living_Room_Window
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 126 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:47:59 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:47:59 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 126 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Schedule                        Clock
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:48:09 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 126 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:48:55 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:48:55 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 127 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Schedule                        Clock
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:49:05 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 127 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:50:00 PM
  Schedule                        Clock
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:50:10 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 128 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:50:20 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 129 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:50:57 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:50:57 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 129 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Schedule                        Clock
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:51:07 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 129 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:52:00 PM
  Schedule                        Clock
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:52:05 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 130 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:52:14 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 130 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Sep 2, 2011 10:52:51 PM
  Received RF                     security command sensor alert (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:52:51 PM Family_Room_Motion Opened
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 131 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net
  Schedule                        Clock
  Received RF                     security command sensor normal (max delay) (ID 145)
  Security                        Friday, September 2, 2011 10:53:01 PM Family_Room_Motion Closed
  Security                        Left_Living_Room_Window_last_update may not be active.  Inactivity for 131 minutes.
  Security                        Sending HeartBeat Alert email to myemail@gmail.com
  Security                        Sending HeartBeat Alert email to 1234567890@mms.att.net

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Mon Sep 05, 2011 6:05 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

pomprocker wrote:
How can I get the security script to relax on the number of emails it sends?


Well, it's doing exactly what you have told it to do...

Open the security script, and change the following:

property Inactivity_Heartbeat_Watchdog : 7200
-- The maximium number of seconds before a warning will start appearing for an alarm heartbeat. If you receive an inactivity warning, please check the batteries, and test the contacts. The Deafult is : 7200 seconds = 120 Min = 2 Hrs before a inactivity warning will start logging.

But the question here is, how is an X10 security sensor not sending a heartbeat within 120 minutes?

The sensors you are having an issue with are X10 (DS10A, MSxxx)? The security script will not send heartbeat warnings for insteon units, since they do not have a heartbeat...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Sep 06, 2011 12:50 am
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Security Script

bschollnick2 wrote:
pomprocker wrote:
How can I get the security script to relax on the number of emails it sends?


Well, it's doing exactly what you have told it to do...

Open the security script, and change the following:

property Inactivity_Heartbeat_Watchdog : 7200
-- The maximium number of seconds before a warning will start appearing for an alarm heartbeat. If you receive an inactivity warning, please check the batteries, and test the contacts. The Deafult is : 7200 seconds = 120 Min = 2 Hrs before a inactivity warning will start logging.

But the question here is, how is an X10 security sensor not sending a heartbeat within 120 minutes?

The sensors you are having an issue with are X10 (DS10A, MSxxx)? The security script will not send heartbeat warnings for insteon units, since they do not have a heartbeat...



Left_Living_Room_Window is a DS10a, now the question is why is it emailing me 5 times a minute?

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Tue Sep 06, 2011 4:06 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

pomprocker wrote:
bschollnick2 wrote:
pomprocker wrote:
How can I get the security script to relax on the number of emails it sends?


Well, it's doing exactly what you have told it to do...

Open the security script, and change the following:

property Inactivity_Heartbeat_Watchdog : 7200
-- The maximium number of seconds before a warning will start appearing for an alarm heartbeat. If you receive an inactivity warning, please check the batteries, and test the contacts. The Deafult is : 7200 seconds = 120 Min = 2 Hrs before a inactivity warning will start logging.

But the question here is, how is an X10 security sensor not sending a heartbeat within 120 minutes?

The sensors you are having an issue with are X10 (DS10A, MSxxx)? The security script will not send heartbeat warnings for insteon units, since they do not have a heartbeat...



Left_Living_Room_Window is a DS10a, now the question is why is it emailing me 5 times a minute?


DS10A's and other RF based X10 devices have an "heartbeat", periodically they will send a "duplicate" message reminding the X10 system that they are open or closed. To my knowledge there is no way to turn that off.

You'll see in your log, the security system is processing an X10 command, and warning you that sensor has not been seen in over 2 hours. Typically the heartbeat is seen roughly every hour...

If that sensor is not reporting in with an heartbeat, either the sensor is bad, or possibly the batteries are dying... Assuming you haven't moved or otherwise changed your x10 transceivers around.

My advice, is to open Indigo, open the log and then go to the sensor in question, press the test button 3 times.

Check the log, you'll see a group of 3 off/on (or on/off) messages from a sensor. Make sure that it's being seen as itself, and not as a different X10 RF ID. The X10 RF devices easily are reset to a different id...


Because the security script has not seen a heartbeat from the DS10A for over 2 hours,

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Sep 07, 2011 5:34 pm
Brandt offline
User avatar
Posts: 414
Joined: Dec 24, 2008
Location: Mission Viejo, CA

Re: Security Script

The heartbeats don't set off triggers or action groups do they?

Indigo 7 w/ Dual-Band 2413U PLM
macOS High Sierra 10.13.x
2011 iMac 3.4 GHz Intel Core i7

Posted on
Wed Sep 07, 2011 8:03 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

Brandt wrote:
The heartbeats don't set off triggers or action groups do they?


No heartbeats for X10 devices do not trigger any actions. They are tracked to help ensure the devices are still active... But are ignored by the security script...

(As a reminder Insteon devices do not have a heartbeat)

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Oct 29, 2013 10:25 am
rob_hut offline
Posts: 30
Joined: May 04, 2009

Re: Security Script

Hey guys, I am trying to use Indigo as my security system. I have the Securilink SC1200, but I am thinking instead of trying to interpret signals from the system from the Indigo app, perhaps I can have an algorithm that mimics the alarm system:
When enabled, if triggers are received from window sensors etc, then alarm is tripped.

It looks as if you have this solved, can you please create a tutorial on how you did this? I know how to program, and script, but have never done it with Indigo and still have a LOT to learn with regards to X-10!

Is there a way to get signals from a motion sensor in Indigo? (I have the MS18A models) As well as the window sensors (DS12A models).

I know that there are variables in Indigo, so I should be able to test against that..
(pseudo code)
if ( signalReceivedFromDevice && alarmActive === true ) {
startAlarmSequence;
}

Perhaps sitting down with the system and trying to noodle it will get me a long way, but Im guessing there must be tips, tricks, and options you have come across I can learn from.

Thanks!
Bo

Posted on
Wed Nov 06, 2013 10:45 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Security Script

rob_hut wrote:
Hey guys, I am trying to use Indigo as my security system. I have the Securilink SC1200, but I am thinking instead of trying to interpret signals from the system from the Indigo app, perhaps I can have an algorithm that mimics the alarm system:
When enabled, if triggers are received from window sensors etc, then alarm is tripped.

It looks as if you have this solved, can you please create a tutorial on how you did this? I know how to program, and script, but have never done it with Indigo and still have a LOT to learn with regards to X-10!

Is there a way to get signals from a motion sensor in Indigo? (I have the MS18A models) As well as the window sensors (DS12A models).

I know that there are variables in Indigo, so I should be able to test against that..
(pseudo code)
if ( signalReceivedFromDevice && alarmActive === true ) {
startAlarmSequence;
}


Using Switchboard, you would define a Monitored Device Group. A Monitored Device Group is simply a container that stores common devices together.
Let's construct an example, let's say your setting up a Monitored Device Group for your Living Room Windows. Create the Monitored device group, and then add in your Window Trigger Lincs, or DS10As that are monitoring your Living Room Windows, into that Living room Window Monitored Device Group.

Once done, you can then either set an Indigo Trigger for that Group being triggered, or you can use the built-in Action Group support.

The Built-in Action Group support means that it will take whatever action group name you have defined (in the Action Group Name field), and append the following states:

* Open
* Closed
* Armed
* Disarmed
* Panic
* LightsOn
* LightsOff

So let's take your example. You have Living Room Windows Device Group created, and you have Turned on Action Group Support with a Action Group Called "Living Room Windows". (Yes, very creative!).

If the Window Sensor is "opened", then the Action Group called Living Room Windows_Opened will be automatically triggered by Switchboard.
When the Windows Sensors are returned to a closed position, the Action Group called Living Room Windows_Closed will be automatically triggered by Switchboard.

I'll see about detailing this more.

- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Who is online

Users browsing this forum: No registered users and 5 guests