Jump to content

Howto: When was last motion detected?


rickoman

Recommended Posts

Posted

This is sort of a tip but also a question is there a better way to do this?

 

Basically what I have is a series of programs which based on their True/False status I can determine when the last motion was detected in an area.

 

Program: Family Trigger

If
       Control 'Sensor/Family Room-Sensor' is switched On
    Or Status  'Sensor/Family Room-Sensor' is On

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

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

 

The 'Family Trigger' program briefly be True when motion is first detected or while motion is being detected. It is not very useful by it self but now you can do this:

 

Program: Family 2 min

If
       From    Last Run Time for 'Family trigger'
       For      2 minutes 

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

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

 

This program uses the last run time of 'Family Trigger' to create an if condition that is only True for 2 minutes since the last time Family Trigger saw any motion. It is easy to create multiple versions of the 'Family 2 min' for any number of intervals: 1,2,5,10,15 minutes etc.

 

"Where are the kids? I don't know, but there was motion in the garage 5 minutes ago I bet they are riding their bikes!" :idea:

 

Suggestions? Improvements? Uses? :?:

 

--Rick

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...