Smoke, CO, and Gas: Certified Detectors, Warnings, and Home Assistant as an Extra Layer

Smoke, CO, and Gas: Certified Detectors, Warnings, and Home Assistant as an Extra Layer

Module 18 · Lesson 5

Smoke, CO, and Gas: Certified Detectors, Warnings, and Home Assistant as an Extra Layer

In Lesson 4, Home Assistant could genuinely limit the damage: shutting off water and triggering the alarm. For smoke, carbon monoxide, and gas, a different rule applies: a certified detector with its own siren has to protect you on its own, even when HA, Wi-Fi, and the internet are down. Home Assistant is only an extra layer of notification.

This lesson doesn't replace the manufacturer's instructions or building code. You're not installing a gas system here. You're deciding which detectors need to be in the house regardless of HA, where to put them, how to wire them into your automations, and what Home Assistant must never do during a life-safety alarm.

Plan on about 85 to 100 minutes. If you don't have HA-integrated detectors yet, you'll build a test helper and an automation; you can add the physical devices later without rewriting the logic.

The rule for this lesson
For flooding, HA can shut off the water. For smoke, carbon monoxide, and gas, HA does not replace the detector.
A certified detector with its own siren is the foundation. Home Assistant only adds notification and escalation.

A real-life problem: smoke at night, and the router is down

At 3:00 AM, an appliance in the kitchen starts a fire. A certified smoke detector on the ceiling sets off its siren. You wake up instantly: not because a push notification reached your phone, but because the detector has its own alarm and its own battery. Home Assistant sees the binary_sensor.hallway_smoke entity and calls script.life_alarm. The router is down. The push didn't go out. That doesn't matter for your safety in this moment: the detector's siren already woke you up.

If you'd relied only on a cheap, uncertified Zigbee sensor with no siren of its own, the scenario would look different: the entity in HA would change state, but you'd stay asleep, because the Zigbee coordinator might have gone down along with the router. That's the fundamental difference between Lesson 4 and Lesson 5.

People's safety first, then Home Assistant
When a smoke, CO, or gas detector triggers an alarm, you don't start by checking the dashboard. You wake the household, leave the area at risk, and call for help if the situation calls for it. Home Assistant can send a notification, but it does not replace evacuation, an emergency call, or common sense.

Flooding versus smoke, CO, and gas: two different worlds

Aspect Flooding (Lesson 4) Smoke, CO, gas (Lesson 5)
Primary protection A sensor, optionally plus a water valve A certified detector with its own siren
Home Assistant's role Can genuinely limit damage locally Only extra notification and escalation
When HA is down The valve and sensor can still help if they're local The certified detector has to alarm on its own
What HA can do Close the valve, sound a siren, escalate Send push, SMS, trigger an extra HA siren
What HA must never do Leave the water on with no manual-open plan Silence, delay, or condition the alarm on "only when away from home"

What a person does during an alarm

With smoke, CO, and gas, a human's response matters more than any automation. What follows is general guidance: during a real alarm, follow the detector's instructions, emergency-service guidance, and your own household plan.

Alarm First response What not to do
Smoke / fire Leave the area at risk, warn the household, call for help if there's a fire. Don't hunt for the fire's source at the expense of evacuating.
Carbon monoxide / CO Leave the room, ventilate only if you can do so safely, call for help if symptoms or the alarm continue. Don't dismiss the alarm because "you can't smell anything." CO has no odor.
Gas Don't use electrical switches, don't light a flame, ventilate if you can do so safely, leave the area and call for help. Don't turn on lights, don't start devices, don't dismiss the alarm from the app.

What's actually the risk

A cheap Zigbee sensor instead of a certified detector: the entity exists in HA, but you don't have real life-safety protection.

No CO detector near combustion sources: a gas kitchen, a fireplace, a furnace: without a CO detector you won't catch poisoning.

A smoke detector right above the stove: false alarms from cooking, or delayed fire detection.

An HA automation muting the alarm: a "cooking mode" disables the notification, then it stays off for good.

An expired detector: the battery is full, but the chemical sensor is no longer sensitive.

A condition of "only when no one is home": during a nighttime fire, the alarm doesn't go out because someone's home.

Three different hazards: three different detectors

