PDA

View Full Version : Saturn switching & Pir after hours


inpowers
15 Jun 08, 05:36 PM
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

amberelectrics
16 Jun 08, 05:38 PM
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

znelbok
16 Jun 08, 06:30 PM
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

inpowers
16 Jun 08, 08:09 PM
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

Mr Mark
16 Jun 08, 08:45 PM
Hello Rob.

Try this and see if it helps you out:

http://www.cbusforums.com/forums/showthread.php?t=2502&highlight=HALLWAY

Regards,

Mark

inpowers
17 Jun 08, 08:34 PM
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

Mr Mark
17 Jun 08, 11:04 PM
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

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

inpowers
18 Jun 08, 09:52 PM
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
24 Jun 08, 07:52 PM
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:

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

filpee
24 Jun 08, 10:13 PM
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.

http://i61.photobucket.com/albums/h48/filpee/HallwayLogic.jpg
http://i61.photobucket.com/albums/h48/filpee/HallwayLogickeyswitch.jpg


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;

PSC
24 Jun 08, 10:54 PM
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;

inpowers
26 Jun 08, 09:00 PM
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