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.

Question on a timer program

Featured Replies

Posted

Hello,

 

I am sorry if this question has been asked in the past. I have not found an answer, so I thought I'd post for all to see.

 

I would like to setup a timer for my bathroom fan, to turn the fan off, after the light has been off for 10 minutes.

 

I understand I can use light turning off as a trigger, and then wait 10 minutes and turn fan off.

 

However, this leads to problems when multiple people are coming and going.

 

In other words, if I turn the light off, this is the trigger, and the timer starts counting down.

 

If someone comes in to the bathroom 7 minutes later, the fan will then turn off in 3 minutes.

 

I would like to avoid this, as I want to keep the fan on, until the light has been off (and stayed off) for 10 minutes.

 

Does anyone have any advice?

 

Thanks!!!

if 
   status bathroom light is off

then
  wait 10 minutes
  set bathroom fan off

else

 

 

If the light is turned back on during the wait, status changes and the wait is canceled.

 

Should do exactly what you want.

 

-Xathros

  • Author

Thank you very much.

 

I'll give it a try.

 

I am trying to move all programs to ISY from some other systems I have been running.

 

Travis

Unspoken regarding this suggestion is that programs with "wait" statements will be interrupted should an initial condition (such as "status") change. So...when the light is turned off, then back on, this will halt the execution of the program, starting it again when the light is turned off the second time.

 

In some cases, this can be undesireable. In this case, however, it is a nice capability.

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.