Jump to content

Best way to suspend a program?


sfhutchi

Recommended Posts

Posted

I have a motion activated bathroom light and a separate program to turn off the light.

 

If someone manually turns off the light as they leave the bathroom, the light comes back on immediately (due to the first program activating).

 

What is the best way to suspend this activity for a period of time (30 seconds, 1 minute, etc.) and then reactivate the programs?

 

If
       Status  'Motion - Master Bath-Sensor' is On
   And From    Sunset  -  2 hours 
       To       9:59:59PM (same day)
   And Status  'Master Bedroom / Master Bath Light' is not On

Then
       Set 'Master Bedroom / Master Bath Light' 80%

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

 

 

If
       Status  'Master Bedroom / Master Bath Light' > Off
   And Status  'Motion - Master Bath-Sensor' is Off

Then
       Wait  5 minutes 
       Set Scene 'Master Bedroom / Slow Master Bath Light' Off

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

Posted

Hi sfhutchi,

 

Something like this should work.

If
       Program 'KMotion On Days' is True

Then
       Disable Program 'KMotion On Days'
       Wait  10 minutes 
       Enable Program 'KMotion On Days'

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

Guest
This topic is now closed to further replies.

×
×
  • Create New...