Jump to content

bathroom program timer


doubleshot

Recommended Posts

Posted

guys, for some reason this isn't working properly and i can't figure out why. for some reason it just keeps restarting the "bathroomblink" program without continuing. I'm running version v2.7.7

 

(note, i have the 15 seconds in there as a test, it's really going to be 15 minutes)

 

any ideas what i'm doing wrong???

 

Program: Bathroom

If
       Status  '1st.Bath1.Light.Shower' is not Off
   And Status  '1st.Bath1.Light.Overhead' is not Off

Then
       Run Program 'BathroomBlink' (Then Path)

Else
       Run Program 'BathroomBlink' (Else Path)

 

 

 

Program: BathroomBlink

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Repeat 4 times
          Wait  15 seconds
          Set '1st.Bath1.Light.Shower' 1%
          Set '1st.Bath1.Fan' Off
          Wait  2 seconds
          Set '1st.Bath1.Light.Shower' Fast On
          Set '1st.Bath1.Fan' On
       Repeat 0 times
          Set '1st.Bath1.Light.Overhead' 50%
          Set '1st.Bath1.Light.Shower' 50%
          Wait  2 minutes 
          Set '1st.Bath1.Light.Shower' Off
          Set '1st.Bath1.Light.Overhead' Off
          Set '1st.Bath1.Fan' Off

Else
       Stop program 'BathroomBlink'

 

 

 

i've also tried this variation of the program:

 

Program: Bathroom

If
       Status  '1st.Bath1.Light.Shower' is not Off
   And Status  '1st.Bath1.Light.Overhead' is not Off

Then
       Run Program 'BathroomBlink' (Then Path)

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

 

Program: BathroomBlink

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Repeat 4 times
          Wait  15 seconds
          Set '1st.Bath1.Light.Shower' 1%
          Set '1st.Bath1.Fan' Off
          Wait  2 seconds
          Set '1st.Bath1.Light.Shower' Fast On
          Set '1st.Bath1.Fan' On
       Repeat 0 times
          Set '1st.Bath1.Light.Overhead' 50%
          Set '1st.Bath1.Light.Shower' 50%
          Wait  2 minutes 
          Set '1st.Bath1.Light.Shower' Off
          Set '1st.Bath1.Light.Overhead' Off
          Set '1st.Bath1.Fan' Off

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

Posted

Hi doubleshot,

 

The major issue is that your condition is being impacted by the action.

 

In this case:

Set '1st.Bath1.Light.Overhead' 50%
Set '1st.Bath1.Light.Shower' 50% 

 

Makes your condition true. And,

Set '1st.Bath1.Light.Shower' Off
Set '1st.Bath1.Light.Overhead' Off 

 

Makes your condition false in which case the whole program stops since the condition has turned false.

 

 

With kind regards,

Michel

Posted

It never gets past the first commands. As soon as it dims the lights to 1% it restarts the program, the lights stay dim for 15 seconds and get bright again. Always repeats it seems as soon as the first dim action. The last part of the program should set the condition to false as it should because I want the lights off at that point.

Posted
It never gets past the first commands. As soon as it dims the lights to 1% it restarts the program,

 

I believe it restarts the program because the action of the second program is causing a change in the status which the first program detects and it restarts. In other words everytime there is a status change the first program re-evaluates and will call the second program to restart.

 

Tim

Posted

that's what i was afraid of, it does look like that's what it's doing. any ideas on how to get this type of program to work?

 

what i want to do is:

 

when the two lights are turned on

wait 15 minutes

turn on and off the 1st.Bath1.Light.Shower and 1st.Bath1.Fan

repeat 4 times

then turn the lights to 50%

wait 2 minutes

then turn the lights off

Posted

what i want to do is:

 

when the two lights are turned on

wait 15 minutes

turn on and off the 1st.Bath1.Light.Shower and 1st.Bath1.Fan

repeat 4 times

then turn the lights to 50%

wait 2 minutes

then turn the lights off

 

Is the 1st.Bath1.Light.Shower controlled by a switchlinc dimmer and the 1st.Bath1.Fan controlled by a switchlinc relay, both directly?

 

Are you only concerned with running the program to turn the light and fan off when the respective switch is locally turned on?

Posted

You might want to try using a program as a variable to indicate that your "BathroomBlink" program is running.That way, when the BathroomBlink program turns your lights on, your Bathroom program won't fire again until BathroomBlink finishes.

 

For instance program Bathroom:

 

If
       Status  '1st.Bath1.Light.Shower' is not Off
   And Status  '1st.Bath1.Light.Overhead' is not Off
   And Program  'Var_BlinkingLights' is False

Then
       Run Program 'BathroomBlink' (Then Path)

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

 

Program BathroomBlink:

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Run Program 'Var_BlinkingLights' (Then Path)
       Repeat 4 times
          Wait  15 seconds
          Set '1st.Bath1.Light.Shower' 1%
          Set '1st.Bath1.Fan' Off
          Wait  2 seconds
          Set '1st.Bath1.Light.Shower' Fast On
          Set '1st.Bath1.Fan' On
       Repeat 0 times
          Set '1st.Bath1.Light.Overhead' 50%
          Set '1st.Bath1.Light.Shower' 50%
          Wait  2 minutes
          Set '1st.Bath1.Light.Shower' Off
          Set '1st.Bath1.Light.Overhead' Off
          Set '1st.Bath1.Fan' Off
       Run Program 'Var_BlinkingLights' (Else Path)

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

Posted

@TJF1960 - you are correct. yes, only when the lights are switched on via the switch. there's no other switches in the house (besides an all off button) that control the bathroom lights.

 

@brad77 - good idea. that might work, i'll try it again when i get home. one additional program to stop that program if you actually turn off the lights manually.

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...