Jump to content

Program for activating light if motion sensor triggered


bobmre

Recommended Posts

Here is what I would like to do:

 

if its between sunrise and sunset and the kitchen motion sensor is violated and the kitchen light is not on then turn the kitchen counter lights on for 2 minutes.

 

if the kitchen light is turned on and the kitchen counter lights is on then turn the kitchen counter lights off.

 

Does someone have an example of how to do this.

 

Thanks

Bob Moore

Link to comment

Can someone tell me why the Kitchen Counter Lights never turn off?

 

Entry.Keypad.B is the controller for the Kitchen.Counter.Lights

 

Program (Kitchen.Counter.Lights.Motion.On)

 

If

From Sunset

To Sunrise (next day)

And Program 'Kitchen.Counter.Motion.Disable' is False

And Elk Zone 'Kitchen Motion' is Violated

And Status 'Kitchen.Counter.Lights' is Off

 

Then

Set 'Kitchen.Counter.Lights' On

 

Else

- No Actions - (To add one, press 'Action')

 

Program (Kitchen.Counter.Lights.Motion.Disable)

If

(

Control 'Entry.Keypad.B' is switched On

Or Control 'Entry.Keypad.B' is switched Fast On

)

And Control 'Entry.Keypad.B' is not switched Off

And Control 'Entry.Keypad.B' is not switched Fast Off

 

Then

- No Actions - (To add one, press 'Action')

 

Else

- No Actions - (To add one, press 'Action')

 

Program (Kitchen.Counter.Lights.Motion.Timer)

If

From Sunset

To Sunrise (next day)

And Program 'Kitchen.Counter.Motion.Disable' is False

And Elk Zone 'Kitchen Motion' is Violated

 

Then

Wait 1 minute

Set 'Kitchen.Counter.Lights' Off

 

Else

- No Actions - (To add one, press 'Action')

 

 

Thanks,

Bob Moore

Link to comment

Thanks Lee

 

It seems to work if I change:

 

Program (Kitchen.Counter.Lights.Motion.Timer)

If

From Sunset

To Sunrise (next day)

And Program 'Kitchen.Counter.Motion.Disable' is False

And Elk Zone 'Kitchen Motion' is Not Violated (Changed from Violated to not Violated)

 

Then

Wait 1 minute

Set 'Kitchen.Counter.Lights' Off

 

Else

- No Actions - (To add one, press 'Action')

 

 

Bob Moore

Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...