There's no single universal detector that handles everything. Smoke, carbon monoxide (CO), and combustible gas are different hazards. Each needs the right device in the right location.

Type What it detects Typical locations
Smoke Fire smoke: a fast flaming fire or a slow smoldering one, depending on detector type Hallway, stairwell, living areas, the hallway outside bedrooms
Carbon monoxide (CO) Carbon monoxide: no odor, no smoke Near bedrooms and combustion sources, per the manufacturer's instructions
Gas Natural gas (methane) or LPG: depends on the installation Ceiling for natural gas, floor for LPG: per the manufacturer's instructions

Certification matters
Buy detectors with proper compliance markings and clear instructions. Smoke: UL 217 (or EN 14604 in Europe). CO: UL 2034 (or EN 50291). Gas: per the installation type and manufacturer requirements. Don't treat a cheap marketplace sensor as a substitute for a certified detector just because "it works with Zigbee."

"Smart" doesn't mean safe
The word "smart," "Tuya," "Zigbee," or "Wi-Fi" says nothing about whether a detector is fit for life safety. First check certification, the instructions, the expiration date, siren loudness, and a physical test. Home Assistant integration is a bonus, not the point.

Where to mount detectors

Always mount per the manufacturer's instructions. Below is a typical single-family home layout: a starting point for the risk map from Lesson 1, not a substitute for code.

Room Smoke CO / gas
Hallway / stairwell Yes: a central smoke-detection point Rarely: unless a furnace is nearby
Kitchen Not directly over the stove: better just outside the kitchen entrance Gas: per fuel type and instructions
Bedrooms Optional, if you're building a full interconnected network Yes: CO near bedrooms, per manufacturer instructions
Boiler room / garage Optional, near heating equipment Yes: CO is a must near combustion sources
Living room with a fireplace Yes: at an appropriate distance from the fireplace CO near the seating area

A practical starting point: a smoke detector in the hallway directly outside the bedrooms, and at least one detector on every floor. In a multi-story house, don't assume one ground-floor detector covers the whole building.

Mount CO detectors by the instructions, not by eye
Mount a CO detector where CO can actually form: near a boiler, fireplace, gas water heater, or water heater, or near bedrooms. Don't block it, don't mount it next to a vent, and don't treat it as a substitute for chimney inspections and ventilation. The exact height and distance depend on the manufacturer's instructions: often that's a wall at eye level, roughly 5 to 6 feet off the floor.

Interconnected detectors
Many certified detectors can be interconnected so that one alarm sounds every unit's siren. That works without Home Assistant. If your model has Wi-Fi or Zigbee integration, HA gets an extra signal: but the interconnected detector network is still the foundation.

How to connect a detector to Home Assistant

You have three realistic routes. Pick the one that doesn't weaken the certified protection.

1. A certified detector with HA integration: Nest Protect, FireAngel Wi-Fi, Netatmo Smoke: the device has its own siren and reports its state to HA over the cloud or a local integration.

2. A certified detector plus a separate smart sensor: the certified detector protects lives, and a separate Zigbee sensor nearby feeds only HA notifications. The smart sensor never replaces the certified detector.

3. A certified detector alone, no HA: also correct. The detector works on its own. You add HA later once you have an integration: not the other way around.

What not to do

Don't buy just a Zigbee smoke sensor off a marketplace site and treat it as the home's only protection. Don't mute a certified detector through automation. Don't add a condition like "notify only when person.anna is not_home." During a fire, location-based conditions make no sense.

Which entities we're watching

Once your detectors are added, check the entities in Developer Tools. Smoke, CO, and gas detectors usually have a device_class of smoke, carbon_monoxide, or gas. Example names below.

Entity Meaning
binary_sensor.hallway_smoke Smoke detected: hallway
binary_sensor.bedroom_co CO detected: bedroom
binary_sensor.kitchen_gas Gas detected: kitchen
group.smoke_co_gas_sensors A group of every life-safety detector, for the dashboard

Separate TTS messages for life-safety hazards
Smoke: "Leave the building per your plan." CO: "Go outside for fresh air and follow the detector's instructions." Gas: "Do not use electrical switches. Follow your plan and the device's instructions." Don't say "check the notification on your phone" as the priority.

