it also works for me,
but not through my rule, and it worked 3 days ago
when
Item Vindue_Kontor changed
then
if( Vindue_Kontor.state == OPEN)
{
Window_Timer_kontor = createTimer(now.plusMinutes(10))
[|
sendBroadcastNotification("Vinduet i kontoret har været åben i 10min")
logInfo("rules", "Vinduet i kontoret har været åben i 10min")
]
}
else
{
Window_Timer_kontor.cancel
logInfo("rules", "Timer for vindue kontor stoppet")
sendBroadcastNotification("Vinduet i kontoret er lukket")
}
end