drprm1 Posted January 28, 2014 Posted January 28, 2014 Have had a program for many months which notified my by email if my garage was opening It's the only program I have a notification in: If Control 'Garage Door Sensor' is switched On Then Send Notification to 'Default' content 'Garage Door Opened' Else - No Actions - (To add one, press 'Action') Been working great till I decided to rename the program. Now it sends three consecutive emails of the same content when the sensor is switched On. Tried deleting the program and writing it again but no help. Looked through Event Viewer but couldn't identify the notifications being sent so its no help (to me).
drprm1 Posted January 28, 2014 Author Posted January 28, 2014 Noticed that if I run the Then clause I only get one email notification
Xathros Posted January 28, 2014 Posted January 28, 2014 I suspect the problem is switch bounce from the reed switch door sensor causing multiple On commands as the magnet moves past the switch. I bet your event viewer shows multiple DON messages from the sensor when the door opens. Adding a wait should help. Try this: If Control 'Garage Door Sensor' is switched On Then Wait 3 seconds Send Notification to 'Default' content 'Garage Door Opened' Else - No Actions - (To add one, press 'Action') This will filter out the bounces and you should only receive one notification. If you still get multiple, try increasing the wait to 6 seconds but I bet the 3 will resolve it. -Xathros
drprm1 Posted January 28, 2014 Author Posted January 28, 2014 You are right sir! The dreaded switch bounce was it. Much appreciated...
Recommended Posts