Natural gas and LPG have different mounting requirements: always follow the manufacturer's instructions. Log the install and replacement dates; detectors have a sensor end-of-life. If your manufacturer supports interconnection: test it. HA being offline doesn't mean a detector's own siren has stopped working. If the alarm comes from a certified detector, its own siren should keep working independently of HA.

Order of response for a smoke, CO, or gas alarm

1. The certified detector's siren: works instantly, with no HA, no internet.

2. Human response: act per the table above: evacuate, ventilate safely, call for help.

3. Home Assistant: calls script.life_alarm: push, SMS, an extra HA siren.

4. Escalation from Lesson 3: repeats, acknowledgment, a second channel: with no duplicated logic.

Home Assistant doesn't put out a fire, doesn't vent gas, and doesn't silence the detector. All it can do is notify more people, faster than the in-home siren alone: as long as the channels are working.

Don't build a "rescue" automation for gas
During a gas alarm, don't assume Home Assistant should turn on fans, lights, relays, or other electrical devices. Handle the human response and the gas system according to the detector's instructions, emergency-service guidance, and safety rules. HA can send a notification, but it shouldn't stand in for the emergency procedure.

Helpers and a sensor group

input_boolean:
  smoke_co_gas_test:
    name: "Smoke/CO/gas alarm test"
    icon: mdi:smoke-detector-alert

group:
  smoke_co_gas_sensors:
    name: "Smoke, CO, and gas detectors"
    entities:
      - binary_sensor.hallway_smoke
      - binary_sensor.bedroom_co
      - binary_sensor.kitchen_gas

smoke_co_gas_test runs the same notification chain as a real detector, but with no smoke, gas, or CO in the air. Use it to test escalation: do a physical detector test with the TEST button on the device.

Automation: smoke, CO, or gas detected

This automation is simpler than the flooding one: there's no valve, no presence conditions, no delays. The detector goes to on → you immediately call script.life_alarm.

automation:
  - alias: "Security: smoke, CO, or gas detected"
    description: "Triggers the life alarm: no presence conditions, no delays"
    mode: queued
    triggers:
      - trigger: state
        entity_id:
          - binary_sensor.hallway_smoke
          - binary_sensor.bedroom_co
          - binary_sensor.kitchen_gas
          - input_boolean.smoke_co_gas_test
        to: "on"
    actions:
      - action: script.turn_on
        target:
          entity_id: script.life_alarm
        data:
          variables:
            title: >
              {% if trigger.entity_id == 'input_boolean.smoke_co_gas_test' %}
              TEST: smoke/CO/gas alarm
              {% elif trigger.entity_id.startswith('binary_sensor.hallway_smoke') or 'smoke' in trigger.entity_id %}
              ALARM: smoke detected
              {% elif 'co' in trigger.entity_id %}
              ALARM: carbon monoxide (CO) detected
              {% elif 'gas' in trigger.entity_id %}
              ALARM: gas detected
              {% else %}
              ALARM: smoke/CO/gas hazard
              {% endif %}
            message: >
              {% if trigger.entity_id == 'input_boolean.smoke_co_gas_test' %}
              This is a smoke/CO/gas alarm test. Check the push, the HA siren, and the escalation.
              The household should know this is a drill.
              {% else %}
              {{ state_attr(trigger.entity_id, 'friendly_name') or trigger.entity_id }}.
              If the alarm is from a certified detector, its own siren should be working independently of HA. Follow the plan: people first, then the app.
              {% endif %}
      - choose:
          - conditions:
              - condition: template
                value_template: "{{ trigger.entity_id == 'input_boolean.smoke_co_gas_test' }}"
            sequence:
              - delay:
                  seconds: 2
              - action: input_boolean.turn_off
                target:
                  entity_id: input_boolean.smoke_co_gas_test

Notice: there's no conditions section. That's deliberate. For a life-safety hazard, you don't filter the alarm by home mode, presence, or time of day. The test helper triggers the alarm with a TEST prefix in the title, then turns itself off after two seconds: you can use it repeatedly, like a test button.

The automation can use mode: queued. The script.life_alarm script is independent from flooding and intrusion: smoke won't be dropped just because another type of alarm is in progress.

