Ok~So it depends slightly on your DTH and how they formatted things but follow whichever looks like yours.
In the refresh function add something like:
cmds << secure(zwave.batteryV1.batteryGet())
or if your DTH looks like:
def cmds = secureSequence([zwave.doorLockV1.doorLockOperationGet(),
somewhere in there. Then just save and publish and hit the refresh button. You can watch the live logging as well to see what response you get. Let me know if it works or you have issues.