durosity wrote:For the next version could you please please pretty please with a cherry on top add a custom state for “human detected” = yes/no and “time since last human detection” = X? That’d just make so many of my triggers like 10x more useful..
If you do this I’ll give you my share of Jays house!
What would y'all want to do with this? Give me some concrete examples to get my juices going...
The problem with all "time since" properties is that they need to be continually updated (because time flies), so that's a constant load on Indigo's processing even when nothing (more) happens. (One answer would be to have a "when it happened" timestamp and some fancyl sugar to make "is it five minutes after that yet" fire a trigger...)
I've been playing with the idea of generalizing the
Switch Control device (in
Cynical Behaviors) so it can represent
presence. This device already has a "time after" feature (to turn the target device back off). Would that work for your situation?
Human detected belongs into the event specification, I think, not into device state. I've played with having a "results of last vision evaluation" state, but it's inherently racy when you have multiple event triggers on a camera, since Indigo doesn't pass any results to a firing event (Hint, hint...) and at times it takes awfully long for a trigger action to execute because Indigo serializes everything on the server.
Gotta think about this some more.
Cheers
-- perry