Announcement

Collapse
No announcement yet.

Stop a notification event - what am I doing wrong?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stop a notification event - what am I doing wrong?

    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?

    #2
    The cancel event function only cancels an event that is currently running. You need to add conditions to your Vacation Notify locks and doors Event:

    IF Porch Door Lock changes and becomes Unlocked
    AND IF Virtual Device Vacancy Status is Vacation
    OR IF Porch Access Control Notification changes and becomes Manual Unlock Operation
    AND IF Virtual Device Vacancy Status is Vacation
    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
    AND IF Virtual Device Vacancy Status is Vacation
    OR IF Sliding Door changes and becomes Open
    AND IF Virtual Device Vacancy Status is Vacation

    Then Send an Email to XXXXXXXXX@gmail.com From XXXXXXXXX@gmail.com
    with the subject HOMESEER MESSAGE: Door Open!

    You can edit the other events to remove the actions related to this event.

    Cheers
    Al
    HS 3.0.0.548: 1990 Devices 1172 Events
    Z-Wave 3.0.1.262: 126 Nodes on one Z-Net

    Comment


      #3
      You are misunderstanding one of the actions. "Then Cancel Event Vacation Vacancy Status - Vacation If It Is Executing" does not prevent that event from ever running, it will only cancel it if it is already running. The only way you can cancel a running event is if it is in a "Wait" action. Otherwise events complete so fast that they cannot be cancelled by a subsequent event.

      The way you have your event setup, the first event will run the second event as soon as "Virtual Device Vacancy Status changes and becomes Vacation". Your second event will run every time any of the four triggers is true.

      To make it work remove "Then Run Event Vacation Notify locks and doors" from the first event and remove "Then Cancel Event Vacation Notify locks and doors If It Is Executing" from the last event. I don't know what "Then Cancel Event Vacation Vacancy Status - Vacation If It Is Executing" does, but it probably is not working either and can be removed.

      Then you need to edit your "Event Vacation Notify locks and doors:" and put a condition after each of your four triggers. The condition would be "AND IF Virtual Device Vacancy Status is equal to Vacation". The condition must be individually applied to each trigger. For understanding see this thread.

      Comment


        #4
        Awesome, thank you both sparkman and rprade!

        Comment

        Working...
        X