How to create timer? (OpenHab2)

I want to create timer that will start when a Switch turned on,
that will turn on the light for 60 seconds, how can i create it?,
or there is an example?

Expire Binding

it’s doesn’t work.
i did the following switch:
Switch test “testing” { expire=“10s,command=OFF” }

and it won’t turn off after 10s…

Expire Binding installed ? :wink:

my question to.

I changed the quotations marks and it works

Switch test "testing" { expire="10s,command=OFF" }

Its worked, I didn’t know that there is binding like this.

1 Like