[SOLVED] Problem with rule about Door_sensor action

You don’t want to use a Thread::sleep for ore than half a second, it’s a bad idea

rule “Alarm”
when
    Item XiaomiDoorWindowSensor_OpenStatus changed to OPEN
then
    if (Alarm_State.State == ON) {
        createTimer(now.plusSeconds(10), [ | //* wait for 10 seconds */
            if (Alarm_State.State == ON) sendPushbulletNote("Alarm", "Door Opened")
        ])
    }
end