I’ve set up an expiration timer on a bathroom fan switch. When it’s set to say 5 seconds it works just fine. I reconfigure it for two hours which is what I want eventually and the fan never turns off. The toggle switch isn’t getting activated by hand, the OH software isn’t being restarted and the system isn’t getting rebooted.
Added: I’m not seeing any state changes in the log beyond the actual physical toggle switching that is being done.
I tried changing the code to 7200 seconds and the fan is still on after five and a half hours.
Permanently powered zwave device make periodic status reports. You won’t be able to use a long ‘expire’ directly, because the periodic update restarts the timing.