[HOWTO] Home/Away with Wifi (Homey (Bridge) / Homey Pro)

How to set Home/Away when connected to a specific wifi network.

This solution works for the Homey (Bridge) and Homey Pro

Android:
1 - IFTTT

IOS:
2 - (TODO)


0. Preparation

  • Create a new flow in Homey: Shared Flow | Homey
  • Repeat this for every user (change the event name for that user. In my case mp_home_away)

0.1 Webhook url

  • Go to the flow you created in the previous step
  • Click on the info icon in the IF card
  • You’ll see this:
  • Your home url will be like this
    https://webhook.homey.app/ATHOM_CLOUD_ID/mp_home_away?tag=home
  • Your away url will be like this
    https://webhook.homey.app/ATHOM_CLOUD_ID/mp_home_away?tag=away



1. Android - IFTTT

Setup

  • Download IFTTT on your Android phone (IFTTT on Google Play)

  • Create an account or login

  • Grant all needed permissions

Create applet

  • Click in the bottom on the button create

  • Click IF → Android device

  • For Home - Select Connects to a specific WiFi network

  • For Away - Select Disconnects to a specific WiFi network

  • Input your network name

  • Click continue

  • Click THAT → Webhooks (search via searchbar on top)

  • Click Make a web request

  • For Home In the url field paste your Home URL you retrieved in step 0.1

  • For Away In the url field paste your Away URL you retrieved in step 0.1

  • Method → GET

  • Content Type → Text/Plain


Final steps

  • Make sure you did above steps twice. one time for Home and one time for Away

  • For a extra user: repeat above steps on a different phone with different IFTTT account.




2. IOS - TODO




Contributions
If you appreciate what I do, contribute to future development by making a paypal contribution
or buy me a coffee on Ko-Fi or Bunq.me

image ko-fiimage


:computer: Apps made by @martijnpoppen

See for more apps link below :point_down:t2: or just open the pull down.

3 Likes

Hi Martijn!
I seem to be on an other datacenter. Me Frankfurt you Helsinki?
So peeps should take a peek at the Logics card “A webhook event was received” for the correct URL.
The owners’ Athom ID is also present.

1 Like

@Peter_Kawa ! yes you are correct. However eu-central was not working for me today. So I tried eu-north. But indeed best is to take it from the card. :+1:

1 Like

Ah! Didn’t know you can use another datacenter at your likings :grimacing:

As long as you are in the same region. So EU or US.

The Homey you register will be put in a region. I tried connection from US but that didn’t work

2 Likes

Is the URL updated?

Hey @Maggro
It depends on your location…the Homey webapp show the url in the flowcard. https://my.homey.app

@Maggro urls are changed indeed, updated the howto :slight_smile:

1 Like

It seems the ‘local’ webhook still works.
This is nice when you want your in-house devices sending webhooks without using internet
http://192.168.1.123/api/manager/logic/webhook/my-event?tag=my-tag

@Peter_Kawa yes! But wont work for Homey Cloud :stuck_out_tongue:

The one in the example is cross platform :slight_smile:

That’s right, it’s for in-house network use only with a Homey Pro :grin:. I just wanted to share the possibility :upside_down_face:

1 Like

Hi! Very nice! How can you set this up via ‘to do’ on iPhone. Without getting a notification that you have to approve the action.

@HHarm i never made any instructions for the IOS part. So not sure if its possible :wink: