Bath light & fan stay off together

Discussion in 'C-Bus Wired Hardware' started by inpowers, Oct 14, 2015.

  1. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi Guys

    Can anyone help with this question.
    I have tried with logic and also the switch blocks & key section with no luck.

    I have two switch's with a light & fan on each.
    The fan has a timer on it.
    I have set it up so when the light turns on the fan comes on with it.
    When the light turns off the fan times down.

    Problem is when the kids go to the bath room they turn the light on which bring the fan on.
    They switch the fan off and keep the light on.
    When they leave the bath room they turn the light off but the fan comes back on and stays on unit the switch has be turned off.

    This is what I would like to happen

    {If the bath room fan is off and the light is on once the light is turned off the fan remains off}

    Thanks in advance
     
    inpowers, Oct 14, 2015
    #1
  2. inpowers

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    You could just get rid of the switch to turn the fan off.

    When you say you have tried logic, is this in an output unit or by using a logic engine?

    If you post what you have tried, I'm sure we can fix it for you.
     
    Ashley, Oct 14, 2015
    #2
  3. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi Ashley

    I am trying to do this in the logic engine but what ever I try doesn't seam to do what I want it to do.
    The fan switch needs to stay as if we use the bath room during the day we just use the fan with the timer no light.
    This is where the problem comes in.
    When the kids use the bath room during the day they turn the light on which brings the fan on.
    Then they turn the fan off.
    When they leave the bath room they turn the light off and the fan come back on again and stays on.

    I have just tried this and it seams to work with a timer to turn fan off.

    once ((GetLightingState("Bath Rm Lt") = OFF) and
    (GetLightingState("Bath Rm Fan") = ON)) then
    begin
    Delay("0:00:10");
    SetLightingState("Bath Rm Fan", OFF);
    end;

    Will this cause to much traffic?

    Thanks
    inpowers
     
    Last edited by a moderator: Oct 19, 2015
    inpowers, Oct 19, 2015
    #3
  4. inpowers

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    No, that won't cause any traffic because the SetLightingState command will only occur when the fan is on and then it turns it off, so next scan the condition will go back to false.

    Interestingly in this case you could use an IF statement instead of a ONCE and get the same result because you are turning a group OFF only if it is ON.

    Just out of curiosity, are you using logic to do the fan timer or a switch function. If you are using a switch function you could use a retrigger option rather than a start timer function. Retrigger will start a time only if the group is currently ON, which is what you really want.
     
    Ashley, Oct 19, 2015
    #4
  5. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi Ashley

    Yes I am using a switch function with a retrigger.
    I did try that last logic that I posted and it did work but now I have lost the logic function of when the light is off and the fan is timing down I turn the light back on again and the fan goes back to the on state.

    Now the fan just times down even after I have turned the light back on.
    Logic is a pain in the ass.

    Oh well back to the drawing board

    inpowers
     
    inpowers, Oct 22, 2015
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.