Presence Detection - How do you do it? How do you want to?

Posted on
Wed Nov 04, 2020 4:47 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Presence Detection - How do you do it? How do you want

Looking for testers. ;)

viewtopic.php?f=216&t=24528

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 05, 2020 9:28 am
WagnerOne offline
Posts: 150
Joined: Jun 12, 2009
Location: Chicago, IL

Re: Presence Detection - How do you do it? How do you want

jay (support) wrote:
Sounds vaguely....vulgar? Maybe like someone is trying to be clever when someone knocks on an occupied bathroom door... :lol: :P


Ha! That was my reaction too. Can't quite place it though.

Looking forward to giving this a whirl and seeing where it goes!

Posted on
Thu Nov 05, 2020 10:37 am
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: Presence Detection - How do you do it? How do you want

FlyingDiver wrote:
I've decided to go with "Occupatum", a Latin riff on one of your suggestions. ;)

Love it. My main place for occupancy are washrooms, this works great. In our house when a washroom is busy, we call it Occupato :-)

Posted on
Thu Nov 05, 2020 7:34 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Presence Detection - How do you do it? How do you want

Serious follow-up question - How should delayed events work?

Say you have one or more sensors monitoring a particular area, and you want a delay to make sure it's not a spurious activation. My initial thought is to recheck the activation requirements at the end of the specified delay, and if they all still match, then it's a good activation.

What should happen if the conditions changed during the delay? Say it's a 10 second delay, and the sensor goes off and then back on in that 10 second window. Should the timer have been cancelled when the sensor first went off then restarted when he sensor went back on?

Thoughts?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 05, 2020 9:37 pm
vtmikel offline
Posts: 643
Joined: Aug 31, 2012
Location: Boston, MA

Re: Presence Detection - How do you do it? How do you want

I do this frequently using the timed devices plugin. I use a persistence timer to delay immediate actions.


Sent from my iPad using Tapatalk Pro

Posted on
Thu Nov 05, 2020 9:38 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Presence Detection - How do you do it? How do you want

vtmikel wrote:
I do this frequently using the timed devices plugin. I use a persistence timer to delay immediate actions.


But what's the behavior when the sensor toggles during the delay timer?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 05, 2020 10:06 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: Presence Detection - How do you do it? How do you want

FlyingDiver wrote:
vtmikel wrote:
I do this frequently using the timed devices plugin. I use a persistence timer to delay immediate actions.


But what's the behavior when the sensor toggles during the delay timer?


I restart the timer. What I do (and want) is to have a delay from last possible detection.

Posted on
Thu Nov 05, 2020 10:07 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Presence Detection - How do you do it? How do you want

peszko wrote:
I restart the timer. What I do (and want) is to have a delay from last possible detection.


OK, got it. Thanks.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Nov 06, 2020 7:56 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Presence Detection - How do you do it? How do you want

FlyingDiver wrote:
peszko wrote:
I restart the timer. What I do (and want) is to have a delay from last possible detection.


OK, got it. Thanks.

This is how I have my motion detection setup using variables and scripts. I have a timer of two minutes.

If I am monitoring a room that has two or three sensors, as soon as one is triggered, the start time for motion in the room is logged and a two minute timer kicked off. At any point during the two minutes if one of the sensors is triggered, then the two minute timer is reset. At the end of the two minutes if all sensors are off, then the motion off time is set to the time the last sensor switched off. I also monitor the states of the sensors so that in a control page I can show the room / zone that is active and which of the sensors is currently active and got triggered.

I use the following State Image Sel Enumeration to show when motion is active or not: MotionSensor and MotionSensorTripped

I have installed the plugin and look forward to developments. :D

Posted on
Sun Nov 08, 2020 10:47 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Presence Detection - How do you do it? How do you want

I also have been using Timed Devices in a similar manner as others:
Image

Each Timed Device monitors PIR sensors, door sensors, etc.

I look forward to using your new plug-in as it looks more express built for this purpose.

Who is online

Users browsing this forum: No registered users and 4 guests