New Plugin - Occupatum - Occupancy/Presence detection

Posted on
Fri Sep 16, 2022 7:06 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

Did you restart the plugin?

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

Posted on
Fri Sep 16, 2022 7:10 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

In any case, if you turn on debug logging and restart, there will be log messages showing which devices are in each Occupatum zone. That should make it easy to see which one is trying to use the missing deviceID.

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

Posted on
Wed Sep 21, 2022 6:35 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New Plugin - Occupatum - Occupancy/Presence detection

A couple of thoughts of nice to haves for the plugin for you to consider:

Having a separate section for devices that can trigger occupancy to on but won't keep the room marked as occupied. An example of this would be a door opening would say the room is now occupied, but leaving the door open wouldn't keep it marked as occupied as it currently does.

Also another really handy option would be to have an action to automatically mark a room as unoccupied, even if the timer count down hasn't hit 0 yet (or indeed maybe a trigger to set the count down timer to 0?) and then allow the plugin to run the unoccupied trigger rather than having to wait it to finish the countdown. An example of this would be when I lock my back door I want it to instantly mark it as unoccupied because I know as soon as that door is locked the garden is empty and the unoccupied trigger should run (eg turning off lights)

Apologies if this is already possible, but I couldn't see a way to to do :)

Computer says no.

Posted on
Wed Sep 21, 2022 6:46 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

There's a cancel timer action that lets you specify the zone state. Isn't that what you want?

The first I think you can do with two zone devices, one that times out after a period, the other uses the first zone as an input.

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

Posted on
Wed Sep 21, 2022 8:44 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New Plugin - Occupatum - Occupancy/Presence detection

Cancel timer does set it as unoccupied, but it doesn't run the unoccupied trigger like it does when it the timer runs down by itself - I thought that was intentional, but perhaps it's a bug?

What's a two zone device? I don't think I've came across that before.

Computer says no.

Posted on
Wed Sep 21, 2022 9:52 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

New Plugin - Occupatum - Occupancy/Presence detection

Hmm. Might be a bug. I’ll need to look at that.

Not a two zone device, but two different zone devices. One just has that one sensor and has a timer to turn off. The second would be your current zone device, modified to use the the first zone device instead of the actual sensor.


Sent from my iPhone using Tapatalk

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

Posted on
Sun Sep 25, 2022 7:06 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: New Plugin - Occupatum - Occupancy/Presence detection

I think I am doing something wrong with the logic behind.
I have set up an occupancy zone which goes on after 10s and off after 0s (immediately);
then I created a trigger

--> when that zone becomes occupied (I think when the "ON" timer expires) and a variable is "false", then send a notification.

I see the zone getting occupied (motion icon gets green), but I never get the notification, and yes, variable is false.

Posted on
Sun Sep 25, 2022 7:55 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

I’d have to see the trigger definition and the debug log to have an opinion on that.

I’m away for a few weeks so keep that on mind if I don’t reply.


Sent from my iPhone using Tapatalk

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

Posted on
Tue Oct 04, 2022 11:37 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: New Plugin - Occupatum - Occupancy/Presence detection

Cancel timer does not seem to be working for me. I am using set zone to off but I get a message saying no timer found and the zone continues counting down. Any thoughts?

Posted on
Wed Oct 05, 2022 11:28 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

Londonmark wrote:
Cancel timer does not seem to be working for me. I am using set zone to off but I get a message saying no timer found and the zone continues counting down. Any thoughts?
Create an issue in GitHub. It’s going to be over a week until I can look at it. I’m going to need debug logs.


Sent from my iPhone using Tapatalk

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

Posted on
Thu Jul 13, 2023 9:24 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: New Plugin - Occupatum - Occupancy/Presence detection

I am getting the error

Code: Select all
key id “xxx” not found in database


Where can I check where is the problem?

Thanks

Posted on
Thu Jul 13, 2023 9:31 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

MarcoGT wrote:
I am getting the error

Code: Select all
key id “xxx” not found in database


Where can I check where is the problem?

Thanks


Not enough info for a detailed answer, that's a very generic error message.

But my guess is you somehow managed to delete or change a device that's included in an Occupatum zone. So you need to check all your Occupatum devices and make sure the sensors they're referencing are all still good.

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

Posted on
Tue Jul 18, 2023 1:28 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: New Plugin - Occupatum - Occupancy/Presence detection

With log level set at Debug, I got this

Occupatum Debug Cucina Occupata: watchList updated: {1464433068: [350303466, 611680675, 1720339838], 1132152507: [350303466, 545801923, 309550993], 1012205282: [350303466, 295908663], 1971180444: [350303466, 1512554270], 1227466386: [350303466, 309550993], 1537777849: [350303466, 1102737826, 1720339838], 539442263: [350303466, 1720339838], 1246835527: [350303466, 309550993], 33124796: [350303466], 535468322: [350303466, 1720339838, 1322944162], 94109724: [1720339838]}


Problem is id 94109724.
Is this the ID of an occupancy zone or of a device which goes inside the zone?

Posted on
Tue Jul 18, 2023 5:46 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin - Occupatum - Occupancy/Presence detection

That's a zone ID. It's watching device ID 1720339838

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

Posted on
Tue Jul 18, 2023 6:39 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: New Plugin - Occupatum - Occupancy/Presence detection

Yes, then I found it out, I deleted/recreated the zone and it works now :)
Thanks

Who is online

Users browsing this forum: No registered users and 4 guests