So we have a cat that likes to sneak in behind us and hide in the closet (our closet is a huge walk-in that we regularly use as a changing room). The other day we accidentally locked the cat in the closet for 2 hours and it dug a nice hole in the carpet.
I picked up a motion sensor and a door sensor and added a simple automation to send a notification if the door is closed and there’s motion in the closet. (I even added a smart bulb in a lamp that would turn on, too just for kicks).
The issue I have is that every time we close the door, the automation triggers because obviously we had just triggered the motion sensor that’s by the door and then we close it, so the trigger happens.
Is there anyway to write an automation that essentially holds for four minutes after the door closes? (Since it takes four minutes for the motion sensor to go from “Motion Detected” to “No Motion Detected”).