Jump to content

Creating a program to turn off KPL secondary button


Moshe

Recommended Posts

Posted

I have created a "movie" scene that controls 2 lights. The "Family Room Main" light dims to 40% and "Family Room Recessed" dims to 30% controlled by a secondary KPL called 06.6E.FB.D KPL Movie which is the controller.

 

I have also created a scene called 'MovieStatus' This scene has KPL 06.6E.FB.D KPL Movie set as a responder.

 

When I push the KPL button it all works perfectly. I am trying to create a program that when the brightness of one of the lights using the switch to either of the lights, the KPL button will turn off.

 

I have created this program

 

If

Status '06.6E.FB.D KPL Movie' is not off

AND 'Family Room Main' is not 40%

OR 'Family Room Recessed' is not 30%

Then

Set scene 'MovieStatus' off

 

With this program, when I press the KPL button to run the movie scene, the KPL button light comes on for a second and turns off. However, if I remove the 'Family Room Main' from the program, it works perfectly.

 

I am using version 2.7.7 alpha. The Family Room Main switch is a 2476D v.35. The Family Room Recessed switch is a 2476DH v.28.

 

Thanks.

Posted

This approach sounds like it might be incloude some unintended consequenses, but that is only a gut feel. I don't know enough about the inner workings of the ISY to help much.

 

As much trouble as I have had getting exact dimming values, I would first check to see if you have not accidentally set 39% or 41% as the programmed dim value and confirm that, in fact, 40% is the posted value when the movie scene is triggered. Assuming all is good....

 

Your program may need a couple of parentheses in it. Based on my understanding of boolean logic and your program, the first two conditions are evaluated as a group, with the third condition evaluated independent of the first two.

 

Your progam may need to look more like...

 

If

Status '06.6E.FB.D KPL Movie' is not off

and (

'Family Room Main' is not 40%

or 'Family Room Recessed' is not 30%

)

Then

Set scene 'MovieStatus' off

 

Also, what are your ramp rates? Is it possible that a slow ramp rate would cause this program to evaluate mulitple times over a short time period?

Posted

Oberkc -

 

Thanks for the reponse. I added the parentheses, but still have the same problem. If I remove the statement "Family room Main" it seems to work fine.

 

The ramp rate is set to 0.

 

Any other ideas?

 

Thanks

Posted

I still remain uncertain about the differences between control and status. I recall some discussion about how one sends an on the off status. Since it is so easy to experiment, I would change the input condition from status to control and see what happens.

 

As a troubleshooting attempt, I would also open the event viewer and watch the signal traffic as things happen. This may give a clue as to why your KPL goes off after a short time.

 

Sorry I could not be more help. I will think more about it.

Posted

Hi Moshe/oberkc,

 

Status is the state of the device. So, if the device was off before and you turn it off again, the status does NOT change and therefore programs using it as condition will not be re-evaluated.

 

Control is "what happened" ... so, regardless of the status of your device, if you press the Off button 10 times, you are going to get 10 Off events. Programs with Control in their conditions will be re-evaluated every time there's one of these events.

 

With kind regards,

Michel

Posted

Despite the definition of control versus status, I continue to be amazed at how many times suggestions on this forum are opposite of what I would have assumed.

 

Back to your problem, I started to think your program is turning off your keypad before the scene is fully engaged. Do you suppose this is possible? I don't understand how long it takes a scene to react versus a program, but I suspect your program itself is acting quicker than the scene.

 

What would one simply looked at this more simply?

 

If

'Family Room Main' is 40%

AND 'Family Room Recessed' is 30%

Then

Set scene 'MovieStatus' on

Else

Set scene "MovieStatus" off

 

Would this achieve the results you are looking for?

Posted

oberkc

 

I tried your more simple program and it works. However, I vaguely remember something like this before and someone told me that now the program will continuously run therefore creating traffic on the network. Is this the case?

 

I tested my program with a my living room switch and it worked fine. Again, when I add the family room main, it fails. Is it possible that the actual switch is bad?

 

Thanks.

Posted

Good news on your new program. The one consequence to be aware of is that if you ever happen to use the individual controls to set the dim levels to exactly 40 and 30 percent, then the KPL will come on. Perhaps that is good?

 

It is my understanding that all programs run all the time (unless disabled). I don't see why this one would be any worse than any other. It is looking for changes to the input conditions. When it sees them, it reacts per the if/then actions. I would expect no unique problems with added powerline communication traffic.

 

I am not sure what program uses your "living room" switch. Is this a different program? When you refer to "adding" the familly room main, do you mean adding to a program, or to a scene?

Posted

oberkc -

 

Thanks for you help.

 

In regards to the "living room" switch: I added this switch to my Movie scene for testing purposes. When I did this the original movie program worked perfectly. The only time it does not work is when I add the "family room main". Both the famliy room and living room have the same version. I can't figure out why my program would not work with the "Family Room Main" switch added to the program.

 

I wonder if there is a hardware problem with the family room switch.

 

However, the simplier program works perfectly with the "Family room Main".

 

Thanks

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.


×
×
  • Create New...