Question About Condition With **Any Value**

I was trying to make a condition to check how recently a child device was "seen" based on a custom attribute I have in it called LastSeen. Hoping to be able to compare the date in it to the current date plus/minus some value. While that did not appear to be the case I did see that when you select the Comparison of **Any Value** it offers an option to select how long it has been "Time since event exceeds:".


Not what I was looking for, but sounds good right? I can just let it compare when the event last occurred (that is how I read it) and if it is longer than the X time I can have it do something. Except that is not what happens. Any value I put seems to show the "Truth" as TRUE. It is currently about 20 minutes since the event last updated.

Yet 1 hour, 2 hours or even up to 24 hours still shows it as TRUE. If I put it for LESS than 20 minutes, I would have expected it to be TRUE... but the hour plus ones should have been FALSE.

So, I am either misunderstanding what it is supposed to do or it is not working properly. Does anyone know? I looked through the documentation but did not find any mention of this.

Please note, I do not care what the value of the attribute is in this scenario. I am relying on when the event last occurred.

1 Like

It's not at all clear what you are trying to accomplish.

Perhaps you should use Time Since Event condition.

1 Like

I was trying to determine if the event had happened longer than X time ago (specifically 1 hour). It sounds like the condition you mention is what I need.

But that still leaves me wondering, what should "Time since event exceeds" do?

For the Condition, Time Since Event exceeds 01:00:00: it will be true when the identified attribute had an event more than an hour ago, and false when the most recent event is less than an hour ago.

So it should work the way I thought, but it was showing true when the most event was only about 20 minutes. It should have shown false then.