Skip to content

Security

Blueprints for home security monitoring, door/window sensors, and alerts.

Security Monitor

Aggregates windows, doors, locks, and weather into a unified security status.

Import Blueprint

States (Priority Order)

StateConditionSeverity
CRITICAL_RAINRain detected + windows openCritical
GARAGE_OPENGarage door openHigh
INSECURE_AWAYAway + doors/locks openHigh
DOOR_OPENExterior door openMedium
UNLOCKEDSmart lock unlockedMedium
WINDOW_OPENWindow open (no rain)Low
SECUREAll sensors closed/lockedOK

Inputs

InputDescription
windows_groupGroup of window sensors
doors_groupGroup of door sensors
garage_doorGarage door cover entity
locksSmart lock entities
weather_entityWeather provider for rain detection
presence_entityPerson entities for away detection
yaml
type: custom:lovelace-multi-state-entities-card
entity: sensor.security_dashboard_status
rules:
  - state: "CRITICAL_RAIN"
    title: "CLOSE WINDOWS"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#F44336"
    icon: mdi:weather-pouring
  - state: "GARAGE_OPEN"
    title: "GARAGE OPEN"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#F44336"
    icon: mdi:garage-open
  - state: "INSECURE_AWAY"
    title: "HOUSE INSECURE"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#F44336"
    icon: mdi:shield-alert
  - state: "DOOR_OPEN"
    title: "DOOR OPEN"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#FF9800"
    icon: mdi:door-open
  - state: "UNLOCKED"
    title: "UNLOCKED"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#FF9800"
    icon: mdi:lock-open
  - state: "WINDOW_OPEN"
    title: "WINDOW OPEN"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#2196F3"
    icon: mdi:window-open
  - state: "SECURE"
    title: "ALL SECURE"
    subtitle: "{% raw %}{{ attr.status_text }}{% endraw %}"
    color: "#4CAF50"
    icon: mdi:shield-check

Water Leak Detection

Monitor water leak sensors with high-urgency alerts.

yaml
type: custom:lovelace-multi-state-entities-card
entity: binary_sensor.water_leak
accent_full_background: true
secondary_color: "#000000"
title_color: "#FFFFFF"
rules:
  - state: "on"
    title: "WATER LEAK DETECTED"
    subtitle: "Check immediately!"
    color: "#F44336"
    icon: mdi:water-alert
  - state: "off"
    title: "NO LEAKS"
    color: "#4CAF50"
    icon: mdi:water-check

Alarm System

Display alarm system status with arm/disarm actions.

yaml
type: custom:lovelace-multi-state-entities-card
entity: alarm_control_panel.home
rules:
  - state: "armed_away"
    title: "ARMED AWAY"
    color: "#4CAF50"
    icon: mdi:shield-lock
    button_text: "DISARM"
  - state: "armed_home"
    title: "ARMED HOME"
    color: "#2196F3"
    icon: mdi:shield-home
    button_text: "DISARM"
  - state: "armed_night"
    title: "ARMED NIGHT"
    color: "#3F51B5"
    icon: mdi:shield-moon
    button_text: "DISARM"
  - state: "disarmed"
    title: "DISARMED"
    color: "#9E9E9E"
    icon: mdi:shield-off
    button_text: "ARM"
  - state: "triggered"
    title: "ALARM TRIGGERED"
    color: "#F44336"
    icon: mdi:alarm-light
    button_text: "SILENCE"

Use Cases

Smart Doorbell

Display visitor alerts with camera snapshot.

Motion Detection

Show active motion zones.

Smoke/CO Detectors

Critical alerts for safety devices.

Network Security

Monitor connected devices and intrusion detection.

See Blueprint Library for more use-cases.

Released under the MIT License.