Contact Sensor Left Open Notification

Sends notifications when a door or window is left open for a specified duration. Perfect for preventing energy waste or security concerns from accidentally left-open entries.

More information and installation: https://gitlab.com/ha-paul/home-assistant-blueprints

The main idea was to create a notification when a window (with a contact sensor) was open for some given time with ideas like saving energy or controlling the temperature or similar.

I found it really had to create such an automation in Home Assistant with the native tools.

The current solution is heavily influenced by Malte’s Contact Sensor Blueprint, which laid the groundwork for my blueprints.

One of the most important features for me was “notification clearing”:

Home Assistant Mobile App: Supports automatic notification clearing when the sensor returns to normal state. The blueprint will send a clear command to dismiss the notification from your device.

Features

  • Configurable delay before first notification
  • Repeating notifications with maximum count limit (default: 3 times)
  • Automatic notification clearing when sensor returns to normal state
  • Support for binary sensors and input booleans
  • Custom friendly names with group enumeration support
  • Multiple notification services (comma-separated)
  • Toggle switches to enable/disable notification types:
  • Home Assistant notifications (mobile app, etc.)
    • Location-aware notifications (Home Assistant app only):
  • Pushover notifications
  • Only notify at-home devices when someone is home
  • Notify ALL devices when everyone is away (important for security)
  • Platform-specific options:
    • Android: customizable icons, colors, persistent notifications
    • iOS: interruption levels for focus mode compatibility
    • Pushover: priority levels, custom sounds, device targeting
  • Custom actions on state changes
  • Validation to prevent premature notifications

Please give this blueprint a try!