In Smartthings I can write a groovy script like
sensorType.eventsSince(date)
That allows me to query all sensors with a certain type and get the last event for all those sensors. This is useful for proof of life scenarios or elderly care should you wish to monitor all the sensors in a home and alert if there has been no movement from all sensors in a time frame.
My question, does the gateway currently store history for all devices and can it be queried? I am migrating from Smartthings and will need to build this into the gateway if not available.
I’m thinking a History adapter that allows you to select the event type in a rule for a single, multiple or all devices and set a condition to examine.
For instance Select motion sensors, event MOTION, select the period of time to check last motion.