# Push message to only users who are home?

**URL:** <https://community.homey.app/t/push-message-to-only-users-who-are-home/27947>\
**Category:** Flows\
**Created:** [April 4, 2020, 11:11pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947 "2020-04-04T23:11:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jacke/32/18369_2.png) [@Jacke](https://community.homey.app/u/Jacke)\
**Post date:** [April 4, 2020, 11:11pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/1 "2020-04-04T23:11:51Z")

</div>

Is it possible to make homey send a push message to only the users who are home, or the other way around? Without having to make flow for every user?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [January 10, 2023, 10:53pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/4 "2023-01-10T22:53:12Z")

</div>

With standard flows I’m not aware of any other way of doing it.

With advanced flows on Pro it’s quite easy to just make a single flow that combines a ‘sub flow’ per user. You can create a single flow like this that’s triggered by a “flow started with text tag” and use the text tag as the message for each push message card. Then wherever else you need to do this from other flows you can use the “start flow with text tag” card to send your message to your “push to whoever is home “ flow

---

<div class="post-metadata">

**Author:** ![Benji](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/benji/32/68157_2.png) [@Benji](https://community.homey.app/u/Benji)\
**Post date:** [January 13, 2023, 9:58pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/5 "2023-01-13T21:58:14Z")

</div>

You can create a HomeyScript and use the following code to send a notification to all users that are away:

`push-away.js`

```auto
const users = await Homey.users.getUsers();
Object.values(users)
  .filter(({present}) => !present)
  .forEach(user => {
    Homey.flow.runFlowCardAction({
        uri: 'homey:manager:mobile',
        id: 'push_text',
        args: {
          user,
		      text: args[0] || 'Hello World'
        },
      });
  });

```

To send one to all users who are present, remove the ! in front of `!present`

![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/91a4129a93f0b02f1f9a11231e7add2524a48afa.png)

---

<div class="post-metadata">

**Author:** ![Dinand\_ten\_Broeke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dinand_ten_broeke/32/49409_2.png) [@Dinand\_ten\_Broeke](https://community.homey.app/u/Dinand_ten_Broeke)\
**Post date:** [October 14, 2026, 6:59pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/6 "2026-10-14T18:59:26Z")

</div>

I just found this 3yo topic.

I c/p the the script into push-away.js

I made a flow that run the push-away, but nothing happend. No push notification. to eather present of absent users.

I use Homey Pro Early 2019, v.13.5.1

Homeyscript v3.6.3

What do i wrong?

---

<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:** [October 14, 2026, 7:19pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/7 "2026-10-14T19:19:38Z")

</div>

For the push notification cards, there’s more options to select from nowadays:

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

---

<div class="post-metadata">

**Author:** ![Dinand\_ten\_Broeke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dinand_ten_broeke/32/49409_2.png) [@Dinand\_ten\_Broeke](https://community.homey.app/u/Dinand_ten_Broeke)\
**Post date:** [October 14, 2026, 7:49pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/8 "2026-10-14T19:49:27Z")

</div>

thank you for the quick reply.

I do not have the option to select Everone/Everyone at home/Everyone away.

Is that an option for newer Homey Pro? I have Early 2019.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 14, 2026, 8:02pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/9 "2026-10-14T20:02:19Z")

</div>

> [@Dinand\_ten\_Broeke](#):
>
> Is that an option for newer Homepro? I have Early 2019.

I think this was released only for the 2023 and newer models. It’s mentioned in the change log of those models:

 ![IMG_3081](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/631899361602f5ca10eac38d85192c2884db27b1.jpeg)

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [October 14, 2026, 9:50pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/10 "2026-10-14T21:50:34Z")

</div>

I don’t have it either. I also have a Pro 2019

---

<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:** [October 14, 2026, 10:43pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/11 "2026-10-14T22:43:17Z")

</div>

Ah, I didn’t expect this to be unavailable for the 2016-2019 models.

---

<div class="post-metadata">

**Author:** ![PeterHa](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@PeterHa](https://community.homey.app/u/PeterHa)\
**Post date:** [October 16, 2026, 10:02pm UTC](https://community.homey.app/t/push-message-to-only-users-who-are-home/27947/12 "2026-10-16T22:02:21Z")

</div>

A while ago, I did it in the same way as Jonathan described above. However, this requires advanced flows.

So, a flow containing a few cards with the ‘rules’ for sending messages to specific users, which is then called by another flow using a text tag with the message text.
