Jump to content

Doorbell Program Problems "Continuous Loop"


wjoel

Recommended Posts

Posted

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'

Posted

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'

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...