This works for me (for online/offline state):
when Thing "zwave:device:15ca6a108b9:node26" changed then
If you need to catch rules errors, take a look at: