UniFi Protect smoke or CO alarm heard notifications on your phone.
Get a Highest-priority push notification when a UniFi Protect camera hears a smoke or carbon monoxide alarm going off, with a button to open the event clip.
Three steps to your first push
Install the recipe
One click in Studio gives you a personal webhook URL.
Paste your URL into UniFi Protect
Add it as a webhook for Smoke Alarm.
Get a push on your phone
With the text, sound and buttons from the recipe.
How to set up the UniFi Protect smoke alarm webhook
- Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
- In UniFi Protect, go to Settings > Alarm Manager and click Add Alarm.
- Set the trigger to Smoke Alarm and select the camera(s) it should watch.
- Under actions, add a Webhook with method POST and paste your webhook URL?tz=Europe/Amsterdam as the URL, using your own time zone.https://••••••••/•••••••• your personal URL, shown after install
- Save the alarm, then press Test to send a sample event.
- Add your time zone to the webhook URL so the notification shows the local time:
- ```
- your webhook URL?tz=Europe/Amsterdam
- ```
- Use your own [time zone name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). UniFi only sends a UTC timestamp; without `tz`, the time is left out of the message.
- Alarm Manager sends every alarm to the same webhook shape. This recipe only reacts when the alarm contains a smoke or CO alarm trigger, so it stays quiet if you point other alarms at the same integration.
- Give the alarm a descriptive name, like "Kitchen Smoke". The payload only identifies the camera by its MAC address, so the alarm name is what tells you where it happened.
- The **View clip** button uses `eventLocalLink`, which only resolves on your home network (and shows a certificate warning). Away from home it won't load.
What runs when the webhook arrives
Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.
The UniFi Protect alrmSmoke webhook
This is what UniFi Protect sends to your URL for smoke alarm. It is a sample, trimmed to the fields recipes use.
UniFi Protect smoke or CO alarm heard notifications: questions
Does this work on iPhone and Android?
Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.
Do I need to write code?
No. Install the recipe in Studio, paste your webhook URL into UniFi Protect and you are done. The code is there if you want to change the text, the sound or the buttons.
Can I change what the notification says?
Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.
What does it cost?
JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.
UniFi Protect on your phone in two minutes.
Install the recipe, paste one URL, done. Free for 30 days, no credit card required.