Help how to make a condition to check that the state of the object within a minute at least once was in the status ON, I need to check in the trigger motion sensor, but provided that the other motion sensor before that also triggered not later than a minute before the one in the trigger.