The ultimate safety suite for Aqara (JY-GZ-01AQ) smoke detectors in Home Assistant.
Turn your individual Zigbee smoke detectors into a professional, interconnected fire alarm system without buying an expensive hub.
Why this blueprint?
Most Zigbee smoke detectors are âdumbâ isolated devices. If a fire starts in the attic, you wonât hear it in the bedroom. This blueprint fixes that.
Key Features (Ultimate Edition)
Interconnected Alarms: If one detector triggers, ALL detectors in your home will sound their sirens.
Pre-Alarm Verification: Prevents panic from burnt toast. You get a phone notification first (âIs this real?â). If you donât answer, the main alarm triggers.
Guided Self-Test Wizard: A specialized interactive mode. You trigger the test in HA, and your phone guides you room-by-room to physically press the buttons.
Smoke Spray Mode: Optional post-test phase to safely use canned smoke spray without triggering the full evacuation plan.
Watchdog Protection: If a REAL fire is detected during a self-test, the test is immediately aborted, and the full alarm sounds.
Custom Actions: Fully customizable main alarm actions (turn on lights, unlock doors, open blinds, etc.).
Requirements
- Home Assistant (2024.10 or newer).
- Aqara Smoke Detectors (Model
JY-GZ-01AQ) connected via Zigbee (ZHA or Zigbee2MQTT). - Home Assistant Mobile App installed on your phone.
- Mobile Settings (CRITICAL):
- iOS: Enable âCritical Alertsâ in iOS Settings â Home Assistant â Notifications.
- Android: Notifications are sent to channel
alarm_stream. Configure this channel in Android Settings to âOverride Do Not Disturbâ.
Installation
Option 1: Direct Import (Recommended)
- Click the badge below to import the blueprint directly into your Home Assistant instance.
- Click âPreview Blueprintâ and then âImport Blueprintâ.
Option 2: Manual Installation
- Copy the code from the
.yamlfile. - Go to your Home Assistant config folder:
/config/blueprints/automation/xat0x/. - Create a file named
xat0x-aqara-smoke-linker-ultimate.yamland paste the code. - Go to Developer Tools â YAML â Reload Automations.
Configuration Guide
Create a new automation using this blueprint. The settings are organized into collapsible sections:
1.
Devices & Triggers
- Smoke Detectors: Select ALL your Aqara smoke entities here.
- Test Start Trigger: Create a Helper (Button or Toggle) in Home Assistant. Select it here. Pressing this button starts the Self-Test Wizard.
- Alarm Notification Devices: Phones for the whole family (Critical Alerts).
- Maintenance Device: The specific phone that will receive the interactive test instructions.
2.
Pre-Alarm
- Enable Pre-Alarm: Recommended ON.
- Timeout: Time (default 15s) to confirm âFalse Alarmâ on your phone before the loud sirens and main actions trigger.
3.
Main Alarm
- Main Alarm Actions: This is where you define your evacuation plan.
- Example: Add actions to Turn on all lights 100%, Unlock Nuki/Yale locks, Turn off HVAC/Gas.
- Mute Duration: How long sirens stay silent when you press âMuteâ.
4.
Self-Test & Spray
- Enable Self-Test: Required for the wizard.
- Enable Smoke Spray Test: If enabled, the wizard asks after the physical check if you want to perform a real smoke test.
How it works
Scenario 1: Burnt Toast (Pre-Alarm)
- Smoke is detected in the Kitchen.
- NO sirens go off yet (if Pre-Alarm is enabled).
- Your phone gets a Critical Notification: âSmoke detected in Kitchen. Confirm Fire?â
- You press âFalse Alarmâ.
- The system resets. The house stays quiet.
Scenario 2: Real Fire (Main Alarm)
- Smoke is detected in the Garage.
- You donât answer the notification within 15 seconds.
- FULL ALARM triggers.
- ALL Aqara detectors start sirens.
- Main Alarm Actions run (Lights turn on, doors unlock).
- Phones receive: âFIRE - EVACUATE!â.
Scenario 3: Monthly Maintenance
- You press the âTest Start Triggerâ (Helper button) in your Dashboard.
- Your phone receives: âSmoke Detector Self-Test (1/6)â.
- You walk to the indicated room (e.g., Living Room) and press the physical button on the detector.
- The system detects the beep, logs it, and notifies you to move to the next room.
- (Optional) At the end, you can choose to run a âSmoke Spray Testâ.
FAQ
Q: How do I start the Self-Test?
A: Unlike older versions, you do not start by pressing a smoke detector button. You must create an input_button helper in Home Assistant, assign it in the Blueprint settings (âTest Start Triggerâ), and press that helper in your dashboard to begin the wizard.
Q: I pressed âMuteâ on my phone, but the sirens are still going?
A: Zigbee traffic allows limited bandwidth. The blueprint uses an aggressive loop to send the mute command repeatedly. Please wait 5-10 seconds for the network to catch up.
Q: What happens if I am testing and a real fire starts?
A: The âWatchdogâ feature is always active. If a detector other than the one you are currently testing reports smoke, the test aborts immediately, and the full alarm triggers.
Disclaimer
Use at your own risk.
This blueprint is provided âas isâ, without warranty of any kind. The author (Xat0X) cannot be held responsible for any failure of the system to operate as expected.
- This system is NOT a certified fire alarm system.
- Always ensure you have working, standalone smoke detectors as a primary safety measure.
- Home Assistant, Zigbee networks, and WiFi can experience downtime; do not rely solely on this software for life-safety.
Created with
by Xat0X
*** credits for voco his blueprint where i get all the inspiration from Aqara Smoke Detector Linker for Test and Alarm (JY-GZ-01AQ)
Main differences:
1.
Native iOS âCritical Alertâ Support
The Xat0X blueprint includes specific logic to bypass the silent switch on iPhones, ensuring you wake up during a fire.
- Volume Control: It includes a dedicated input slider (
ios__critical_volume) to set the specific volume level for critical alerts (0.0 to 1.0), which overrides the phoneâs current volume. - Interruption Levels: Explicitly sets
interruption-level: criticalin the notification payload.
2.
Two-Stage âPre-Alarmâ Verification
It implements a âBurnt Toastâ prevention logic to avoid unnecessary panic.
- Phase 1 (Pre-Alarm): When smoke is detected, it sends a high-priority notification asking âIs this a fire?â.
- Phase 2 (Evacuation): If you confirm âYesâ or do not respond within the timeout (default 15s), it triggers the full siren linkage on all detectors and runs critical actions (like unlocking doors).
- False Alarm Handling: If you click âFalse Alarm,â it immediately attempts to mute the triggering detector.
3.
Advanced Zigbee âWake-Upâ & Mute Logic
Aqara smoke detectors are battery-powered Zigbee devices that sleep deeply, often missing âMuteâ commands sent from Home Assistant.
- Heartbeat Wake-Up: The automation toggles the
switch.*_heartbeat_indicatorentity in parallel with alarm logic. This forces the device radio to wake up to receive commands. - Retry Mute Loop: When you press âMute,â the blueprint enters a
whileloop (configurable duration, default 120s). It keeps sending the mute command repeatedly until the device actually stops sounding, ensuring the signal is eventually received.
4.
Interactive Self-Test with Summary Report
The maintenance mode is more robust and provides a âReport Cardâ at the end.
- Wizard: It guides you room-by-room with âTest Now,â âSkip,â or âStopâ buttons.
- Summary: At the end of the test, it generates a notification summarizing the results (e.g., âTotal: 5, Tested: 4, Skipped: 1, Reason: Completedâ). This confirms that you didnât miss a room.
5.
Full Localization & Customization
Almost every piece of text sent to the phone is editable via the blueprint inputs.
- You can translate titles, messages, and button labels (e.g., âFalse Alarmâ, âEvacuateâ, âTest Nowâ) into your native language without editing the code manually.
- It includes specific customizable âHint Textâ for iOS users (who need to long-press notifications to see buttons).