Starting a flow from an external app's notification

Hi! Long time Homey user, first time asker :slight_smile: 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

Yes you can using Macrodroid sending a webhook.
Example:

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:

THEN
Choose Applications > Open Website/HTTP GET

The webhook looks like this:
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, next to “cloudId”

Example

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

2 Likes

Thanks a lot! :smiley:

1 Like