notes
[svn42.git] / go / r3-eventbroker_zmq / presence.txt
1
2 Presence Meta Event Injector:
3     events indicating presence:
4     - front door ajar
5     - door lock using manual movement closing (unless door ajar, assume we would not use key to close from inside )
6     - door unlock (any method, manual, key, card, phone, ssh, etc)
7     - panic button press
8     - door toggle button press
9     - back door ajar
10     - movement sensor (maybe threshold number movements within 5 minutes)
11
12     events indicating somebody left:
13     - door closed with card, phone, ssh (while backdor and frontdoor shut)
14     - no movement within 3 hours and movement within the last 6 hours (disable trigger if sensor is broken)
15     
16
17     events indicating "alarm state" / special message:
18     - Panic Button pressend
19     - Sudden rise in Temp-Sensor-Value
20     - Sudden rise in Dust/Smoke-Sensor-Value
21
22
23 Movement Meta Event Injector:
24     movement sensor (maybe threshold number movements within 5 minutes) -> Movement Passed Threshold
25     no movement within 3 hours and movement within the last 6 hours -> Movement Absence Passed Threshold
26
27 Sensor Spike Event Injector:
28     monitors sensor values and calculates running average mean, stddev over last hours,
29     raises Event is value spikes, aka rised beyond mean +- stddev within 2 min (enables after 1 hour of collecting data)
30   
31
32
33 Use Cases to detect:
34 * someone walks by the movement sensor towards the door. Closes it from outside with the Card and leaves -> nobody in room anymore
35 * somone still works in the OLGA room while the last person in the main room leaves and closes the door behind him with the card
36
37 -> best idea so far:
38  -> all doors closed and shut -> no movement for ~30 seconds after closing doors -> assume everybody left
39                                                -> movement within next ~30 seconds -> assume somebody is still here until SomthingReallyIsMoving{false} fires
40                                                
41
42 possible better Solution:
43   close door "differently" from outside if people are still inside (e.g. with buttonpress prior to closing with card from outside... or install a "CLOSE ONLY" event sending device which can be triggered through the glass)