@vertom have a look at this post. It is working fine for my installation. If you have more then one persistence, you have to identify it with a second parameter:
... door.changedSince(now.minusSeconds(1), "mysql")