You would probably benefit from using the Gatekeeper block from openHAB Rules Tools [4.1.0.0;4.9.9.9].
You can calculate the amount of time put into a variable and use that to time the gatekeeper.
The gatekeeper will manage the timers for you.
You would probably benefit from using the Gatekeeper block from openHAB Rules Tools [4.1.0.0;4.9.9.9].
You can calculate the amount of time put into a variable and use that to time the gatekeeper.
The gatekeeper will manage the timers for you.