Announcement

Collapse
No announcement yet.

Event triggered when condition is not true?

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

    Event triggered when condition is not true?

    Hi,

    Both events are triggered at the same time (see picture below),
    Click image for larger version

Name:	Capture event trigger.jpg
Views:	1
Size:	10.2 KB
ID:	1212434

    while not all conditions are true.
    Click image for larger version

Name:	Capture. events.jpg
Views:	1
Size:	79.0 KB
ID:	1212435

    Is this bad scripting practice my side or is the logical function "and if" or condition "<= / >" not respected.

    ---
    John

    #2
    Originally posted by John245 View Post
    Hi,



    Both events are triggered at the same time (see picture below),

    [ATTACH]68969[/ATTACH]



    while not all conditions are true.

    [ATTACH]68970[/ATTACH]



    Is this bad scripting practice my side or is the logical function "and if" or condition "<= / >" not respected.



    ---

    John
    HS4 4.2.6.0 &HSTouch Designer 3.0.80
    Plugin's:
    BLBackup, BLOccupied, BLShutdown, EasyTrigger, Ecobee, Nest, AK Bond
    EnvisaLink DSC, PHLocation, Pushover, SONOS, Blue Iris, UltraRachio3,
    weatherXML, Jon00 Alexa Helper, Network Monitor, MyQ, Z-Wave

    Comment


      #3
      Originally posted by John245 View Post
      Hi,

      Both events are triggered at the same time (see picture below),
      [ATTACH]68969[/ATTACH]

      while not all conditions are true.
      [ATTACH]68970[/ATTACH]

      Is this bad scripting practice my side or is the logical function "and if" or condition "<= / >" not respected.

      ---
      John
      As The Profit says the first trigger (If) in each event is the same and doesn't have any conditions so both events trigger. For your use you want to add the same condition (And If) you have after the second trigger (Or If) to the first trigger (If). Click the + at the right hand end of the first trigger (If) line to insert a new Trigger/Condition after the first trigger, select And If to make it a condition and set the same parameters as you have for the And If after your second trigger.

      An event can have multiple triggers, the first being the 'If' and subsequent ones 'Or If's. Each trigger can have its own set of conditions 'And If's. Each event only has one set of Actions.

      The layout of the event shows a space between each set of triggers and conditions to indicate how the conditions are grouped with the triggers.

      Steve

      Comment

      Working...
      X