Jump to content

Programming with a motion sensor


wacvmd

Recommended Posts

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.

Posted

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

Posted

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.

×
×
  • Create New...