Aqara smoke detector linkage alarm

When you manually turn on the buzzer nothing special happens. The alarm is triggered by the sensor detecting smoke. About the group you are right, there is no possibility to currently use a selector for a group as far as I can tell. It is also not possible to just use “multiple: true” here, since for whatever reason that will not work for notification service. All I could offer (at least temporarily) is to enable multiple inputs for devices to be notified (you can leave them empty if not needed).

Edit: I believe I impemented notifying multiple devices correctly by using repeat for each device to create notifications.

1 Like

Many thanks - this is great!

I’m brand new to Zigbee, what do you think is the level of effort to port this to working with ZHA?

We’re close to getting this smoke detector working in ZHA: [Device Support Request] Aqara Smoke Detector JY-GZ-01AQ · Issue #1828 · zigpy/zha-device-handlers · GitHub

Then maybe we can figure out how to get this Blueprint working for ZHA

1 Like

I’m curious why does this need to be enabled?

If you set the manual alarm to enable on the device it won’t actually sound the alarm unless linkage alarm is enabled.

Oh interesting thanks for the info!

Do you use MQTT? there I can just flip the switch to linkage and then trigger the alarm - which was the reason why I did buy this one for sleeping-rooms.

What do you mean? I use zigbee2mqtt, so yes, this uses mqtt. But triggering the alarm does not automatically trigger other devices (the device does not have that logic). You still need N automation (which is also what the aqara hub does).

Hi,

It is a good Blueprint. However, how can I test this blueprint. I try to manually alarm or setting smoke status to be detected or even click run automation, but no notification sent.

Triggering the manual alarm won’t do anything, since the automation is only triggered when a smoke detector detects actual smoke. Editing the status of the sensor in the backend won’t really work, I also tried that when testing. You could try sending an event, but I am not sure if that would work. The only thing that worked for me was actually creating smoke to trigger the alarm on the device (with a candle for example).

Manually triggering the automation won’t work either because there is no valid trigger device id if no actual device has triggered the automation.

Hey, I really want to get this to work, seems perfect for my usage.

however, They don’t link or even send the notification.

I’ve tried power cycling HA, the detectors, z2m, no dice.

this is how I set it up

  1. added the smoke detectors to rooms and enabled link

  2. clicked import blue print

  3. add automation and selected the blue print

  4. all 3 detectors are found and added, then select 2 devices for notifications and filled out the message to send.

  5. blew some vape smoke into the sensor, it sounds and shows smoke detected in z2m and HA but no text and no link.

IDK what to look for in the logs, I really dont use blue prints much and blue prints seems to not show triggers like in custom automations which is how i normally troubleshoot

any help would be appreciated.

Hello,

I have the same, I trigger an alarm by smoke detector test spray, the smoke detector detects and HA triggers the other smoke detectors, all give a signal of themselves.
I just don’t get a notification on my IOS Devices, this is where I have my iPhone and iPad set up.
If I understand it correctly, the HA automation is Unable to resolve the webhook ID from the device ID.

Log from HA automation:

## hoose/1/sequence/1
Executed: 20. Juli 2023 um 16:33:52
Error: Unable to resolve webhook ID from the device ID
## hoose/1/sequence/1/repeat/sequence/0
Executed: 20. Juli 2023 um 16:33:52
Error: Unable to resolve webhook ID from the device ID
1 Like

Yeah, there seems to be a change how the notifications are handled. I have a fix already, going to update soon. Sorry guys

Thank you very much for your quick feedback!

Is it perhaps also possible to add an optional task in which a service can be executed after notification?

So i think I found my issue.

for me i must have been tired when i thought i saw smoke detected in HA. that was actually not the case.

in reality z2m and ha didn’t get the message from the smoke detector unless i hit refresh.

I read the z2m docs for the specific device and saw it required a minimum zigbee cordinator firmware which i was way behind on.

I updated and repaired the devices and finally it works in HA.

in the mean time I made my own version of your automation without link, just home assitant triggering the others.

I will test yours tonight.

I noticed The notification problem for ios when setting up my wifes phone.

actionName was replaced by action (or atleast the actionable notifications docs for HA still says actionName instead of action), and some parts of notifications seem to be no longer platform dependent if I understand correctly.

either way I help test this blue print with both android and ios devices

Sorry, but I am still new to the HA environment, how and where will the update be made available? Will it be here in the forum, through an update of your first post?

Yes, I updated it now (the code in the original post) for the notifications to work again.

I haven’t tested the notifications on iOS since I only have an android, but I expect it to work (somewhat) anyway. Feel free to give feedback to further improve.

The linkage in the settings of the smoke detectors is necessary, otherwise you cannot manually trigger the smoke alarm on a smoke detector.

Also, there might be a small delay when manually triggering a smoke detector (so when one goes off it might take a few seconds before another one is activated since they sleep most of the time to save battery)

Nevermind… probably haven’t got the latest version of the blueprint…

HA needs update functionality within blueprints…

1 Like