New Plugin - Occupatum - Occupancy/Presence detection

Posted on
Mon Feb 08, 2021 2:45 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

peszko wrote:
Yes. Motion sensors would still wok as they do right now, but I would add doors to a separate list that triggers on any. That would simplify my occupancy setup tremendously.


So, when does the zone go off? Motion sensors go off (unoccupied) on their own. How do you handle a door sensor when any change turns in on?

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

Posted on
Mon Feb 08, 2021 3:28 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

peszko wrote:
One more thing. Another issue that I have, is that if somebody leaves the room and turns off the light manually while the timeout is in progress and then re-enters before the timeout expires the lights don't come on. So in my old logic, when the light is turned off, I would reset all the motion timer and set all the motion variables to false.

Possibly a way to reset of the occupatum device that would make it off (and reset of timers) until any of the motions becomes on again. I know there is still a build in timeout on each motion sensor, but I keep them at the lowest level (10s ) and the DSC motion sensors are basically instantaneous.


Indigo action to cancel the active timer for a zone is done. The user can specify what state to leave the zone in when cancelling.

Will be in next release.

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

Posted on
Tue Feb 09, 2021 7:49 am
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Thanks a lot. Looking forward to the release.

Posted on
Tue Feb 09, 2021 8:36 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

peszko wrote:
Thanks a lot. Looking forward to the release.


How should the "any change" door sensors work? When do they turn off?

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

Posted on
Thu Feb 11, 2021 4:49 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

FlyingDiver wrote:
peszko wrote:
Thanks a lot. Looking forward to the release.


How should the "any change" door sensors work? When do they turn off?


Still need an answer to this before I can try to do a release.

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

Posted on
Thu Feb 11, 2021 10:43 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Sorry didn't notice your question.

The way I have it working in my current setup is that the door open triggers the occupation and immediately the off timer starts. So it doesn't matter if the door is not closed. Usually what happens is the motion will take over and stop the off timer (and restart it when no motion is again detected). The reason for that is that opening the door to a space should turn on the light, but just because the door isn't closed doesn't mean the light should not go off.

I hope I made my self clear enough.

Posted on
Fri Feb 12, 2021 7:28 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

Yeah, I think I understand. Not really sure how to translate that to the logic the plugin uses.

Right now, all the plugin zone states are a direct logical cascade of the input sensor states. There are delays available for when to delay changing the output state in either direction, but no way to force the zone state to a different value than the input states direct.

In your case, you're using a timer to essentially force the zone state off and ignore the actual inputs, until one of those inputs changes again. Correct?

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

Posted on
Fri Feb 12, 2021 12:23 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

FlyingDiver wrote:
In your case, you're using a timer to essentially force the zone state off and ignore the actual inputs, until one of those inputs changes again. Correct?


Exactly right.

Posted on
Fri Feb 12, 2021 1:18 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection


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

Posted on
Fri Feb 12, 2021 2:05 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Thank you for the update.

I have an unexpected behaviour on the plugin. When I cancel timer for zone (off) I get the state of the occupatum device off as exppected, however when one of my motion sensors turns off subsequently the occupatum device becomes on again and then after timeout becomes off again. I was not expecting it to come on. I was expecting the occupatum device to only become on, the next time any motion sensors become on again.

Posted on
Fri Feb 12, 2021 2:17 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Update. I noticed that this happens when two motion sensors are present and they turn off at different time. I have tow motions sensors in the occupatum device one is a z-wave the other insteon. the z-wave one turns off in 10 sec after no motion the insteon after 60s no motion. When the z-wave one turns off, the occupatum device becomes on. Then becomes off after the insteon becomes off plus the timeout. when I have only one as part of the occupatum device it works correctly for either one. I'll play around a bit more

Posted on
Fri Feb 12, 2021 2:18 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

Please open a new issue for that, on GitHub, and include the debug log for that whole sequence. Also post the definitions of the Zone device involved (screen shot ok for that).

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

Posted on
Fri Feb 12, 2021 2:20 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Will do.

Posted on
Fri Feb 12, 2021 2:52 pm
peszko offline
Posts: 311
Joined: Mar 07, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Done. Let me know if you need more information.

Posted on
Fri Feb 12, 2021 5:39 pm
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: New Plugin - Occupatum - Occupancy/Presence detection

tried v.03, i get this error:

Feb 12, 2021 at 5:35:38 PM
Occupatum Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 398, in sensorDeviceList
ValueError: invalid literal for int() with base 10: ''

no devices show up in the configure drop down list. I have DSC door/motion sensors.

ideas?

Who is online

Users browsing this forum: No registered users and 4 guests