Jump to content

Program Summary = True and "IF" statement execution


m6bigdog

Recommended Posts

Posted

Occasionally, I see outside lights on after DAWN and I'm somewhat perplexed as to why the "if" statement when met do not execute the "Then" statements that would turn OFF the lights.

 

In the Event Viewer I can see the motion sensor turned the lights ON and timed out but the program that dims the lights to 35% for a wait period is where the lights are left ON.

 

There is a Motion Sensor and an After Dawn program that have failed to run for these lights to remain ON after Dawn at 35%.

1) Dusk = True, control program - turns the lights OFF after a wait period of minutes once the motion sensor turns OFF.

2) Dawn = True, control program - turns any outside lights OFF after a short wait period of 10 seconds.

 

I can see from the sequence in the Event Viewer what causes this situation to happen with the Motion Sensor - Dusk program:

1) motion sensor(1), DON=1, ST=1

2) light, ST=242 (local on 95%)

3) motion sensor(1), DOF=0, ST=0

4) light, ST=89 (Program "IF" motion sensor OFF "Then" set scene = 35%, Program "IF" Dusk=True and light 35% "Then" wait 5 minutes then off)

5) Motion sensor(2), Dusk, DOF=2, ST-0

no more entries for this light...

Therefore, Motion Sensor(2) Dusk ST=0, Dusk program = "False" with light ON at 35%.

 

However, there is a second program to turns "lights OFF after Dawn"-

The program logic is: if after Dawn light is not OFF then wait 10 seconds then turn the lights off:

"IF" statement:

Folder 'Dawn program' is True

and 'Status porch light' is not OFF

 

"Then" actions

Wait 10 seconds

Set scene 'porch light' OFF

Set 'porch light SW' OFF

 

Both of the "IF" statements above have been met and in Status column of the Program Summary window this program is True yet the program "Then" actions do not execute. So I anticipate the light will remain ON, I assume until Dusk.

However, if I manually switch (ISY or local) the light off the "lights OFF after Dawn" program will execute as intended every time I manually switch the light ON during daylight hours!!

 

Any thoughts?

Thanks,

Rod...

Posted
Both of the "IF" statements above have been met and in Status column of the Program Summary window this program is True yet the program "Then" actions do not execute

 

When was the last time the program ran, according to the log? Was it more than a day ago?

 

Do you see any mismatches between light status as shown by the ISY and actual light status?

 

In my experience, programs fire when conditions are met. Sometimes, the ISY can miss certain conditions if there is comm problems present. Somethimes, a program can run but comm problems prevent devices reacting. If this were me, I would be looking for clues to narrow down the cause to one of these possibilities.

 

Without seeing the program in question, I would be unable to even speculate on possible programmatic issues, but feel free to post if you want second opinions on this possibility.

Guest
This topic is now closed to further replies.

×
×
  • Create New...