Prevent PIR turning Lights off

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Warby, Jul 24, 2009.

  1. Warby

    Warby

    Joined:
    Apr 15, 2009
    Messages:
    3
    Likes Received:
    0
    I have inherited a job where there is some 240v PIR's wired to a aux input unit. the inputs are set to bell press and when the GA goes on it triggers a Scene in the PAC to turn on 4 outside lights. it then turns it off when the GA turns off.
    They also have individual control of each of the 4 GA's on some DLT's. problem is when they turn the lights on maunually the PIR turns them off after movement.
    i have tried the following in PICED but it doesn't work if the lights are turned on during the Bell press. There is a GA in the Scene that is used to track wheter it has been turned on.

    once (GetLightingState("pir rear") = ON) and
    (GetLightingState("#hexled6") = OFF) and
    (GetLightingState("#outside right side entry") = OFF) and
    (GetLightingState("#outsidepillarrearclr") = OFF) and
    (GetLightingState("#outsidewalkwayleft") = OFF) then
    begin
    SetScene("PIR Rear On");
    end;
    once (GetLightingState("pir rear") = OFF) and
    (GetLightingLevel("REARPIRTrack") = 100%) then
    begin
    SetScene("PIR Rear Off");
    end;

    Can anybody suggest another way to do this? Thanks
     
    Warby, Jul 24, 2009
    #1
    1. Advertisements

  2. Warby

    Shepard

    Joined:
    Jan 19, 2005
    Messages:
    23
    Likes Received:
    0
    Location:
    Sydney
    I do this......

    {Auto light on, if not on by switch}
    once GetLightingState("C4K Pantry")then
    if (GetLightingLevel("Pantry Downlights") < 99%) then
    begin
    SetLightingLevel("Pantry Downlights", 98%, "0s");
    end;

    {auto light off, if not on by switch to 100%}
    if (ConditionStaysTrue(GetLightingState("C4K Pantry") = OFF, "0:00:10"))
    and (GetLightingLevel("Pantry Downlights") < 99%) then

    begin
    SetLightingLevel("Pantry Downlights", 0%, "15s");
    end;

    {auto light off after 10 mins, if on by switch to 100%}
    if ConditionStaysTrue(GetLightingState("C4K Pantry") = OFF, "0:10:00") then

    begin
    SetLightingLevel("Pantry Downlights", 0%, "30s");
    end;



    The "C4K" is from my alarm PIR and turns light on to 98%, if no movement for 10 seconds light goes off. This is "over-ridden" when the light switch is used to turn it on to 100%, it then has a 10 min no movement time (or you may wish to have no off time).

    Hope this is of some help.:)
    Mark
     
    Shepard, Jul 24, 2009
    #2
    1. Advertisements

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.