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.

Fast On/Off Icon #2876S

Featured Replies

Posted

I am using Icon On/Off switches for outside basement lights and have this question: How can I program to shut off in 5 minutes after pressing button, unless i double tap it - then I want light to stay on until i shut it off, or 11:00pm(at which point it could shut off automatically) Any suggestions on how to program that?

Thanks

How about:

 

If
       Control 'Icon Switch' is switched On
   And Control 'Icon Switch' is not switched Fast On
   And Control 'Icon Switch' is not switched Off

Then
       Wait  5 minutes 
       Set 'Icon Switch' Off

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

 

and

 

If
       Time is 11:00:00PM
   And Status  'Icon Switch' is On

Then
       Set 'Icon Switch' Off

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

  • Author

ok, very nice. And if I wanted to have a warning blink, is that possible. I tried this, but all it does is shut lights off:

If Time is 11:00pm

And status is On

Then

Set scene basement lights off

wait 1 seconds

set scene basement lights on

Wait 1 minute

Set scene basement lights off

Every change in trigger events causes a re-evaluation of the IF statement, so by turning the light off you are aborting the program.

 

To accomplish that, you'd want to use another program:

 

If 
       Time is 11:00:00PM 
   And Status  'Icon Switch' is On 

Then 
       Run Program 'Blink' (Then Path)

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

 

and

 

'Blink' program:
If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Set 'Icon Switch' Off
       Wait  1 second
       Set 'Icon Switch' On
       Wait  1 minute 
       Set 'Icon Switch' Off

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

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.