Saturn switching & Pir after hours

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by inpowers, Jun 15, 2008.

  1. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi all
    Have been searching for hours and I am unable to find what I am looking for.
    I would like to be able to use logic so that the Pir's in the hall ways & toilets only work after say 10.30pm to sunrise at 30%.

    I also would like to have the Saturn switch's turn on the same lights at 100% prior to those times but if necessary be able to turn them on in between those times at 100%

    I do have a colour touch screen for the logic. If possible could I get a Logic code as an example witch would make thing a bit easier to understand.:confused:

    Any help would be much appreciated :)

    Regards
    Rob
     
    inpowers, Jun 15, 2008
    #1
  2. inpowers

    amberelectrics

    Joined:
    Aug 29, 2007
    Messages:
    114
    Likes Received:
    0
    Unless im missing something, why not just use the sunset to sunrise option on the unit instead of the day/night move?

    I think the unit uses light level detaction for this option so may not be perfect but its a damn site simpler than using logic.

    Other than that your going to have to apply a logic function to check for the time calculated by the ctouch and have that switch the lighting groups on/off
     
    amberelectrics, Jun 16, 2008
    #2
  3. inpowers

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    Many hallways can be quite dark, so it may not work too well (if at all).

    This has been discussed here before I think and I would have said that a simple bit of code was posted, but I could be very wrong as well.

    Mick
     
    znelbok, Jun 16, 2008
    #3
  4. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi guys
    Thanks for the reply
    I have rang CIS tech support about this problem. She had no idea how to do it. I must of explained it to her about four time.
    Like stated above I have looked & looked over this forum for a answer.
    I do think it is a simple thing to do but I just can not get my head around it.

    Thanks any way:(

    Rob
     
    inpowers, Jun 16, 2008
    #4
  5. inpowers

    Mr Mark

    Joined:
    Jan 27, 2006
    Messages:
    322
    Likes Received:
    5
    Location:
    FNQ
    Mr Mark, Jun 16, 2008
    #5
  6. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi Mr Mark
    Thanks for the reply
    I have just had a look at your After hours lighting levels code.
    I do understand the states have to be modified.
    Just to clarify thing if you don't mind I would just like to go through it if possible.

    "NET 253" will change to the WIRED ADDRESS.
    "Lighting" stays as lighting as the application.
    Now "Day" would be a a schedules set between Sunrise to 9.00pm right?
    "HALLREF" not to sure about this one. Or could this be the PIR?
    "HALLWAY" that would be the group address of the light right?

    Know this will do what I have asked above?
    The lighting switch will work 24/7 to 100% & also Dim the light.
    The PIR will only work to 30% between hours say 9.00pm to Sunrise.

    Sorry to sound so oblivious just want to make sure.

    Thanks again

    Regards
    Rob
     
    inpowers, Jun 17, 2008
    #6
  7. inpowers

    Mr Mark

    Joined:
    Jan 27, 2006
    Messages:
    322
    Likes Received:
    5
    Location:
    FNQ
    Simpler approach

    Hi Rob.

    After re-reading your post, you may be better of using output logic on the logic tab of the dimmer.
    Use schedules in the touch screen to enable the sensor. In the sensor, set the Group to something like "WC Sensor", and change the key function from "ON Key" to "Recall 1". On the Blocks tab, set the value for Recall 1 to 30%.

    On the dimmer, have the output group "WC Light" in the output channel. Essentially, "WC Light" will turn on the channel to 100% and "WC Sensor" (when enabled) will turn the channel onto 30%.

    NOTE: Haven't tested this one, but it should work.

    Mark
     
    Mr Mark, Jun 17, 2008
    #7
  8. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Hi Mark
    Might sound like a stupid question, but how do you enable the sensor in the touch screen schedule?
    Do you use its group address.
    Sorry not sure about this.

    Regards
    Rob
     
    inpowers, Jun 18, 2008
    #8
  9. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    I have tried Mr Marks suggestion but with no joy.
    I also forgot to mention that i would like to be able to dim the light regardless of the time.

    Regards
    Rob
     
    Last edited by a moderator: Jun 25, 2008
    inpowers, Jun 24, 2008
    #9
  10. inpowers

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    I use output logic and code to do something similar.

    Lights work at 25% automatically "after hours"
    Lights work at 100% automatically "during hours"
    PIR only senses when there is not much light (use the sensitivity adjustment on the pir)
    Hallway switches (i have 2) override and can dim.

    It shouldnt be too hard for you to adjust this to get what you want.

    See the image below for how my hallway is setup.

    [​IMG]
    [​IMG]

    Code:
    once (GetLightingLevel("Dimmer 1_04 - Passage") > 1) then
    begin
      if (GetLightingLevel("Logic 002 - Passage Switch") < 1) then
      begin
        if ((TIME > SUNSET + "1:00:00") or (TIME < SUNRISE + "3:00:00"))then
        {if (GetLightingState("Status - Sunset") = ON) then}
        begin
          SetLightingLevel("Dimmer 1_04 - Logic Max", 25%, "0s");
        end
        else
        begin
          SetLightingLevel("Dimmer 1_04 - Logic Max", 100%, "0s");
        end
      end
    end;
    
    
    {KEY Inputs}
    once (GetLightingLevel("Logic 002 - Passage Switch") > 1) then
    begin
      SetLightingLevel("Dimmer 1_04 - Logic Max", 100%, "0s");
    end;
    once (GetLightingLevel("Logic 002 - Passage Switch") < 1) then
    begin
      SetLightingLevel("Dimmer 1_04 - Passage", 0%, "0s");
    end;
    
    if (GetLightingLevel("Logic 002 - Passage Switch") > 1) then
    begin
      TrackGroup("My House", "Lighting", "Logic 002 - Passage Switch", "Dimmer 1_04 - Passage");
    end;
    
    {KEY Input status indication}
    once (GetLightingLevel("Dimmer 1_04 - Passage") > 1) then
    begin
      SetLightingState("Status - Hallway Lighting", ON);
    end;
    once (GetLightingLevel("Dimmer 1_04 - Passage") < 1) then
    begin
      SetLightingState("Status - Hallway Lighting", OFF);
    end;
    
     
    filpee, Jun 24, 2008
    #10
  11. inpowers

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    Here's some more ideas for your PIR.


    once (GetLightingState("PIR26.01 BATH") = ON) and
    (GetTriggerLevel("TIME") = 1 {"SUNSET - 9PM"} ) then
    begin
    SetLightingLevel("A26.01 LOGIC", 50%, "0s");
    TimerStart(PIR2601Timer);
    end;

    once TimerTime(PIR2601Timer) = "0:02:00" then
    begin
    SetLightingLevel("A26.01 LOGIC", 0%, "4s");
    TimerStop(PIR2601Timer);
    end;



    once (GetLightingState("PIR26.01 BATH") = ON) and
    (GetTriggerLevel("TIME") = 1% {"9PM - 12AM"} ) then
    begin
    SetLightingLevel("A26.01 LOGIC", 30%, "0s");
    TimerStart(PIR2601Timer);
    end;

    once TimerTime(PIR2601Timer) = "0:02:00" then
    begin
    SetLightingLevel("A26.01 LOGIC", 0%, "4s");
    TimerStop(PIR2601Timer);
    end;



    once (GetLightingState("PIR26.01 BATH") = ON) and
    (GetTriggerLevel("TIME") = 3 {"12AM - SUNRISE"} ) then
    begin
    SetLightingLevel("A26.01 LOGIC", 20%, "0s");
    TimerStart(PIR2601Timer);
    end;

    once TimerTime(PIR2601Timer) = "0:02:00" then
    begin
    SetLightingLevel("A26.01 LOGIC", 0%, "4s");
    TimerStop(PIR2601Timer);
    end;
     
    PSC, Jun 24, 2008
    #11
  12. inpowers

    inpowers

    Joined:
    Jul 1, 2007
    Messages:
    44
    Likes Received:
    0
    Location:
    Sydney
    Thanks Guys for the posts.
    I will try this weekend if I get some time and let you know how I go.
    If you don't here from me it only because I will be working interstate for the next week.
    Will post my success or failure.:D :D

    Regards
    Rob
     
    inpowers, Jun 26, 2008
    #12
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.