Skip to content

Door Left Open

You'll stick a contact sensor on a door that matters and get a message on your phone when it has been open too long.

About

A contact sensor is two pieces of plastic with a magnet, it costs about ten dollars, and it's the first time the house tells you something instead of the other way round. The fridge, the freezer, the back door and the garage door are the classic places. Open and closed is the easy part, and nobody wants a notification every time the fridge opens. The useful rule is open for longer than five minutes, which is a timer that cancels itself when the door closes, and that one idea runs half the automations in this track. If you don't have a hub yet, a Wi-Fi sensor with its own free app is enough for now, and a Zigbee sensor on a hub does the same job later.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
One evening, then wait for a catch
Skill level
Beginner (done it a few times)
Cost
Inexpensive (under $20)
Supplies
You need some
Where
At home
Other people
On your own

Requirements

  1. 1
    Mount a contact sensor on a door that matters and watch it change state. Put the magnet half on the door and the sensor half on the frame, with the gap under 10 mm when closed, because a wide gap is the usual reason a sensor never reads closed. Use the sticky pads that came in the box, and wipe the surface with alcohol first so they hold. Take a photo of the sensor in place and a screenshot of it reading open. Photo
  2. 2
    Build a rule that only fires once the door has been open for five minutes. The trigger is the door opening, and the condition is that it's still open five minutes later. In most apps this is a delay or a duration on the trigger, and in Home Assistant it's the for field on the trigger. Test it by holding the door open with a chair and watching the clock. Take a screenshot of the rule. Photo
  3. 3
    Make it stay quiet when the door closes before the timer is up. Open the door for a minute, close it, and check that no message arrives. A rule that fires after the door is already shut teaches the household to ignore it. Take a screenshot of the log showing the rule cancelled, or film the door closing and your phone staying quiet. Photo or video
  4. 4
    Send the message to the person who can do something about it. A freezer alert should reach whoever is home, not whoever set it up. Add a second phone, or send it to a shared group chat. If you live alone, a watch or a tablet counts as the second screen. Take a screenshot of the message arriving on the other device. Photo
  5. 5
    Keep it running until the first real catch, and write down what it was. A real catch is the freezer door left ajar, the back door open after everyone went to bed, or the garage open at midnight. Keep a note of every alert and whether it was real or false. The first real one pays for the sensor, and the false ones tell you the timer is too short. Take a photo of the note with the first real catch on it. Photo