I want to count the number of human interaction per area or per label to execute actions over or under limit:
Exemple: if no one has been in first_floor for 20 minutes switch off all lights, reduce temperature.
A human interaction is either a press on a switch, a movement before a movement detection, a physical change of thermostat temperature...
So far I am planning to filter out all events to keep only the relevant human interaction event.
Is there a smarter way to do it ?