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.

Yet another programming question

Featured Replies

Posted

In my theater's equipment room, I have a fan that helps cool the rack. The fan is controlled by a lamplinc. I want the fan to turn on when I turn the theater on and turn off an hour after I turn the theater off. I wrote what I thought would work, and it did until I found a glitch last night. About 30 minutes after I turned off the theater, I turned it back on. What I didn't realize is that because of the wait line in the off program, it was still running too!

 

So I wrote this instead:

 

To turn the theater On

 

If

IR 'IR_020' is Pressed

 

Then

Run Program 'Theater OFF' (Else Path)

Set 'Theater / Receptacle / Theater NE' On

Wait 1 second

Set 'Theater / Receptacle / Theater NW' On

Wait 1 second

Set 'Theater / Receptacle / Theater SW' On

Wait 5 seconds

Set 'Theater / Receptacle / Theater SE' On

Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Cool

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' 80° (Cool Setpoint)

Wait 2 seconds

Set 'Theater / Equipment Fan' On

 

Else

- No Actions - (To add one, press 'Action')

 

 

 

Then to turn it Off:

 

If

IR 'IR_019' is Pressed

 

Then

Set 'Indoor / Thermostats / Theater / HVAC Theater' Mode Off

Wait 5 seconds

Set 'Indoor / Thermostats / Theater / HVAC Theater' Fan Auto

Wait 5 minutes

Set 'Theater / Receptacle / Theater SW' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater SE' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NW' Off

Wait 5 seconds

Set 'Theater / Receptacle / Theater NE' Off

Wait 1 hour

Set 'Theater / Equipment Fan' Off

 

Else

- No Actions - (To add one, press 'Action')

 

 

 

 

Will this logic work?

Hi mitch236,

 

Why don't you use

Stop Program 'Theater Off'?

 

-or-

 

If

IR 'IR_019' is Pressed

And IR 'IR_020' is Not Pressed

 

Then

etc.

 

Rand

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.