Jump to content

Fast On/Off Icon #2876S


fastbird1

Recommended Posts

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

Link to comment

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')

Link to comment

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')

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...