Jump to content

Having Trouble with an Open/Close Sensor Program


grtaylor

Recommended Posts

Posted

I would appreciate some help here, this one is getting to me.

 

Scenario is, we have some lighting inside the pantry as there are glass panels, and I want the light to be on when the door is open, or on when a particular scene is on too. When I switch the scene by opening the door, the lights come on, all good, when I then close the door the lights go off. The niggle is, I want them to stay on if the scene is still on.

 

I tried to do this with a program that says, if the light is switched off, or the sensor is switched off (I've tried both), but the scene is still on, turn the light back on.

 

What I see is the light goes off when the door is closed but button B on the keypads is on (meaning the scene is on), then 2 secs later (I put the delay in to try and ensure I didn't have traffic collisions, and have tried varying the delay with little success) the lights come back on, then go back off, then sometimes go on/off quickly, then typically stay off.

 

the program is this;

 

If

Control 'Kitchen / Pantry Door Sensor' is switched Off

And (

Status 'Kitchen / Kit Mud 8 Way - B' is not Off

Or Status 'Kitchen / Kit Dining 8 Way - B' is not Off

Or Status 'Kitchen / Kit Hall 8 Way - B' is not Off

)

 

Then

Wait 2 seconds

Set 'Kitchen / Pantry Spots' 37%

 

Else

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

 

The traffic I see looks like this; (Sensor is 2B.03.CB, light (pantry spots in above program) is connected to 2A.28.15)

 

Sat 06/14/2014 08:09:37 PM : [iNST-TX-I1 ] 02 62 00 00 64 CF 11 00

Sat 06/14/2014 08:09:37 PM : [iNST-ACK ] 02 62 00.00.64 CF 11 00 06 LTONRR (00)

Sat 06/14/2014 08:09:49 PM : [iNST-SRX ] 02 50 2B.03.CB 00.00.01 CB 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:49 PM : [std-Group ] 2B.03.CB-->Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:49 PM : [D2D EVENT ] Event [2B 3 CB 1] [DOF] [1] uom=0 prec=-1

Sat 06/14/2014 08:09:49 PM : [ 2B 3 CB 1] DOF 1

Sat 06/14/2014 08:09:49 PM : [D2D-CMP 00B0] CTL [2B 3 CB 1] DOF op=1 Event(val=1 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true

Sat 06/14/2014 08:09:49 PM : [D2D-CMP 00AF] CTL [2B 3 CB 1] DOF op=1 Event(val=1 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true

Sat 06/14/2014 08:09:49 PM : [D2D EVENT ] Event [2B 3 CB 1] [sT] [0] uom=0 prec=-1

Sat 06/14/2014 08:09:49 PM : [ 2B 3 CB 1] ST 0

Sat 06/14/2014 08:09:49 PM : [D2D EVENT ] Event [2A 28 15 1] [sT] [0] uom=0 prec=-1

Sat 06/14/2014 08:09:49 PM : [ 2A 28 15 1] ST 0

Sat 06/14/2014 08:09:50 PM : [iNST-SRX ] 02 50 2B.03.CB 00.00.01 CB 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:50 PM : [std-Group ] 2B.03.CB-->Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:50 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:50 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 41 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:50 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=1, Hops Left=0

Sat 06/14/2014 08:09:50 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:50 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 46 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:50 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=2, Hops Left=1

Sat 06/14/2014 08:09:50 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:51 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 4B 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:51 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:51 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:51 PM : [iNST-TX-I1 ] 02 62 2A 28 15 0F 11 5E

Sat 06/14/2014 08:09:52 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 4B 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:52 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:52 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:52 PM : [iNST-ACK ] 02 62 2A.28.15 0F 11 5E 06 LTONRR (5E)

Sat 06/14/2014 08:09:52 PM : [iNST-SRX ] 02 50 2A.28.15 22.FE.F6 2B 11 5E LTONRR (5E)

Sat 06/14/2014 08:09:52 PM : [std-Direct Ack] 2A.28.15-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:52 PM : [D2D EVENT ] Event [2A 28 15 1] [sT] [94] uom=0 prec=-1

Sat 06/14/2014 08:09:52 PM : [ 2A 28 15 1] ST 94

Sat 06/14/2014 08:09:53 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 4B 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:53 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:53 PM : [D2D EVENT ] Event [2B 3 CB 1] [DOF] [0] uom=0 prec=-1

Sat 06/14/2014 08:09:53 PM : [ 2B 3 CB 1] DOF 0

Sat 06/14/2014 08:09:53 PM : [D2D-CMP 00B0] CTL [2B 3 CB 1] DOF op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true

Sat 06/14/2014 08:09:53 PM : [D2D-CMP 00AF] CTL [2B 3 CB 1] DOF op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true

Sat 06/14/2014 08:09:53 PM : [D2D EVENT ] Event [2A 28 15 1] [sT] [0] uom=0 prec=-1

Sat 06/14/2014 08:09:53 PM : [ 2A 28 15 1] ST 0

Sat 06/14/2014 08:09:54 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 4B 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:54 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:54 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:54 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 47 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:54 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=1

Sat 06/14/2014 08:09:54 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:55 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 4B 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:55 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:55 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:55 PM : [iNST-TX-I1 ] 02 62 2A 28 15 0F 11 5E

Sat 06/14/2014 08:09:55 PM : [iNST-ACK ] 02 62 2A.28.15 0F 11 5E 06 LTONRR (5E)

Sat 06/14/2014 08:09:56 PM : [iNST-SRX ] 02 50 2B.03.CB 22.FE.F6 47 13 01 LTOFFRR(01)

Sat 06/14/2014 08:09:56 PM : [std-Cleanup ] 2B.03.CB-->ISY/PLM Group=1, Max Hops=3, Hops Left=1

Sat 06/14/2014 08:09:56 PM : [iNST-DUP ] Previous message ignored.

Sat 06/14/2014 08:09:58 PM : [iNST-SRX ] 02 50 2B.03.CB 13.02.01 CB 06 01 (01)

Sat 06/14/2014 08:09:58 PM : [std-Group ] 2B.03.CB-->13.02.01, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:58 PM : [iNST-INFO ] Previous message ignored.

Sat 06/14/2014 08:09:59 PM : [iNST-SRX ] 02 50 2B.03.CB 13.02.01 CB 06 01 (01)

Sat 06/14/2014 08:09:59 PM : [std-Group ] 2B.03.CB-->13.02.01, Max Hops=3, Hops Left=2

Sat 06/14/2014 08:09:59 PM : [iNST-INFO ] Previous message ignored.

Posted

I'm sure you will get better help than this, but here are my thoughts. I think the problem is the scene controlled by the door sensor and the program are in conflict. I would consider increasing the wait time to 5 seconds to see if that works.

I have one of my door sensors set as two node(I think) so when the door is opened the lights turn on by scene control. The lights do not turn off when the door closes. You might then be able to use a program to turn the lights off depending upon the scene status.

Posted

I would problably take a different approach logically. I would not like the two-second delay when the pantry light turns off, then on.

 

First, I would take the sensor out of any scene relationship. Second, i assume that the pantry lights are responder to the "particular" scene and will turn on and off with that scene. Then, i would create a couple of programs

 

If

Control sensor is switched on

And

Status pantry spots is off

Then

Set pantry spots to 37%

Else

Nothing

 

If

Control sensor is switched off

And

(

Status kitchen mud is not on

Or status kitchen hall is not on

Or status kitchen dining is not on

)

Then

Set pantry spots off

Else

Nothing

 

Regarding your program, i am surprised that a wait would be required. What happens when you take it out completely?

 

On first inspection, I dont see much wrong with your program, but am unclear about the scene relationships you have and wonder about the same issue raised by erick. Is the door sensor controller of a scene that includes the mud, dining, or hall lights?

Posted

I solved my problem, by taking a slightly different route, and so posting back to close the loop.

 

I want to have a scene with the sensor in it to switch the light on, else there will be a delay for the program execution.

 

So the trick was to configure the sensor in two-node mode. Open and Closed. Then use the Open node only as the controller for the Pantry Lights scene. So whenever the door is opened, lights go on at 100%. No delay, and works even if ISY isn't there for some reason.

 

Then I wrote a few programs like this to handle the door closing;

 

If

Control 'Kitchen / Pantry Door Sensor - Door Clo' is switched On

And (

Status 'Kitchen / Kit Mud Rm 8 Way - B' is not Off

Or Status 'Kitchen / Kit Dining 8 Way - B' is not Off

Or Status 'Kitchen / Kit Hall 8 Way - B' is not Off

)

 

Then

Set 'Kitchen / Pantry Spots' 37%

 

Else

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

 

I have three scenes/buttons/programs that check in this way. Then one program to turn the light off, if none of the scenes are On.

 

If

Control 'Kitchen / Pantry Door Sensor - Door Clo' is switched On

And (

Status 'Kitchen / Kit Mud Rm 8 Way - B' is Off

And Status 'Kitchen / Kit Mud Rm 8 Way - C' is Off

And Status 'Kitchen / Kit Mud Rm 8 Way - D' is Off

And Status 'Kitchen / Kit Hall 8 Way - B' is Off

And Status 'Kitchen / Kit Hall 8 Way - C' is Off

And Status 'Kitchen / Kit Hall 8 Way - D' is Off

And Status 'Kitchen / Kit Dining 8 Way - B' is Off

And Status 'Kitchen / Kit Dining 8 Way - C' is Off

And Status 'Kitchen / Kit Dining 8 Way - D' is Off

)

 

Then

Set 'Kitchen / Pantry Spots' Off

 

Else

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

 

 

thanks for the ideas and comments, it helped me think about it differently and I got there in the end.

Guest
This topic is now closed to further replies.

  • 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.5k
×
×
  • Create New...