Please use the code fences when posting code:
Install the expire binding
Set-up at new item:
Switch Washen_Timer { expire="10m, OFF }
Then your rules:
rule “React on Waschen (Waschen_Switch) change/update”
when
Item Waschen_Switch changed from OFF to ON
then
// something to disable the rule above for 10 minutes
Washen_Timer.sendCommand(ON)
end
rule “React on Leistung (Waschen_Power) change/update”
when
Item Waschen_Power changed
then
if (Washen_Timer.state == OFF) {
val wpwr = Waschen_Power.state as Number
val pwrthreshold = 4
if (wpwr <= pwrthreshold){
sendTelegram(“cmhomebot”,“OpenHAB Info - Wäsche ist fertig”)
sendCommand(Waschen_Switch, OFF)
}
}
end
The Timer item with get update to OFF 10 minutes after receiving the command ON