Jump to content

Program Not Working as Expected


SteveSBE

Recommended Posts

Posted

When I execute the program below, the program runs and the program summary start/stop times are identical. The scene is turned on however it never waits 2 minutes and is never turned off. The scene contains only a Bath Master switch (2476D SwitchLinc Dimmer W/Beeper v.38). This occurs with other identical scenes that have different on level percents. I discovered that when I remove the "Status 'Bath Master' is Off" statement from the If statement, the stop time is 2 minutes after the start time. Why does this program work this way? I don't want this scene to operate if the switch was turned on manually and was checking for that in the IF statement. Thanks, Steve

 

If
       Status  'Bath Master' is Off
   And Control '4 Bath-Sensor' is switched On
Then
       Set Scene 'sf Bath Master / sc Bath Master 40%' On
       Wait  2 minutes 
       Set Scene 'sf Bath Master / sc Bath Master 40%' Off
Else
  - No Actions - (To add one, press 'Action')

Posted

Is Bath Master part of the sf Bath Master scene? If so then the If is re-evaluating when the scene is turned on. Any change to Bath Master (since you are using the Status of that device) will cause the program to re-evaluate during the wait and run the program False.

Posted

TJF1960 - Yes the switch is part of all the scenes. Is there a better technique to check the status of the switch while having multiple scenes for the same switch? Basically I want to not have the scenes controlled by a motion sensor override manually controlled scenes. For example, if the switch is turned on manually, I don't want to walk into the bathroom and have a program initiated by a motion sensor override the switch's control. I couldn't readily find an example in the forum. Thanks for your help. Steve

Posted

There are a couple of examples on the wiki. There have been many threads on this, but sometimes they are hard to sort through.

 

Try:

 

http://www.universal-devices.com/mwiki/index.php?title=ISY-99i/ISY-26_INSTEON:Using_Motion_Sensors_in_Bathrooms

 

I don't know that this will do what you want, but try breaking your program into two:

 

If
       Status  'Bath Master' is Off
   And Control '4 Bath-Sensor' is switched On
Then
       run next program (then path)
Else
  - No Actions - (To add one, press 'Action')

 

Next program:

 

if 
then
Set Scene 'sf Bath Master / sc Bath Master 40%' On
       Wait  2 minutes 
       Set Scene 'sf Bath Master / sc Bath Master 40%' Off
else

Guest
This topic is now closed to further replies.

×
×
  • Create New...