Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Program for activating light if motion sensor triggered

Featured Replies

Posted

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

  • Author

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

The ELK Zone does not stay violated for the 1 minute+ that is required for the Wait to complete and the light turn Off. As soon as the ELK Zone is no longer violated the If is reevaluated to False and the Else clause runs.

  • Author

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

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.