Announcement

Collapse
No announcement yet.

need event to trigger between 4pm and 6am only

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

    #16
    Originally posted by geeTee View Post
    IF (your trigger)
    AND IF The time is after 4PM

    OR IF (your trigger)
    AND IF The time is before 6AM

    THEN (your actions)

    is not what i need.


    I need


    IF (your trigger)
    AND IF The time is after 4PM

    AND IF (your trigger) <--------------------------- AND
    AND IF The time is before 6AM

    THEN (your actions)

    does not work.
    Note: Events start with a trigger. Triggers are started with 1) IF or 2)OR IF. The timeframe you mention is a Condition. Conditions start with AND IF. That is why your second trigger needs to be OR IF.

    Comment


      #17
      Originally posted by geeTee View Post
      i did that exact thing above but it doesnt work
      The Event as configured will work. As Kevb wrote, please post a screenshot.
      HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

      Comment


        #18
        Originally posted by geeTee View Post
        I need


        IF (your trigger)
        AND IF The time is after 4PM

        AND IF (your trigger) <--------------------------- AND
        AND IF The time is before 6AM

        THEN (your actions)

        does not work.
        This cannot work, because a Trigger is ALWAYS IF or OR IF. AND IF precedes a Condition.

        It has to be constructed as I posted or as SteveMSJ suggested.
        HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

        Comment


          #19
          Originally posted by geeTee View Post
          IF (your trigger)
          AND IF The time is after 4PM

          OR IF (your trigger)
          AND IF The time is before 6AM

          THEN (your actions)

          is not what i need.


          I need


          IF (your trigger)
          AND IF The time is after 4PM

          AND IF (your trigger) <--------------------------- AND
          AND IF The time is before 6AM

          THEN (your actions)

          does not work.
          No you need what I showed. The OR IF is a repeat of your Trigger which is the door sensor opening. There is nothing wrong with having two identical triggers in an event with separate conditions.

          Steve

          Comment

          Working...
          X