Jump to content

Doorbell Program Problems "Continuous Loop"


wjoel

Recommended Posts

I'm having a problem with a doorbell program that is activated by an X10 Command and does two different events based on if the Foyer Light is On or Off. If the foyer light is off then, it turns on for 5 minutes or if on then blinks. The program is activated and continues to loop through the else statement blinking the light. Am I missing something?

 

 

If
       X10 'B1/On (3)' is Received
   And Status  'Foyer' is Off

Then
       Set Scene 'Foyer_S' On
       Wait  5 minutes 
       Set Scene 'Foyer_S' Off
       Send Notification to All
       Stop program 'Door_Bell_Light_Notify'

Else
       Set Scene 'Foyer_S' Off
       Wait  2 seconds
       Set Scene 'Foyer_S' On
       Send Notification to All
       Stop program 'Door_Bell_Light_Notify'

Link to comment

wjoel,

 

Apologies for a tardy reply.

 

You might need to break this into two programs since it seems that Foyer_S changes the status of Foyer.

 

With kind regards,

Michel

 

I'm having a problem with a doorbell program that is activated by an X10 Command and does two different events based on if the Foyer Light is On or Off. If the foyer light is off then, it turns on for 5 minutes or if on then blinks. The program is activated and continues to loop through the else statement blinking the light. Am I missing something?

 

 

If
       X10 'B1/On (3)' is Received
   And Status  'Foyer' is Off

Then
       Set Scene 'Foyer_S' On
       Wait  5 minutes 
       Set Scene 'Foyer_S' Off
       Send Notification to All
       Stop program 'Door_Bell_Light_Notify'

Else
       Set Scene 'Foyer_S' Off
       Wait  2 seconds
       Set Scene 'Foyer_S' On
       Send Notification to All
       Stop program 'Door_Bell_Light_Notify'

Link to comment

Archived

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


×
×
  • Create New...