HA doesn't silence the detector
The automation never calls turn_off on the smoke detector or mutes its siren. Once the situation's under control, you reset the device manually per the manufacturer's instructions. The life_alarm_acknowledged helper only clears the HA escalation: not the physical detector.

Dashboard: smoke, CO, and gas

type: entities
title: Smoke, CO, and gas
entities:
  - group.smoke_co_gas_sensors
  - input_boolean.smoke_co_gas_test
  - input_boolean.life_alarm_acknowledged
  - script.security_alarm_stop

Keep the test toggle next to the alarm acknowledgment. After a test, run script.security_alarm_stop if the escalation didn't clear on its own.

How to test, step by step

1. Every six months: press the TEST button on each certified detector. Check that the siren sounds.

2. Check the expiration date and battery status on the detector's casing. Note the replacement date in your calendar.

3. Tell the household about the HA test. Turn on smoke_co_gas_test on the dashboard.

4. Check the urgent push, the HA siren, and the escalation. Acknowledge through life_alarm_acknowledged.

5. If your detector has HA integration: after the physical test, check that the entity goes to on and back to off once reset.

Don't test with an aerosol or cigarette smoke
Use the TEST button on the detector, or a test spray recommended by the manufacturer, for a physical test. Don't blow smoke at a Zigbee sensor "to check the integration": that's not a valid test and can damage the sensor.

Replacement and expiration dates
You typically replace a smoke detector about every 10 years, CO detectors more often: check the label. An expired detector can have a full battery and still fail to detect a hazard. Log the dates in the risk map from Lesson 1.

An offline detector still needs monitoring
HA integration doesn't guarantee a detector always reports its state. In Lesson 10 we'll come back to battery monitoring, the unavailable state, and periodic testing. For smoke and CO, a missing report from HA doesn't mean the certified detector has failed: but it does mean you've lost the extra layer of notification.

Common mistakes

A single Zigbee sensor instead of a certified detector: you have an entity in HA, but no life-safety protection.

An "only when away from home" automation: during a nighttime fire, nobody gets a push.

A "cooking mode" that disables the alarm: solve false alarms by mounting, not by muting in HA.

No CO detector near bedrooms and combustion sources: CO has no smell and no smoke: you won't notice it without a detector.

A separate escalation for smoke: you're duplicating the Lesson 3 logic instead of calling script.life_alarm.

An expired detector showing "OK" in HA: the entity exists, but the chemical sensor no longer works.

What not to do

Don't treat HA as the only smoke, CO, or gas alarm.

Don't mute or delay the alarm through automation: not the physical one, not HA's.

Don't test with cigarette smoke or aerosol without the manufacturer's recommendation.

Don't turn on fans, lights, or relays through HA during a gas alarm.

Don't hunt for the fire's source instead of evacuating: people's safety first, technology second.

Assignment: an HA layer for smoke, CO, and gas

To do

☐ Check the risk map from Lesson 1: where do you have certified smoke, CO, and gas detectors.

☐ If you're missing a CO detector near bedrooms or smoke coverage in the hallway: plan to buy a certified device.

☐ Press the TEST button on every certified detector. Log the test date.

☐ Connect the detectors to HA, or create a group with the entities you already have.

☐ Create the smoke_co_gas_test helper and the smoke_co_gas_sensors group.

☐ Add the automation calling script.life_alarm: with no presence conditions and no delays.

☐ Test smoke_co_gas_test and the alarm acknowledgment.

☐ Log the detectors' expiration dates and battery replacement plan in your risk map.

☐ Show the household what to do during a smoke, CO, or gas alarm: before you run the HA test.

Key takeaways

A certified detector with its own siren protects lives without HA.

Home Assistant adds notification and escalation: it does not replace the detector.

For smoke, CO, and gas, you don't filter the alarm by home mode or presence.

Evacuate first, dashboard second: during an alarm, you don't start with the app.

A physical test = the TEST button on the detector. An HA test = a helper with no smoke in the air.

What's next

In Lesson 6, we'll move on to doors, windows, the gate, and the garden gate. There, Home Assistant returns to a role it handles well: reminding you about an open door, tying an alert to your home mode, and logging events: without pretending to be a professional alarm system.

If you have certified detectors with their own sirens and an automation calling script.life_alarm, you have the right HA layer for the most serious hazards in your home.

Finished this lesson?