< Back to Integration Fun

Operation: Life Safety Response

User Story

As a: Homeowner and family protector,

I want: The home to automatically illuminate all pathways and unlock all exit points when smoke or carbon monoxide is detected,

So that: My family can evacuate the premises as quickly and safely as possible, minimizing the time spent navigating in high-stress or low-visibility conditions.

Acceptance Criteria

Technical Requirements

Hardware: Z-Wave/Zigbee Smoke & CO Detectors, Smart Deadbolts, Philips Hue/Lutron Lighting Ecosystem, Mobile App Integration.

Software: Home Assistant Core, YAML Automation Engine, Parallel Action Processing.

The Solution: Emergency Egress Automation

This automation prioritizes life safety by executing notifications, lock states, and lighting scenes in a specific sequence designed for rapid evacuation.

alias: Smoke or CO2 Response
description: "Emergency egress and illumination protocol."
mode: single

triggers:
  - entity_id:
      - binary_sensor.bedroom_carbon_monoxide_2
      - binary_sensor.bedroom_smoke_2
      - binary_sensor.hallway_carbon_monoxide_2
      - binary_sensor.hallway_smoke_2
      - binary_sensor.upstairs_carbon_monoxide
      - binary_sensor.upstairs_smoke
    to: "on"
    trigger: state
  # Specific Device Triggers for direct hardware reporting
  - type: smoke
    device_id: 26829fbc0299823826f49b72df2bccd2
    entity_id: 364693b4e5de4cb64f4b361e9985ecd0
    domain: binary_sensor
    trigger: device

actions:
  # 1. Parallel Notifications for zero-latency alerting
  - parallel:
      - action: notify.mobile_app_vanessas_iphone_personal
        data:
          title: "ALERT!"
          message: "Smoke and/or Carbon Monoxide has been detected at home!"
      - action: notify.mobile_app_kyles_iphone
        data:
          title: "ALERT!"
          message: "Smoke and/or Carbon Monoxide has been detected at home!"

  # 2. Clear the exit path
  - action: lock.unlock
    target:
      entity_id: lock.lock_group

  # 3. Visual Strobe for immediate wake-up/awareness
  - repeat:
      count: 5
      sequence:
        - action: light.turn_on
          data:
            rgb_color: [190, 56, 243]
          target:
            entity_id:
              - light.bedroom_lights
              - light.play_lights
              - light.theater_cans
        - delay: "00:00:02"
        - action: light.turn_on
          data:
            rgb_color: [255, 215, 19]
          target:
            entity_id:
              - light.bedroom_lights
              - light.play_lights
              - light.theater_cans
        - delay: "00:00:02"

  # 4. Global Illumination for Egress
  - action: light.turn_on
    data:
      kelvin: 5515
      brightness_pct: 100
    target:
      area_id:
        - front_of_house
        - backyard
        - garage
        - kitchen
        - master_bedroom
        - living_room
        - upstairs_hallway
        - stairway
        - theater_room
        
< Back to Integration Fun