# Starting a flow from an external app's notification

**URL:** <https://community.homey.app/t/starting-a-flow-from-an-external-apps-notification/59400>\
**Category:** Questions & Help\
**Created:** [January 29, 2022, 8:40pm UTC](https://community.homey.app/t/starting-a-flow-from-an-external-apps-notification/59400 "2022-01-29T20:40:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikael\_Ilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikael_ilar/32/50941_2.png) [@Mikael\_Ilar](https://community.homey.app/u/Mikael_Ilar)\
**Post date:** [January 29, 2022, 8:40pm UTC](https://community.homey.app/t/starting-a-flow-from-an-external-apps-notification/59400/1 "2022-01-29T20:40:28Z")

</div>

Hi! Long time Homey user, first time asker 🙂 I have been searching around a bit but could not find an answer that i felt matched my question;

I work as a firefighter and when i’m on duty i am usually at home and then drive to the fire station. There can of course be a call in the middle of the night so i would like to make Homey turn on the lights for me (and maybe som other stuff). I always wear a pager where i get all my calls but i also get a notification in my phone, is there a way to start a flow when i recieve a notification from an external app? Using Android devices (Samsung)

Thanks in advance!

Mikael  
Sweden

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 29, 2022, 9:09pm UTC](https://community.homey.app/t/starting-a-flow-from-an-external-apps-notification/59400/2 "2022-01-29T21:09:27Z")

</div>

Yes you can using Macrodroid sending a webhook.  
Example:

> [@Oranje Doelpunt/Goal alert](https://community.homey.app/t/oranje-doelpunt-goal-alert/48456):
>
> Vanwege een vraag van iemand heb ik een doelpunt alert gemaakt voor Homey i.c.m. Android. Dan kun je bijv. je hele huis en tuin oranje laten knipperen whatever. Benodigde telefoon apps: Macrodroid KNVB Oranje Maak met Macrodroid een nieuwe macro. Triggers: Voeg een trigger toe, ga naar “Apparaat gebeurtenis”\>“Notificatie”, kies “Notificatie ontvangen”, selecteer “kies app(s)”, selecteer de KNVB Oranje app; De trigger is: Notificatie ontvangen. Bevat: ]- Acties: ALS Notificatie aan…

**Translated:**

Required phone apps:

- MacroDroid
- KNVB Orange (read: your app which sends the notifications)

Create a new macro with Macrodroid.  
Triggers:

Add a trigger, go to “Device event” \> “Notification”, choose “Receive notification”, select “choose app(s)”, select the KNVB Orange app;  
The trigger is: Notification received. Contains: ]-

Actions:  
IF  
Notification present. Contains: [1]- (app: KNVB Oranje)  
(The following is optional)  
OR  
Notification present. Contains: [2]- (app: KNVB Orange)  
OR  
Notification present. Contains: [3]- (app: KNVB Oranje)  
OR  
Notification present. Contains: [4]- (app: KNVB Oranje)  
OR  
Notification present. Contains: [5]- (app: KNVB Oranje)  
… etcetera for even higher scores.

Example:

 ![oranje-goal_macro](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d800487f6ba776c54486aeab28f9054d10857ef.jpeg)

THEN  
Choose Applications \> Open Website/HTTP GET

The webhook looks like this:  
[https://YourAthomID.connect.athom.com/api/manager/logic/webhook/orange?tag=goal](https://YourAthomID.connect.athom.com/api/manager/logic/webhook/orange?tag=goal)  
(And optionally add a popup message to check)  
YourAthomId can be found [here](https://tools.developer.homey.app/tools/system), next to “cloudId”

Example

 ![webhook_ex](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/f/9fc2068e9b83788581ef85022f9315a2a9a8bec6.jpeg)

homey:  
On Homey you create the following flow, at DAN / THEN you can indulge yourself with light / sound effects, etc.:

---

<div class="post-metadata">

**Author:** ![Mikael\_Ilar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikael_ilar/32/50941_2.png) [@Mikael\_Ilar](https://community.homey.app/u/Mikael_Ilar)\
**Post date:** [January 30, 2022, 1:25am UTC](https://community.homey.app/t/starting-a-flow-from-an-external-apps-notification/59400/3 "2022-01-30T01:25:29Z")

</div>

Thanks a lot! 😃
