Wow, a little harsh there Ryan? I think the sensor I’m using re-sends the motion event every 15s while active, I haven’t had a chance to sit down and test/verify that yet.
I don’t want to trigger “active for last 45s” I . want “active for 45s out of the last 60s” which could look like 15s on, 15s off, 30s on.
I have a dehumidifier in a room that I want to turn off when the room is occupied. My experience so far is the motion sensor is a little noisy (triggering false events every once in a while, having pauses of no motion with a person in the room, etc) so I was looking to see if there are existing patterns for smoothing event/sensor data in WebCore before I go build my own.
I probably won’t get back to hacking at it until next week, life is busy 