Jump to content

Program Failures


Chuck

Recommended Posts

I've been using the ISY-26 for about 3 months now and it is definately a huge improvement over HouseLinc.

However, it still leaves frustation trying to get my 8-button KPL to work properly all the time. I have an 'All Off' status monitoring program that only works some of the time. I have discussed it previously here: http://forum.universal-devices.com/view ... c&start=15

 

If
       Status  'Basement Playroom Lights (loa' is Off
   And Status  'Dining Room - LIGHT (load)' is Off
   And Status  'Dining Room Ceiling Fan (load' is Off
   And Status  'Kitchen Ceiling Lights (load)' is Off
   And Status  'Kitchen Sink Light (load)' < 40%
   And Status  'Living Room Ceiling (load)' is Off
   And Status  'Living Room Lamp (load)' is Off
   And Status  'Office Ceiling Light (load)' is Off

Then
       Wait  2 seconds
       Set Scene 'ALL OFF LED' On

Else
       Wait  2 seconds
       Set Scene 'ALL OFF LED' Off

 

The problem is even though the UD Admin Console states the correct status of all the devices, the 'All Off' LED doesn't turn on when it's supposed to or turn on when it's supposed to about 25% of the time.

 

I noticed when using the 'All On' or 'All Off' on the main page of the Admin Console, all lights react immediately and successfully. Why is it when this action is attempted with a program, devices turn on and off in succession instead of at the same time and delays are needed to make things work?

Example, here is a program I use for 'Goodnight' program:

 

If
       Control 'Office Ceiling Light (load)' is switched Fast Off
    Or (
            Status  'Office Ceiling Light (load)' is Off
        And Control 'Office Ceiling Light (load)' is switched Off
       )

Then
       Set 'Living Room Lamp (load)' 60%
       Set 'Office - Living Room Lamp' 60%
       Wait  1 second
       Set 'Kitchen Sink Light (load)' 30%
       Wait  1 second
       Set Scene 'All Off Scene (program-activa' Off
       Wait  30 seconds
       Set Scene 'Living Room Lamp' Off

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

 

I have experimented with placing "Set Scene 'All Off Scene (program-activa' Off" first in line vs. last and it appears to work best last. Is this because of the time needed for "clean-up"? I added the 1 second delays to improve reliablity. Is this neccessary?

Link to comment
Share on other sites

The problem is even though the UD Admin Console states the correct status of all the devices, the 'All Off' LED doesn't turn on when it's supposed to or turn on when it's supposed to about 25% of the time.

 

If the console thinks the devices are all correct, does it also think that the LED device is correct? If so, then it sounds like your THEN and ELSE commands are intermittently not making it to your KPL for some reason. I use 2 programs for my status LED, mostly because I want to check the status of the LED before I try to turn it ON or OFF. Here is my code:

 

If
       Status  'MasterBedroomControls1H' is not Off
   And (
            Status  'AndyBedroomCloset1' is Off
        And Status  'AndyBedroomLamp1' is Off
        And Status  'Bathroom2ndMain1' is Off
        And Status  'Bathroom2ndMirror1' is Off
        And Status  'Bathroom2ndVent1' is Off
        And Status  'MikeyBedroomCloset1' is Off
        And Status  'MikeyBedroomLamp1' is Off
        And Status  'SpareBedroomCloset1' is Off
        And Status  'SpareBedroomLamp1' is Off
        And Status  'Stairway1' is Off
        And Status  'AndyBedroomControls1C' is Off
        And Status  'AndyBedroomControls1D' is Off
       )

Then
       Wait  1 second
       Set Scene 'Floor2StatusLight' Off

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

 

