The former posts here are all well and good, but don't apply to devices such as most deadbolts/dry contacts/etc which:
- are often operated manually just as much (if not more often) than via z-wave commands and
- only report their status after receiving a z-wave command and NOT after being manually activated
I made a Rule Machine automation for this, specifically for our Kwikset 910 front door lock (and soon to apply to the garage door opener), which updates its current lock status just fine if lock/unlocked via z-wave, but will never update if manually locked/unlocked, or the keypad is used (it does technically send event data to the hub, but not "lock/unlock" events, because kwikset sucks at implementing z-wave). This kind of thing is rarely Hubitat's fault, most battery powered z-wave devices made pre-2019 just suck and there's no way around it.
I called the new automation Auto-refresh. I set the Required Expression to be TRUE (run the rule) between 7 am and midnight (neither wife nor I will be manually operating the deadbolt while asleep, and contact sensors take care of security). I then set the trigger event to trigger every 5 minutes, and the action to run was Refresh: Front Deadbolt. Roughly half my devices support Refresh, but most don't need it.
What this does, every 5 minutes between 7 AM and midnight, is just send a wee lil refresh command to the lock, which then reports its current status. So let's say I'm just quickly going out at 10pm to put out the trash, manually unlock the deadbolt, come back in, and oops forget to manually re-lock it. No matter, in the next few minutes the Auto-refresh rule will run, update the lock's status, and boom I get my "door unlocked!" notification before bedtime so I don't wake up to the dog having let herself out again (I really thought a round doorknob would stop it, but she's crafty, only the deadbolt stops her). Without the Auto-refresh rule, its status will sit there as "locked" till the next discrete z-wave command is sent and it replies with its current status.
I have noticed my lock's battery is draining about 10% more quickly than before, probably because of the 12 refreshes/hour, but well worth it to keep everything synched up.
Hope this helps others in the same boat. Very few posts about this edge case.