Skip 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.

Examples of what you can do with the Timer plugin

Featured Replies

This plugin gives you interval timers, which allows programs to interact based on time intervals. This is more versatile than a Wait statement because the triggering condition doesn't have to stay true for the time interval to complete and move on to the next statment. Several programs can also interact based on the timer. Think of it as a State variable with a built-in clock. The rule is very simple: if the timer is set to any value other than 0, it increments once per second.

A couple of examples to illustrate use:

1- An Insteon motion sensor that is configured to send only On commands whenever motion is sensed (this is a programming option for the motion sensor), to allow retriggering the time interval as long as motion is sensed. Two programs are used:

-Motion turns on light and starts timer:

If Motion sensor is switched on (looks for control event)

Then Turn on light

Then Timer_1 Start (timer start command sets/resets it to 1)

-Timer reaches 60 seconds (or whatever value you want) without being retriggered by movement)

If Timer Controller / Timer_1 Value > 60 (better to use > instead of =, in case the test doesn't occur exactly during the one second period when it reaches 61)

Then Turn off light

Then Timer_1 Reset to 0

2- second example: a fancy bathroom fan timer that sets the fan run time (as a variable) to an initial 10 minute value, and allows you to add an extra 4 minutes twice (for a maximum of 18 minutes) by pressing the switch again up to twice more (generate additionnal control events). 4 programs are used:

- Turn on fan and start timer.

If Fan_switch is switched On (looks for control event)

And Timer Controller / Timer_2 value is 0 (if first press, timer isn't running)

Then s_fan_time = 600 (set desired time variable to 600 seonds)

Then Timer_2 Start

-Optionally add time with additionnal switch presses

If Fan_switch is switched On

And Timer Controller / Timer_2 > 0 (if not first press...)

And s_fan time < 1080 (and maximum 18 minute interval is not reached)

Then s_fan_time += 240 (add 4 minutes)

-If the timer reaches the desired duration

If Timer_2 Value > s_fan_time (better to use > instead of =, in case the test doesn't occur exactly during the one second period when it reaches the exact value)

Then Set Timer_2 Reset to 0 (stop the timer)

Then s_fan_time = 0 (reset the duration value to 0)

Then Set Fan_switch Off (stop the fan)

-If the switch is turn off manually, just stop the timer and reset duration values

If Fan_switch is switched Off

Then Set Timer_2 Reset to 0 (stop the timer)

Then s_fan_time = 0 (reset the duration value to 0)

Create an account or sign in to comment

Account

Navigation

Search

Search

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.