Define expiration timer in .items file

Hi, is it possible to set expiration timer in a .items file?
I want to do the same thing that I was able to do using the UI, but in my .items definition file:


Thanks!

so it should be like that:

Switch MyItem "My Expiration Timer" {channel="...",expire="30m,OFF"}

IF you need a command (that is: a binding should send the OFF command to some hardware), you’ll need to add command= to the configuration:

Switch MyItem "My Expiration Timer" {channel="...",expire="30m,command=OFF"}
1 Like