Jump to content

Question about control


cwitter

Recommended Posts

Posted

I have a Toggle Linc setup in my garage to turn on two lights on the outside of my house at a certain time.

 

Presently I have a program setup as follows:

 

Program: Garage Light ScheduleIf

From Sunset

To: 11:30pm (same day)

and (

Status of Garage Light is off

)

then

set Garage Light On

 

else nothing

 

 

I then have a seperate program to turn the lights off:

 

Program Turn off - Garage Lights

If time is 11:33 pm

and status of Garage Light is on

 

then

set garage light off

 

My question is, how can I set this up be overrided should someone manually turn on the switch. Let's say for example that we have people coming over and I don't want to have the lights shut off at 11:33pm. I've played with the control variable

 

Program Manual Lights on

 

If

control garage light is switched on

and program - garage light schedule is false

 

then

$LightsManual = 1

else

$LightsMaual = 0

 

It never seems to evaulate properly when I do this however.

 

 

Any direction you can provide would be much appreciated!

 

thanks in advance,

 

Craig

Posted

The manual override should only happen between Sunset and 11PM? That is the effect of using the Program True/False state and that can be impacted by whether the garage light was already on at Sunset.

 

Also the Variable is not used in any of the Programs that actual control the light so it would seem the latest Program is not posted.

 

Start with

 

If

control garage light is switched on

and control garage light is not switched Off

 

then

$LightsManual = 1

else

$LightsMaual = 0

 

Now the Variable reflects true manual switch operation. It should be an Integer Variable. It can now be used to prevent the automatic turn Off at 11:33 PM

 

If time is 11:33 pm

and $LightsManual = 0

 

then

set garage light off

Guest
This topic is now closed to further replies.

×
×
  • Create New...