Any way to trigger a rule based on device "Last Activity at"?

Long story short, I have a zwave deadbolt that will suddenly go offline without warning. It will take days/weeks/months to realize it is no longer powered. I have tried setting up a battery alert when the power level gets below a certain percentage, but the power drops from, say, full charge to dead with no warning. I need another way to trigger that the lock is dead.

Is there a way to trigger a rule based on when the last time the deadbolt was updated, natively? I know I could set up a variable that updated every time the lock was locked/unlocked, but if something was already there that would make things easier. For example, something that looks at "Last Activity at" under the device details. I looked under Custom Attributes for that device and there is nothing that would work.

No. This is device metadata that can only be checked on demand. It does not generate events so cannot trigger a rule or any app directly.

Have you:

  • looked at why this might be happening in the first place? It's unusual, so that is definitely where I’d start.
  • considered alternatives like my Device Activity Check app?
4 Likes

Thanks for the reply. Yes, I think I know the trouble. One of the terminals in the battery compartment is slightly corroded. I only use NiMH batteries, so I'm not sure how the corrosion keeps occurring, but I clean them off with distilled vinegar and it starts working again, until it doesn't. And when I say it is slightly corroded, I mean slightly. Nothing caked up, just barely discolored. I'm going to see if I can find a replacement battery compartment, but other than that or until then, I am trying to bandaid the issue.

Exactly what this does :point_down:
Its an awesome app, I have it setup to watch just about every device.

4 Likes

Thanks to you both. I was about to say that I think I'll have uses for that app regardless if I solve the corrosion issue.