I have a home/vacation virtual device to turn things off and set the house up to do a few things while I am away. One of those things is to notify me via email if the front door is unlocked or a window is opened. The trouble I am having is that I can't sort out how to stop the notification event once the virtual device is returned to home from vacation.
Event to set up Vacation mode:
IF Virtual Device Vacancy Status changes and becomes Vacation
Then BLOccupied: Start Occupancy Simulation
Then Run Event Vacation Notify locks and doors
Event Vacation Notify locks and doors:
IF Porch Door Lock changes and becomes Unlocked
OR IF Porch Access Control Notification changes and becomes Manual Unlock Operation
OR IF Porch Access Control Notification changes and becomes a value in the range of User Code 0 Keypad Unlock Operation to User Code 40 Keypad Unlock Operation
OR IF Sliding Door changes and becomes Open
Then Send an Email to XXXXXXXXX@gmail.com From XXXXXXXXX@gmail.com
with the subject HOMESEER MESSAGE: Door Open!
Event to end Vacation mode:
IF Virtual Device Vacancy Status changes and becomes Home
Then Cancel Event Vacation Notify locks and doors If It Is Executing
Then Cancel Event Vacation Vacancy Status - Vacation If It Is Executing
Then BLOccupied: Stop Occupancy Simulation
My assumption is that when I end "vacation mode" and "Then Cancel Event Vacation Notify locks and doors If It Is Executing" should stop the email notifications when the door is unlocked, but that does not seem to be working. I have tried other combos without success. I know this is simple, what am I missing?
Event to set up Vacation mode:
IF Virtual Device Vacancy Status changes and becomes Vacation
Then BLOccupied: Start Occupancy Simulation
Then Run Event Vacation Notify locks and doors
Event Vacation Notify locks and doors:
IF Porch Door Lock changes and becomes Unlocked
OR IF Porch Access Control Notification changes and becomes Manual Unlock Operation
OR IF Porch Access Control Notification changes and becomes a value in the range of User Code 0 Keypad Unlock Operation to User Code 40 Keypad Unlock Operation
OR IF Sliding Door changes and becomes Open
Then Send an Email to XXXXXXXXX@gmail.com From XXXXXXXXX@gmail.com
with the subject HOMESEER MESSAGE: Door Open!
Event to end Vacation mode:
IF Virtual Device Vacancy Status changes and becomes Home
Then Cancel Event Vacation Notify locks and doors If It Is Executing
Then Cancel Event Vacation Vacancy Status - Vacation If It Is Executing
Then BLOccupied: Stop Occupancy Simulation
My assumption is that when I end "vacation mode" and "Then Cancel Event Vacation Notify locks and doors If It Is Executing" should stop the email notifications when the door is unlocked, but that does not seem to be working. I have tried other combos without success. I know this is simple, what am I missing?