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.

Can I search all programs for variables?

Featured Replies

Posted

Hello Community!

I am working to understand a complex (~60 program) system that came with my home as purchased.  The original owner set variables to run programs based on sunrise and sunset using about 10 variables.  I am trying to find where variables are set and called so I can understand the logic and intent of the programs. 

Is there a way to search programs for the existence of variables so I can trace when and why they are set without manual searches?  I can of course see when variables are changed in the variables window.

Many thanks to those more experienced than I!

 

Yes, right click a program or folder in the program tree and pick "Find/Replace"

fill out the dialog box and click Find.

image.png.18b27bfca10c00f18fd31a844da8cf19.png

I used to always instruct to use "my programs" at the top, but it was pointed out to me it doesn't matter where you click Find from that it always starts at the top.

Just to clarify. Did you try to use the find/replace?

image.png.5407ea1be2bf8779e7f60a6052096ffd.png

6 minutes ago, kevinkaz said:

Just to clarify. Did you try to use the find/replace?

Find is generally what I'm needing/using.  I'm not sure I've ever had the need for Replace.  I will point out that that unless the Replace drop-down is changed it defaults to whatever the Find drop-down was last set, Replacing with the same is functionally equivalent to Find.

  • Author

GREAT to know this trick.  My prior owner got pretty sophisticated with variables and some are making the lights do very strange things.

 

Thank you!

2 minutes ago, DPhelps said:

GREAT to know this trick.  My prior owner got pretty sophisticated with variables and some are making the lights do very strange things.

I you're taking over an existing system two important questions:

  1. Do you understand the difference between a State and Integer Variable? 
  2. Do you understand the concept of the Event Based programs in the ISY? 

Master those two topics before making too many changes.  ISY programs don't work like most new users expect them to.

  • Author

State / Integer - YES!

Event Based Programming - Will investigate.  If this is using state variables to trigger events then I am familiar.

THX - I appreciate any expert guidance as I learn this system on my own.

26 minutes ago, DPhelps said:

If this is using state variables to trigger events then I am familiar.

Yes.  The part that trips some up tho is (for example)

If

   $sDay= 1

then

    Turn on the light

     wait 1 hour

     Turn off the light

else

     (nothing)

If the light turns on and is waiting to turn off and the value of @sDay changes, the light won't turn off, as soon as the value of the $sDay changes the currently running program evaporates and a new copy executes, and since the value changed it's not 1 anymore, which means that the empty Else will run and immediately finish.

Another common trip up is Else runs more often than at first realized, especially in the case of compound IF statements.  When the value of any condition in the IF statement changes the entire IF is re-evaluated, whenever the result is false Else runs.

 

 

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.