Jump to content

Door Sensor Program Problem


smokegrub

Recommended Posts

Posted (edited)

Objective: When KPL G is pressed, wait 5 minutes to give me time to exit the door, then send an email notification any time thereafter that the door is opened or until KPL G is turned off.

 

If

Kitchen KPL G is 100%

Then

Wait 5 minutes

Run Deck Door Open (Disabled)

Else

No Action

 

Run Deck Door Open Program (Disabled):

If Door Sensor is On

Then

Send Notification

Else

No Action

 

The program runs only for one cycle and all further door openings do not result in a notification.

 

By the way, I still haven't been able to figure out how to post programs here.

Edited by smokegrub
Posted

Smokegrub,

I like your questions, I am learning a lot.  To post your program in the admin console right click on the program and copy to clipboard.  When you are typing your post click the code icon, looks like this "<>" and paste into the box.

I think your problem is that the deck door program is disabled, so it only runs the one time it is called by the first program.  I think you need to have the first program "then enable program 2" and when G is off disable program 2.  Maybe in the else for the first program "disable program 2".  We'll wait for one of the experts to give us the answer. 

Eric

Posted (edited)

Right click on Program name, select bottom entry "Copy to Clipboard".   Paste into post.

 

Need to see actual Program.  The If statement in first Program does not indicate whether Status or Control is being used.   The first Program is triggered once when KPL button G is pressed On.    Nothing else triggers Program so program activity happens only once.

 

Something like

 

If

Status Kitchen KPL G is 100%

And Status Door Sensor is On

Then

Wait 5 minutes

 

EDIT: actually above does not work because there will be a 5 minute delay the second time door is opened. 

Edited by LeeG
Posted

This is how I would do this:

If
   Kitchen KPL G is 100%

Then
   Wait 5 minutes
   Enable Program Back Deck Door Open

Else
   Disable Program Back Desk Door Open

Program: Deck Door Open

If 
   Control Door Sensor is Switched On

Then
   Send Notification

Else
   No Action

Hope this helps.

 

-Xathros

Posted (edited)

Teken:

 

Your program is spot on! You also taught me something using the enabled/disabled feature.

 

Many thanks.

Edited by smokegrub
Posted (edited)

This what I get when "Copy to Clipboard" followed by a Paste

 

If
        Status  'ApplianceLinc' is Responding
 
Then
        Send X10 'G1/Off (11)'
 
Else
   - No Actions - (To add one, press 'Action')
Edited by LeeG
Guest
This topic is now closed to further replies.

×
×
  • Create New...