If
       Status  'MasterBedroomControls1H' is Off
   And (
            Status  'AndyBedroomCloset1' is not Off
         Or Status  'AndyBedroomLamp1' is not Off
         Or Status  'Bathroom2ndMain1' is not Off
         Or Status  'Bathroom2ndMirror1' is not Off
         Or Status  'Bathroom2ndVent1' is not Off
         Or Status  'MikeyBedroomCloset1' is not Off
         Or Status  'MikeyBedroomLamp1' is not Off
         Or Status  'SpareBedroomCloset1' is not Off
         Or Status  'SpareBedroomLamp1' is not Off
         Or Status  'Stairway1' is not Off
         Or Status  'AndyBedroomControls1C' is not Off
         Or Status  'AndyBedroomControls1D' is not Off
       )

Then
       Wait  1 second
       Set Scene 'Floor2StatusLight' On

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

 

I have to say, I've been extremely impressed at how reliable it has been for me.

Link to comment
Share on other sites

...

 

I noticed when using the 'All On' or 'All Off' on the main page of the Admin Console, all lights react immediately and successfully. Why is it when this action is attempted with a program, devices turn on and off in succession instead of at the same time and delays are needed to make things work?

Example, here is a program I use for 'Goodnight' program:

 

If
       Control 'Office Ceiling Light (load)' is switched Fast Off
    Or (
            Status  'Office Ceiling Light (load)' is Off
        And Control 'Office Ceiling Light (load)' is switched Off
       )

Then
       Set 'Living Room Lamp (load)' 60%
       Set 'Office - Living Room Lamp' 60%
       Wait  1 second
       Set 'Kitchen Sink Light (load)' 30%
       Wait  1 second
       Set Scene 'All Off Scene (program-activa' Off
       Wait  30 seconds
       Set Scene 'Living Room Lamp' Off

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

 

I have experimented with placing "Set Scene 'All Off Scene (program-activa' Off" first in line vs. last and it appears to work best last. Is this because of the time needed for "clean-up"? I added the 1 second delays to improve reliablity. Is this neccessary?

 

The All Off/On buttons in the GUI call a scene, that's why they all react at once. I suggest creating a new scene that includes 'Living Room Lamp (load)', 'Office - Living Room Lamp', and 'Kitchen Sink Light (load)'.

 

Even better would be a scene that includes those three devices as well as all the devices in 'All Off Scene (program-activa'. Set the levels (including off) and rates that you desire and call the scene on.

 

Then follow with the wait 30 seconds...

 

All the devices should react at once then.

 

Rand

Link to comment
Share on other sites

Rand,

I changed the scene to include all possible devices and the program to simply activate it. This is working so far. I will let you know otherwise. Thank you.

 

Mike,

I think the changes to the scene took care of the LED status. I guess I don't see the differene between using the "Then" and "Else" method vs. breaking it into two separate programs. I'm curious if this supposed to work better and why? I will continue to monitor it and let you know...

 

Thanks.

Chuck

Link to comment
Share on other sites

Mike,

I think the changes to the scene took care of the LED status. I guess I don't see the differene between using the "Then" and "Else" method vs. breaking it into two separate programs. I'm curious if this supposed to work better and why? I will continue to monitor it and let you know...

 

Hey Chuck -

 

I break it down into 2 programs because I check my status button before sending a command to change it.

 

With your single program, any time one of your 'If' devices gets turned on the ISY will send a command to turn your status LED on - even if the status LED is already on.

 

With my 2 programs, it checks the status LED first. If it's already on, it doesn't bother sending the command to turn it on again.

 

I try to reduce powerline traffic as much as possible.

Link to comment
Share on other sites

  • 2 weeks later...

If
       Status  'Basement Playroom Lights (loa' is Off
   And Status  'Dining Room - LIGHT (load)' is Off
   And Status  'Dining Room Ceiling Fan (load' is Off
   And Status  'Kitchen Ceiling Lights (load)' is Off
   And Status  'Kitchen Sink Light (load)' is Off
   And Status  'Living Room Ceiling (load)' is Off
   And Status  'Living Room Lamp (load)' is Off
   And Status  'Office Ceiling Light (load)' is Off

Then
       Wait  5 seconds
       Set Scene 'ALL OFF LED' On

Else
       Wait  5 seconds
       Set Scene 'ALL OFF LED' Off

