Jump to content
C4 Forums | Control4

Simple Lighting question


Recommended Posts

I have my lights set as follows -

6.15am turn on - Sunrise Turn off

Sunset Turn on - 10pm Turn off

My question is when sunrise is before 6.15am will this stop my lights being turn on ?

and if sunset is after 10pm will this stop my lights being turn on ?

Many Thanks in Advance ?

Link to comment
Share on other sites


I have my lights set as follows -

6.15am turn on - Sunrise Turn off

Sunset Turn on - 10pm Turn off

My question is when sunrise is before 6.15am will this stop my lights being turn on ?

and if sunset is after 10pm will this stop my lights being turn on ?

Many Thanks in Advance ?

What are you actually trying to accomplish?

In your first item - it will ALWAYS turn on your light at 6:15 AM. Your sunrise turn off will do the following - if you get up early one day at 4 AM it will turn off your light when it gets to sunrise that is before 6:15 and then at 6:15 it will turn on again and stay on all day - this will continue to happen until sunrise occurs again after 6:15 AM.

I think that you are saying that you get up at 6:15 AM every morning and if it is dark you want light? Is that right?

What MSGREENF stated was that you want to use the day night variable as well -

I would probably write the code like this:

If NIGHT

If Time = 6:15 turn on light

If Day turn off light.

This way if sunrise comes BEFORE 6:15 the light will never turn on in this case, and when daylight comes if the light is on it will turn off.

Link to comment
Share on other sites

Gone into the conditions and was only allow to use

If day or if night.

So I have used on both 6.15 am (turn on light) if night

And on the sunset (turn on light ) if night

My logic is that if the lights have not turn on, I do not have to place a condition on

The turn off.

I'm thinking in the control4 way?

Gary

Link to comment
Share on other sites

Gone into the conditions and was only allow to use

If day or if night.

So I have used on both 6.15 am (turn on light) if night

And on the sunset (turn on light ) if night

My logic is that if the lights have not turn on, I do not have to place a condition on

The turn off.

I'm thinking in the control4 way?

Gary

Make sure that you have them indented appropriately:

If night

if 6:15 AM

TURN ON LIGHT

If DAY

TURN OFF LIGHT

I would ALWAYS turn off the light when it is day time - there is no harm in turning off a light that is not on - but if you are anal retentive about these things - then:

if DAY

If light is on

Turn light off

Bill

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.