Diesel Posted October 17, 2011 Posted October 17, 2011 Hi all, Need some help with a new 2420M ver2.0 Motion Sensor and email notification. 2420M is installed outside for night time perimeter security. All seems to work triggering the lights I've specified in the program. Next objective was to send myself an email notification when it sensed motion. So I added the program below and it works, but how do I get it to send just 1 email instead of 15-20 of them? If Control 'Outside / Outside:Motion-Sensor' is switched On Then Send Notification to 'Me' content 'Outside Rear Motion Detected' Wait 15 minutes Else - No Actions - (To add one, press 'Action') It seems like it sends an email each time the sensor detects motion, even a few seconds apart which hammers my inbox. I had hoped adding the 'Wait 15 mins' would help, but no luck. What am I missing?
Michel Kohanim Posted October 17, 2011 Posted October 17, 2011 Hi Diesel, Please note the following: 1. Control means that every time motion is sensed, the condition is evaluated to true and the Then section is executed 2. Wait is interruptible ... this means that every time the condition is evaluated to true, Wait stops and execution starts from the beginning of the Then section The questions that you have to answer are: 1. Do you want to be notified every time there's motion sensed? If so, you do not need the Wait and you shall be notified every time the motion is sensed (Wait has zero impact in this case) 2. Do you want to be notified of occupancy? i.e. after n minutes of continuous motion, then send notification. In this case, you want to move the Wait above the Notify statement In all cases, the following tutorial can provide you with more information with regards to motion/occupancy sensing: http://www.universal-devices.com/mwiki/ ... _Bathrooms With kind regards, Michel
Diesel Posted October 17, 2011 Author Posted October 17, 2011 Hi Michel, I just want to receive an email notification as soon as the motion sensor is triggered, but only once and then not again for X minutes, otherwise the notifications flood my inbox. I don't want the system to wait 15mins after sensing motion to notify me. For example, the sensor will detect motion when the Gardner is cutting the grass, but currently I would receive 35 emails a minute. Just once would be fine, and then if motion continues 15 or 30mins later, it can send another notification again. How do I achieve this? Thanks for your help.
LeeG Posted October 17, 2011 Posted October 17, 2011 Define an Integer variable initialized to 0. To the If statement that is triggering on Motion On add an ANDed check of the Integer variable equal to 0. The existing Program will send an email only when motion is sensed and the Integer variable is 0. Define a new Program with a null If, a Then that sets the Integer variable to 1 followed by a Wait of 15/30 minutes followed by setting the Integer variable to 0. So long as the Integer variable is not 0 the Program sending the email will not be triggered. Change the existing Wait in the email Program to a Run Then of the new Program. When motion is detected an email will be sent. A second Program is run that will set the variable to a value that prevents further email for the specified time. If not on a V3 image where variables are available a Program True/False state can be used as a binary switch rather than an Integer variable.
Diesel Posted October 18, 2011 Author Posted October 18, 2011 Hi Lee, Thanks for your help. I've created the variable and related program, and updated the email notif program as you outlined. When trying to rename the variable from Int_1 to something meaningful, it always seems to reset back to Int_1? I'm surprised that there's no simpler (or inherent) way to throttle or limit the number/interval of emails sent when motion is detected? For example: You have a motion sensor in the back yard and want to receive an email notification when there's movement, so you can have a look on your cameras to see what's going on. If the gardner shows up, your inbox gets hammered every second while cuts the grass!
LeeG Posted October 18, 2011 Posted October 18, 2011 The Motion Sensor must be set for Sense (Occupancy) Mode to get Motion On messages before the Timeout expires. The number of Motion On commands can be reduced by turning Off Sense (Occupancy) Mode and setting the Timeout value to some number of minutes. This may defeat the purpose for which you installed the Motion Sensor. For light control that works well. For security that may not be what you want. There is no built in configuration option to indicate email requests should be ignored for a given amount of time or Motion On messages that were configured to come quickly should be ignored. Was the Save button clicked after changing the variable name? I am not able to recreate the variable name changing back unless I forget to use Save. Running 3.1.9.
TJF1960 Posted October 18, 2011 Posted October 18, 2011 Also, there can be no spaces in the name of the variable.
Recommended Posts