I just activated the 'All Off" scene via another switch. This 'All Off LED Status' program failed to execute. I went into Program Summary and the program status indicated false, when it should be true. All Lighting in the Console verifies all devices are "Off". I then select the program in the Program Summary and select "Run". It executes fine and returns a status of "True".

 

I believe the problem is the network traffic for the 'All Off' scene prevents the program from returning a correct status. Perhaps there needs to be a delay BEFORE the first line of CODE above and not neccessarily more delay at the end (as you see I increased to 5 seconds). Can this be added somehow or changed in the registry?

 

Thanks,

Chuck

Link to comment
Share on other sites

Hi Chuck,

 

Or, it could be that in that 5 seconds one of the lights turn back on and thus nothing executes since the condition is now false.

 

With kind regards,

Michel

 

If
       Status  'Basement Playroom Lights (loa' is Off
   And Status  'Dining Room - LIGHT (load)' is Off
   And Status  'Dining Room Ceiling Fan (load' is Off
   And Status  'Kitchen Ceiling Lights (load)' is Off
   And Status  'Kitchen Sink Light (load)' is Off
   And Status  'Living Room Ceiling (load)' is Off
   And Status  'Living Room Lamp (load)' is Off
   And Status  'Office Ceiling Light (load)' is Off

Then
       Wait  5 seconds
       Set Scene 'ALL OFF LED' On

Else
       Wait  5 seconds
       Set Scene 'ALL OFF LED' Off

I just activated the 'All Off" scene via another switch. This 'All Off LED Status' program failed to execute. I went into Program Summary and the program status indicated false, when it should be true. All Lighting in the Console verifies all devices are "Off". I then select the program in the Program Summary and select "Run". It executes fine and returns a status of "True".

 

I believe the problem is the network traffic for the 'All Off' scene prevents the program from returning a correct status. Perhaps there needs to be a delay BEFORE the first line of CODE above and not neccessarily more delay at the end (as you see I increased to 5 seconds). Can this be added somehow or changed in the registry?

 

Thanks,

Chuck

Link to comment
Share on other sites

All devices remained off. The program runs fine most of the time. If I turn on and then off just one device, the "ALL OFF LED" program runs and the LED turns on fine. It seems to not execute when a large scene, i.e. "All Off Scene" is run. Could the "clean-up" of the 15 or so devices in the "All Off" scene causing the above Code to not register correctly?

Link to comment
Share on other sites

Well I am using the ISY99 and also have the status button on my KPL. I am using the 2 program method also to minimize unnecessary traffic. On occasion I find that the Status Light is Lit even though all lights are off. If I go into program summary, at status's are correct. I I go the the main and query me status light ISY says it is off even though it is on!!! If I query it it still thinks it is off, yet it is on

Link to comment
Share on other sites

I go the the main and query me status light ISY says it is off even though it is on!!! If I query it it still thinks it is off, yet it is on

 

I don't believe it's possible to query a KPL secondary light, unfortunately. So, if the ISY thinks the KPL secondary is OFF, but it is actually ON, it seems that the ISY recognized that you turned all lights off, and sent a command to that KPL to turn the secondary OFF, but it was not received.

 

Do you have any other communication issues to that KPL?

 

In my programs, I put a 1 or 2 second WAIT command before turning the KPL secondary OFF or ON. Are you using a delay?

Link to comment
Share on other sites

Hi Chuck,

 

Under normal conditions, ISY waits while the PLM is reading (clean up messages or other traffic) before writing to the PLM. This said, however, there's no guarantee that the device which your command is directed to is also finished reading. In short, if your status LED is part of a KPL which itself is part of the All Off scene, then 5 seconds might not be enough.

 

With kind regards,

Michel

 

All devices remained off. The program runs fine most of the time. If I turn on and then off just one device, the "ALL OFF LED" program runs and the LED turns on fine. It seems to not execute when a large scene, i.e. "All Off Scene" is run. Could the "clean-up" of the 15 or so devices in the "All Off" scene causing the above Code to not register correctly?
Link to comment
Share on other sites

Archived

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


×
×
  • Create New...