Last Updated:

Contact Sensor History Review

S.C.O.R.E.SafetySecurity

Overview

The contact sensor history view allows residents to monitor the security of their home by reviewing recent events when doors or windows were opened or closed. This capability provides peace of mind by keeping track of potential security breaches or ensuring that children or pets are safe within the home.

Safety icon

Benefits

  • Increased awareness of home security events in real-time.
  • Ability to identify patterns or unusual activity, enhancing overall safety.
  • Easily accessible historical data for reviewing security incidents.

Intent

The purpose of the contact sensor history view is to provide residents with a detailed log of door and window activity within the home. This capability enables users to monitor their environment effectively and respond swiftly to any security concerns.

Preconditions

  • Contact sensors installed on doors and windows.
  • Integration with Home Assistant for data logging.
  • Active internet connection for remote access to the history view.
  • Home Assistant installed and configured.
  • Integration available and authenticated: Zigbee2MQTT.
  • Device installed and reachable: Energy Monitoring.

Actors

  • Homeowner reviewing security events
  • Family members checking on children’s safety
  • Guests ensuring secure access

Trigger

The capability is triggered by the opening or closing of a door or window, which generates a log entry in the system.

Workflow Diagram

flowchart TD
    A[Contact Sensor Triggered] -->|log event| B{Is it an open or close event?}
    B -->|Open| C[Record Open Event]
    B -->|Close| D[Record Close Event]
    C --> E[Update History Log]
    D --> E
    E --> F[Display History to User]

Workflow Description

1. Sensor Activation

A contact sensor detects a door or window being opened or closed.

2. Event Logging

The system logs the event timestamp and the type of event (open or close) in the history log.

3. History Update

The history log is updated with the new entry, ensuring all recent events are recorded.

4. User Notification

Users may receive notifications if configured, alerting them to the event.

5. History Access

Residents can access the history view within Home Assistant to review past events.

Postconditions

The history log reflects the most recent open or close events, allowing residents to review their home’s security activity.

Optional Enhancements

  • Integrate with mobile notifications for real-time alerts.
  • Add graphical representations of activity over time.
  • Enable filtering options for specific timeframes or sensor locations.

Recommended Components

Recommended ApplicationsRecommended IntegrationsRecommended Devices
Home AssistantZigbee2MQTT, Z-Wave JSEnergy Monitoring, Temperature Sensors

Source Examples