Safety is paramount, and integrating smoke alarms into your Home Assistant setup is a crucial step in ensuring your home's safety. This guide provides a comprehensive overview of how to integrate smart smoke alarms into your Home Assistant dashboard and create related automations.
Integrating Your Smoke Alarms
The first step is purchasing smart smoke alarms and integrating them into your smart home system. Both Wi-Fi and Zigbee-based smoke alarms are widely available. While Zigbee devices typically cost more, they offer several benefits, including lower battery consumption, less interference with home Wi-Fi networks, and easier integration into Home Assistant. I highly recommend buying Zigbee devices whenever possible.
Inspect and Note the Devices
After integrating the devices into Home Assistant, identify the specific sensors they expose. Typically, smart smoke alarms will expose three different sensors:
Smoke Detected State: The most important sensor, usually presented as a binary sensor. Use this for alarming.
Battery Sensor: Some devices report this as a battery level percentage, while others display a binary "OK" or "not OK" state. I strongly recommend purchasing devices that report the battery level as a percentage. This allows you to monitor the battery level and take proactive steps to replace batteries before they run out.
Creating a Group (Helper) for the Binary Sensors
Here's my approach to monitoring the alarms:
I use a binary sensor group to monitor all smoke alarms collectively. I have four smoke alarms in my house. I don't need to know whether each one is on or off all the time. I just need to be alerted if any one of them goes off.
I have a home safety dashboard where I monitor all the alarms individually and their battery levels.
For smoke detection, we're going to create a group for binary sensors. Make sure that you're adding the correct sensor for each smoke alarm to the group. Add the smoke sensor, not the tamper sensors (as they might also be binary).
If you have additional home safety sensors, such as a carbon monoxide sensor, you could add all of these into one broader safety group. This way, you can minimize the number of things you have to monitor and just get an alarm if any sensor condition is positive.
Home Assistant allows you to nest groups within groups. In the safety sensor group, I didn't have to manually list each smoke sensor. Instead, I added the smoke sensor group as its own entity and added the carbon monoxide sensor on top of it.
In this default configuration, the group will switch to "on" if any smoke alarm is "on". I imagine that essentially all users would prefer this configuration.
Dashboard Elements For Smoke + CO
This is a dashboard element showing the alarm state collectively and the carbon monoxide sensor. Replace the entities with your own.
1type: custom:button-card
2entity: binary_sensor.smoke_alarms
3name: Smoke Alarms (All)
4icon: mdi:smoke-detector
5show_state: true
6styles:
7 card:
8 - padding: 12px
9 state:
10 - padding-top: 8px
11state:
12 - value: "off"
13 color: var(--success-color)
14 - value: "on"
15 color: var(--error-color)
Quadrant Display For 4 Smoke Alarms With Color-Coding

