Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using another "If" in the "Then" section

Featured Replies

Posted

Example:

If

   Control 'KpIrr A Zone 1' is switched on

then

   Set Scene 'Irrigation Zone 1 Indicator' On

   Set EZRain 1 - Driop Zone' On

   If

      $Int_Irrigation_Time = 5

   Then

      Wait 5 min

   Else If

      $Int_Irrigation_Time = 10

   Then

      Wait 10 min

   Else If

      $Int_Irrigation_Time = 15

   Then

      Wait 15 min

 

How can this be accomplished?

Lp

     

Example:

If

   Control 'KpIrr A Zone 1' is switched on

then

   Set Scene 'Irrigation Zone 1 Indicator' On

   Set EZRain 1 - Driop Zone' On

   If

      $Int_Irrigation_Time = 5

   Then

      Wait 5 min

   Else If

      $Int_Irrigation_Time = 10

   Then

      Wait 10 min

   Else If

      $Int_Irrigation_Time = 15

   Then

      Wait 15 min

 

How can this be accomplished?

Lp

Multiple programs.

ISY is an event triggered engine and does not support sequential line code well in this style without confused logic.

 

If

   Control 'KpIrr A Zone 1' is switched on

then

   Set Scene 'Irrigation Zone 1 Indicator' On

   Set EZRain 1 - Driop Zone' On

   Run program2

 

program2

If

      $Int_Irrigation_Time = 5

Then

      Wait 5 min

 Else

       Run program3

 

program3

If

     $Int_Irrigation_Time = 10

then

 ......

I use the same approach as larryllix.  Just be aware that when you call the second program, make sure to choose IF path:

 

Run second program (if path)

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.