Trigger on NO Event for x amount of time

Hello,
I was wondering if there is a way to trigger a rule if no event has been received from a device for a given amount of time.. for example
I have a motion sensor that should be sending a motion event atleast once an hour..
So i want to get a notification when there has not been a motion for more than an hour ..can this be achieved?
Also, to make sure, the device also sends illuminance and temperature as events..
So if the device has not sent ANY event, temperature, Motion or illuminance change in the last hour.. i want to be notified

Let me know if anyone has ideas on how to implement this?
Thanks

First, it may be helpful to take a step back and think about why you want to do this: are you trying to work around a device or network problem? If so, addressing that would be a better first step. People may have some ideas if you share more about the device (brand, model, etc.) and your network (what kinds of Z-Wave and Zigbee devices you have if this is device is one of those protocols, for example).

That being said: to directly answer your actual question, yes. Triggering a rule cancels any waits, so you can do something like this:

Trigger event: Motion *changes*

Actions to run:

Wait for event: elapsed time --> 01:00:00
Notify: "%device% %event% remained %value% for one hour"

The second action will never be reached if the rule re-triggers before the 1-hour wait is up. You could do something similar for any event you care about.

3 Likes