conditional .switchOff().afterMin(15)
Posted: Wednesday 14 February 2024 9:28
I want my light to switch off automatically after 15 minutes after I turned it on. I know I can do that with .switchOff().afterMin(15).
But I don't want to switch off if some condition is true at th emoment of switching off.
How can I do that?
But I don't want to switch off if some condition is true at th emoment of switching off.
How can I do that?