pbelectrical
12 Jul 07, 10:37 PM
Just finished a project and all went well until - I set up a logic module in the PAC to do the following - When any of the three outdoor PIR were triggered and the security panel was armed I wanted the loads controlled by those PIR to come on then wait for 5 seconds and turn the main bed lights on then wait a further 5 seconds and turn some kitchen lights on and laundry lights on, then after 6 minutes turn the kitchen and laundry lights off and after 10 minutes turn the bedroom lights off. The idea being that to somone outside triggering the PIR it would look like someone inside had got up out of bed to have a look around. Hardware units involved are - PAC, outdoor PIR * 3, and 16 zone homesafe panel. The problem is that it runs even when the panel is disarmed, hence it woke my customers up 6 times during the night, hence I look like a clown and they are not happy. Following is the code I created using the module wizard.
{If any of the external PIR are tripped and the alarm panel is
armed. Wait 5 seconds and turn on main bed lights for 10
minutes, Wait 10 seconds and turn on kitchen bench lights
and laundry lights for 6 minutes.}
once (GetLightingState("alley flood") = ON) or
(GetLightingState("back door sensor") = ON) or
(GetLightingState("front sensor") = ON) and
(GetLightingState("panel armed") = ON) then
begin
Delay("0:00:05");
PulseCBusLevel("79nelson", "Lighting", "main bed lts", 100%, 0, "0:10:00", 0%);
Delay("0:00:05");
PulseCBusLevel("79nelson", "Lighting", "kitchen bench lts", 100%, 0, "0:06:00", 0%);
PulseCBusLevel("79nelson", "Lighting", "laundry lts", 100%, 0, "0:06:00", 0%);
end;
Sorry about the post length but if you have managed to get through it any help would be much appreciated.
Regards,
Peter Brown.
{If any of the external PIR are tripped and the alarm panel is
armed. Wait 5 seconds and turn on main bed lights for 10
minutes, Wait 10 seconds and turn on kitchen bench lights
and laundry lights for 6 minutes.}
once (GetLightingState("alley flood") = ON) or
(GetLightingState("back door sensor") = ON) or
(GetLightingState("front sensor") = ON) and
(GetLightingState("panel armed") = ON) then
begin
Delay("0:00:05");
PulseCBusLevel("79nelson", "Lighting", "main bed lts", 100%, 0, "0:10:00", 0%);
Delay("0:00:05");
PulseCBusLevel("79nelson", "Lighting", "kitchen bench lts", 100%, 0, "0:06:00", 0%);
PulseCBusLevel("79nelson", "Lighting", "laundry lts", 100%, 0, "0:06:00", 0%);
end;
Sorry about the post length but if you have managed to get through it any help would be much appreciated.
Regards,
Peter Brown.