Intermittent device events not reaching Rule Machine / Simple Automation on 2.5.1.181

I’m seeing an intermittent issue where a contact sensor event is clearly received and logged by the hub, but occasionally does not reach the automation subscribed to it.

Hub: C-8 Pro, currently 2.5.1.181
Sensor: Zooz ZSE41 using Hubitat built-in driver
Device: Garage to House Contact
Action: Turn on Garage LEDs

I originally had this configured as a Simple Automation Rule triggered by contact open. It worked most of the time, but occasionally the device would log the contact-open event and the automation would do nothing.

To eliminate the Simple Automation Rule as the cause, I paused it and recreated the automation from scratch in Rule Machine 5.1:

Trigger: Garage to House Contact contact reports open
Action: On: Garage LEDs
Logging: Events, Triggers, Actions

The same intermittent failure has now occurred with the new RM rule.

A particularly clean example occurred this morning:

08:17:53.864 — device logs Garage to House Contact is open
No Event, Trigger, or Action appears from the RM rule (app:804).
08:19:13.909 — Garage LEDs turned on manually.

I then tested it again:

08:19:53.159 — contact reports open
08:19:53.209 — RM logs Event: Garage to House Contact contact open
08:19:53.211 — RM logs Triggered: Garage to House Contact contact open
08:19:53.268 — RM logs Action: On: Garage LEDs
08:19:53.362 — Garage LEDs turns on.

So when RM receives the event, the entire automation executes essentially immediately. On the failed occurrence, the device event is present in Hubitat but there is no corresponding Event entry from RM at all.

I have now reproduced the same behavior with both Simple Automation Rules and a newly created Rule Machine rule, so it does not appear to be the automation logic or the target switch.

Has anyone seen device events intermittently get recorded by Hubitat but fail to be delivered to subscribed apps/rules on 2.5.1.181? Is there any additional logging or diagnostic information I should capture the next time it occurs?

Try rebuilding your hub’s database as a preliminary troubleshooting step.

Does the event appear in the contact sensor device page under the events tab? It also should say that it triggered the rule on that page for the event. It would be strange if there is an event on the device page but it just has the triggered apps field empty.

If there is no event on the device page, no event was actually sent, so I would look at that, regardless of if it logged contact being open or not, to confirm an event was even sent to the hub. I just can't see RM ignoring an event if there really was one, assuming your rule is as simple as you describe it.

yes - here's output from the device / event tab:

i would agree. i'm going to reboot / rebuild the database as @aaiyar suggested.

Could this be a factor?

i don't think so. that is the original simple automation rule i had been using. i paused it and then created the RM rule to see if it would behave better:

Ok, names, obviously clear to you, were not clear to me. :roll_eyes:

yes, totally understandable :slight_smile:

i was hoping either the RM automation was going to work reliably and i'd delete the simple one, or if the RM automation behaved the same way - i was likley going to delete the RM one.

Maybe a driver issue? I use Jeff page’s drivers for all my ZooZ devices. Never have an issue. All are on HPM as well

possibly @MD617 . i'm going to see if i can close this thread. i think i found the root of why the rules aren't triggering - and it seems to be a sensor issue rather than the hub not responding to an event.