Jump to content

Program for 2 motion sensors


edokid

Recommended Posts

Getting stuck making this work.  In my bathroom I have 2 motion sensors, one that covers all the bathroom, then a second aiming right at the shower to prevent it from turning off when someone is in there.  I set it low, to turn off after 2 minutes.  It works to keep the light on but what's the best way to turn the light off after 2 minutes of no motion at all?  My programs are below but the Off one doesn't work, light never turns off I guess since the way I have it means both have to go off at the same time.  I feel like this is easy but mind is blank, thanks!!!

 

Motion On

Master Bath Motion On - [iD 0023][Parent 0025]

 

If

        Control 'System Devices / Master Bedroom and Bath / Motion Sensor-Sensor' is switched On

     Or Control 'System Devices / Master Bedroom and Bath / Z-Wave Shower Motion Sensor' is switched On

 

Then

        Set Scene 'Scenes / Master Bathroom and Shower' On

Else

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

 

 

Motion Off (Doesn't work, only with 1 sensor it does)

Master Bath Motion Off - [iD 0024][Parent 0025]

 

If

        Control 'System Devices / Master Bedroom and Bath / Z-Wave Shower Motion Sensor' is switched Off

    And Control 'System Devices / Master Bedroom and Bath / Motion Sensor-Sensor' is switched Off

 

Then

        Wait  2 minutes

        Set Scene 'Scenes / Master Bathroom and Shower' Off

 

Else

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

Link to comment

Or, you could narrow this down to one program:

Motion On

Master Bath Motion On - [ID 0023][Parent 0025]


If
        Control 'System Devices / Master Bedroom and Bath / Motion Sensor-Sensor' is switched On
        Or Control 'System Devices / Master Bedroom and Bath / Z-Wave Shower Motion Sensor' is switched On

 
Then

        Set Scene 'Scenes / Master Bathroom and Shower' On
        Wait 2 minutes
        Set Scene 'Scenes / Master Bathroom and Shower' Off 

Else

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

In this program, the wait restarts with each new Motion On received and will timeout and turn off the lights after 2 minutes with no motion detected.

 

Hope this helps.

 

-Xathros

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.2k
×
×
  • Create New...