Time since event not working

Im getting some weird behaviour with the time since event that I just cant understand....

  1. First of all when editing the condition with 'time since event' it doesnt display correctly - the 'time boxes - h:m:s' only appear if you fiddle with comparison box and attribute box. But this isnt major and is manageable.

  2. As you can see in the screenshot it shows that time since event has NOT exceeded 1hour, and yet when I look at the device there have been no events since the start of December (as the device dropped off the network). So this should be a 'true' condition, but seemingly not.... I enabled logging on the rule, but everything looks sensible except for the fact that this condition is just incorrect....

Any help much appreciated. Thank you!

From your screenshot, it looks like there is no humidity values being reported at all, hence the « ? » In « Bathroom Temp(?) ». I suspect there needs to be at least one event reported for this to work.

Thanks for the response! Hmm thats an interesting point, yes the device stopped reporting humidity and temperature measurements as it dropped off the network for some reason. There is a previous value stored (for humidity and temperature), but the event log doesnt have anything in it as it dropped off the network about a month ago. I added that condition to the rule to try and prevent mistaken behaviour when the device drops!

I guess this means the behaviour of the rule is a bit broken as it really means 'time since event' is greater than X and also less than event log size.... I.e. a 'null' event triggers rules irrespective of condition....

Doesnt fix the bug with displaying time fields, but at least I can try and find another condition that behaves properly.

This was fixed in latest release. So update. Another work around is to pick something other than **Any Value**, put the time in, then go back and select **Any Value**.

1 Like

Ah, had been leaving the new version to stabilise a few days. Updated now and it does fix that issue, thank you.

Any good ideas to detect when last activity is over X time ago? Id normally use presence, but its not in the handler so a bit awkward to add.