Aggregating Battery Statuses Into One Reporting Entity
As mentioned earlier, different smoke sensors report their battery states in different ways. Just as with the smoke alarm sensing, we might want to try to reduce this to one sensor for convenience.
You can add a template like this into your configuration to achieve this
1yaml
2template:
3 - binary_sensor:
4 name: "Smoke Detector Batteries Status"
5 state: >
6 {% set bedroom = states('sensor.bedroom_smoke_sensor_battery')|float(0) %}
7 {% set office = states('sensor.office_smoke_detector_battery')|float(0) %}
8 {% set living_room = states('sensor.living_room_smoke_detector_battery')|float(0) %}
9 {% set kitchen = states('binary_sensor.kitchensmokedetector_battery_low') %}
10 {{
11 bedroom <= 10 or
12 office <= 10 or
13 living_room <= 10 or
14 kitchen == 'on'
15 }}
16 device_class: battery
Battery level row with conditional styling for alerts
This card lists the battery levels for the sensors and will only show red if any are below 10% or it's a negative binary state.
1`yaml
2type: custom:button-card
3show_name: false
4show_icon: false
5show_state: false
6custom_fields:
7 battery: >
8 [[[
9 const bedroom = states['sensor.bedroom_smoke_sensor_battery'].state;
10 const office = states['sensor.office_smoke_detector_battery'].state;
11 const living = states['sensor.living_room_smoke_detector_battery'].state;
12 const kitchen = states['binary_sensor.kitchensmokedetector_battery_low'].state;
13
14 const kitchenStatus = kitchen === 'off' ? '✓' : '⚠';
15
16 return `BR: ${bedroom}% | OF: ${office}% | LR: ${living}% | KT: ${kitchenStatus}`;
17 ]]]
18styles:
19 card:
20 - padding: 8px
21 custom_fields:
22 battery:
23 - font-size: 14px
24 - text-align: center
25 - color: white
26state:
27 - operator: template
28 value: >
29 [[[
30 const bedroom = Number(states['sensor.bedroom_smoke_sensor_battery'].state);
31 const office = Number(states['sensor.office_smoke_detector_battery'].state);
32 const living = Number(states['sensor.living_room_smoke_detector_battery'].state);
33 const kitchen = states['binary_sensor.kitchensmokedetector_battery_low'].state;
34
35 return bedroom <= 10 || office <= 10 || living <= 10 || kitchen === 'on';
36 ]]]
37 styles:
38 card:
39 - background-color: "#ea4335" # Red
40 - operator: default
41 styles:
42 card:
43 - background-color: "#34a853" # Green
Driving Automations/Alarming
Finally, we get to the question of what to do about alarming. Clearly this is actually the most important part of setting up smoke alarms!
I'm using the helper grouping again in order to simplify the process of setting up an automation. I'm departing from the principle that if any smoke alarm is positive or the carbon monoxide sensor, I'll want to know about it anywhere in the house immediately. So my automation will be triggered based upon a true state on the group sensor.
You can use YAML or the Visual builder to create an automation like this.
Trigger:
If the state of my binary sensor safety group turns to ON, which would happen if any constituent sensor were to become on:
Action:
Alarming.
Then my warning sirens (another entity group) will toggle to on:
You probably also want to add additional alarming to take advantage of the fact that unlike a conventional fire alarm, smart fire alarms can notify you wherever you are.
If you are at home when a smoke alarm triggers, it's pretty obvious that you're going to be alerted to the alarm by the alarms in your house if you have them, the physical alarm on the device, or other factors.
But you might wish to configure push emergency notifications on all your connected devices that will send through a designated emergency alerting channel in the event that this state becomes positive.
Low Battery Warnings
Finally, let's add a bit of notifications to the battery level monitoring, seeing as we have it as an option.
If you have smoke alarms that are all of the same type and report their sensor type consistently, then it's easier to do this. This is a great reason, in fact, to buy your smoke alarms in a batch - You'll know that they have the exact same functionality and sensors (I just wish I had thought of this beforehand!)
Let's create a sensor group for the battery levels:
I'll call this one "smoke alarm battery levels":
You could use the minimum value as the "type":
Low Battery Notifications
1yaml
2alias: "Low Battery Alert - Safety Devices"
3description: "Notify when smoke or CO detector batteries are low"
4trigger:
5 # Numeric sensors
6 - platform: numeric_state
7 entity_id:
8 - sensor.bedroom_smoke_sensor_battery
9 - sensor.office_smoke_detector_battery
10 - sensor.living_room_smoke_detector_battery
11 - sensor.carbon_monoxide_alarm_battery
12 below: 10
13 # Binary sensor for kitchen (special case)
14 - platform: state
15 entity_id: binary_sensor.kitchensmokedetector_battery_low
16 to: "on"
17
18condition:
19 # Avoid notification spam by checking if the battery is not "unknown" or "unavailable"
20 - condition: template
21 value_template: >-
22 {{ not is_state(trigger.entity_id, 'unknown') and
23 not is_state(trigger.entity_id, 'unavailable') }}
24
25action:
26 - service: persistent_notification.create
27 data:
28 title: "⚠️ Low Battery Alert"
29 message: >-
30 {{ trigger.to_state.attributes.friendly_name }} is at
31 {% if trigger.entity_id == 'binary_sensor.kitchensmokedetector_battery_low' %}
32 a low level
33 {% else %}
34 {{ trigger.to_state.state }}%
35 {% endif %}
36 and needs attention!
37
38 - service: notify.mobile_app_your_phone_name # Replace with your actual mobile app notify service
39 data:
40 title: "⚠️ Low Battery Alert"
41 message: >-
42 {{ trigger.to_state.attributes.friendly_name }} is at
43 {% if trigger.entity_id == 'binary_sensor.kitchensmokedetector_battery_low' %}
44 a low level
45 {% else %}
46 {{ trigger.to_state.state }}%
47 {% endif %}
48 data:
49 priority: high
50 channel: Safety # Optional: Create a specific notification channel for safety alerts
Automation specialist and technical communications professional bridging AI systems, workflow orchestration, and strategic communications for enhanced business performance.
Learn more about Daniel