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.

Programming with a motion sensor

Featured Replies

Posted

I'm sorry for such a simple question. What I am trying to do is control a scene with a motion sensor. The sensor is in a work area of a barn which is controlled by a scene. It is not unusal to be out of view of the sensor for 10 minutes. If I try to control the scene by adding the motion sensor I can only set the delay to 8.5 minutes. So, I want to control it by program.

Program for Barn General

If

Status 'BarnGeneral Motion' is ON

Then

Set Scene 'Barn General' On

Else

No Actions

 

Program for Barn General

If

Control 'Barn General Motion' is switched off

And Control ' Barn General Motion' is switched On

Then

Wait 10 minutes

Set Scene 'Barn General' Off

Else

No Actions.

The only problen is it does not work. Any help would be appreciated. Than You.

Try this:

 

Program for Barn General On
            If
->               Control 'Barn General Motion' is switched On
            Then
                  Set Scene 'Barn General Fast' On
            Else
                  No Actions

Program for Barn General Off
            If
                  Control 'Barn General Motion' is switched Off
--->             And Control 'Barn General Motion' is not switched On
            Then
                  Wait 10 minutes
                  Set Scene 'Barn General Fade' Off
            Else
                  No Actions.

 

The is not will make the Off program quit if during the Wait the motion sensor switches on again.

 

I find it useful to use two different scenes. The On scene would have short ramp rates and the Off uses long ramp rates. Then the lights fading will give you a chance to make motion again.

 

It's also better to watch for Control from a motion sensor as they cannot be Queried for Status unless they are in linking mode.

 

Rand

I also took a secondary (no-load) switch in our kitchen out of the motion scenes. I added a line that checks that it's Status must be Off or neither program runs. So turning on the lights with that switch will require turning them off with that switch or a linked switch or using another program or direct control. A KPL button can be used as well.

 

Add this to your Conditions (Add to 'If') if you like:

 

   And Status  'Barn On Switch' is Off

 

Rand

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.