# \[TUTORIAL\]\[HOW TO\] Automatic Presence setting with Macrodroid (Android)

**URL:** <https://community.homey.app/t/tutorial-how-to-automatic-presence-setting-with-macrodroid-android/146132>\
**Category:** Tutorials\
**Tags:** flow, homey-pro, android, homey-cloud, location\
**Created:** [November 29, 2025, 6:17pm UTC](https://community.homey.app/t/tutorial-how-to-automatic-presence-setting-with-macrodroid-android/146132 "2025-11-29T18:17:29Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [November 29, 2025, 6:17pm UTC](https://community.homey.app/t/tutorial-how-to-automatic-presence-setting-with-macrodroid-android/146132/1 "2025-11-29T18:17:29Z")

</div>

→ Applies to any Homey model ←

### An alternative to Homey Presence, no Homey app needed.

#### It uses a phone app which can trigger on certain geofences and or wifi, and which is able to send webhooks as a result.

### Usecase:

In order to have a flow set your status home/away, you can use the _ **webhook** _ and a specific flow trigger: Logic card “Event x is received”;  
This sends a command to Homey (all models incl. Homey Cloud), and you can have a flow ‘listening’ to it.

## Webhook

- This is the format to use:

```auto
https://webhook.homey.app/my_homey_id/my_event_name?tag=my_tag

```

#### 3 parts for you to change:

1. `my_homey_id`:  
go here [https://my.homey.app/settings/system/general](https://my.homey.app/settings/system/general) and find your HomeyID in the “Cloud” section. That long number is part of the web app link as well.  
 ![Screenshot_20251129_175436_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/d/2d19afa6036e9f8f536becd74897b308b5b969ed.jpeg)
2. `my_event_name`:  
This is the description to which the flow “listens” to. For example `geofence`
3. `my_tag`:  
The optional tag is a word or value or whatnot, which is sent along and can be used as filter. For example `away`

Now, with the example data, the webhook looks like this:

```auto
https://webhook.homey.app/61123456789123456789/geofence?tag=away

```

## Flow:

This is the trigger card to use:

 ![Screenshot_20251129_172208_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/b/4b764edd739c34ed1abf486809b15deaa77d5479.jpeg)

In the [Event] field, enter the `my_event_name`, which is `geofence` in this example

Now the flow looks like this;

- when `my_tag` = `away` it would mean you left home;

- use an “And” logic card “text is exactly [text]” and enter “away” to build a switch:

- 
  - when it’s exactly `away`: start “Then” cards

- 
  - when it’s anything else: start “Else” cards

- When acknowledged or without push confirmation it’ll start the “Then” cards:  

- 
  - Optional:  
With the push confirmation it’ll asks to continue:  
 ![Screenshot_20251129_174220_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c1ef0608e4f62fd5139bdab6fd21b5144391b6c.jpeg)

- To trigger the “back home” part, you can use the same webhook, only you should use an other tag, like, `home`:

```auto
https://webhook.homey.app/61123456789123456789/geofence?tag=home

```

- The flow will start the “Else” cards:  
 ![Screenshot_20251129_173930_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/b/9b7f9832470952dfbb27f5fa7bd83435791ef419.jpeg)

## MacroDroid

Install [Macrodroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid)

As macro trigger, you can use leaving or entering:

- (a) predefined geofence(s)

- the area between 3 transmission towers  

- (a) known @ home wifi SSID(s), in or out of reach  

Enter the webhooks as http request in the action field

 ![mdroid3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee3d9e37588697c1cb99e7f254eb8317698d9969.jpeg)

### Leaving:

use webhook tag=`away`

 ![Screenshot_20251129_183557_Google](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/6/160ce5af3f5ddfdb983df514a80104c7b1d3d5b3.jpeg)

### Returning:

use webhook tag=`home`

 ![Screenshot_20251129_183457_Google](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76a7527418d3cd0923e1b147969e37946657308c.jpeg)
