I’ve written a small rule file which introduces a generic sleep timer, similar to the expire binding but more customizable. Using this approach, you are able to create rules which implements a sleep timer behaviour inspired by a TV sleep timer. You can customize the actions, which are executed if the timer expires and if the timer is updated.
I use it to switch of some wireles sockets after a given time. You can find a basic usage example and the respective rules at the following gist. I’ve added some debug output and code comments for a better undastanding of the used method.
Maybe it’s helpful for some other OpenHAB enthusiasts