# HomeyScript: Cannot send notification (create\_notification silent fail + no Result tag in Flow)

**URL:** https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794
**Category:** Flows
**Tags:** homeyscript, flow
**Created:** [March 22, 2026, 1:09am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794 "2026-03-22T01:09:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iGiorgis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igiorgis/32/130594_2.png) [@iGiorgis](https://community.homey.app/u/iGiorgis)
#### Post date: [March 22, 2026, 1:09am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/1 "2026-03-22T01:09:14Z")

</div>

Hi everyone,

I’m using a Homey Pro (latest firmware) and I’m trying to build an “Away check” automation using HomeyScript.

The script itself works perfectly: it detects lights and shutters that are still open and returns a message. However, I’m stuck on how to properly send a notification or use the result in a Flow.

Here is my full script:

```auto
const devices = await Homey.devices.getDevices();

let lightsOn = [];
let shuttersOpen = [];

// Time window (18:30 → 07:00)
const startTime = 18 * 60 + 30;
const endTime = 7 * 60;

const now = new Date();
const currentTime = now.getHours() * 60 + now.getMinutes();

let isBalconyAllowedTime;
if (startTime < endTime) {
  isBalconyAllowedTime = currentTime >= startTime && currentTime < endTime;
} else {
  isBalconyAllowedTime = currentTime >= startTime || currentTime < endTime;
}

// Specific shutters
const myShutters = [
  'Πατζουρι ΣΑΛΟΝΙ',
  'Office Roller Shutter',
  'Bedroom Roller Shutter'
];

for (let device of Object.values(devices)) {

  // Lights
  if (device.class === 'light') {
    const name = device.name.toLowerCase();
    const isBalcony = name.includes('μπαλκ') || name.includes('balcony');

    if (isBalcony && isBalconyAllowedTime) continue;

    if (device.capabilitiesObj.onoff?.value === true) {
      lightsOn.push(device.name);
    }
  }

  // Shutters
  if (
    (device.class === 'windowcoverings' || device.class === 'blinds') &&
    myShutters.includes(device.name)
  ) {
    const position = device.capabilitiesObj.windowcoverings_set?.value;

    if (position !== 0) {
      shuttersOpen.push(
        device.name + ' (' + Math.round(position * 100) + '%)'
      );
    }
  }
}

// If everything is OK
if (lightsOn.length === 0 && shuttersOpen.length === 0) {
  return 'OK';
}

// Build message
let message = '⚠️ Away Check\n';

if (lightsOn.length > 0) {
  message += 'Lights: ' + lightsOn.join(', ') + '\n';
}

if (shuttersOpen.length > 0) {
  message += 'Shutters: ' + shuttersOpen.join(', ');
}

return message;

```

* * *

## Issues I’m facing:

### 1. Cannot access script result in Flow

The “Result” tag does not appear in Logic cards, even after running the flow multiple times.

### 2. Notifications from HomeyScript do not work

I tried:

```auto
await Homey.flow.runFlowCardAction({
  uri: "homey:flowcardaction:homey:manager:notifications:create_notification",
  id: "homey:manager:notifications:create_notification",
  args: { text: "Test message" },
});

```

The script runs successfully (no error), but no notification is sent (silent fail).

### 3. Other methods also fail

- `push_text` → not available

- `Homey.notifications` → not available in HomeyScript

* * *

## My questions:

👉 What is the correct / supported way to send a push notification from HomeyScript on recent firmware?  
👉 Is `create_notification` still supposed to work?  
👉 How can I reliably use the script output inside a Flow if the “Result” tag does not show?

Any working example would really help.

Thanks in advance 🙏

---

<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: [March 22, 2026, 1:21am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/2 "2026-03-22T01:21:57Z")

</div>

> [@iGiorgis](#):
>
> ```auto
> await Homey.flow.runFlowCardAction({
> uri: "homey:flowcardaction:homey:manager:notifications:create_notification",
> id: "homey:manager:notifications:create_notification",
> args: { text: "Test message" },
> });
> 
> ```

Note that this creates a **Timeline** notification, it doesn’t send a **Push** notification. Those are 2 different things. To send a push notifications, you can use this:

```auto
await Homey.flow.runFlowCardAction({
  uri: "homey:flowcardaction:homey:manager:mobile:push_text",
  id: "homey:manager:mobile:push_text",
  args: { user: { athomId: "[ATHOM_ID]", id: "[HOMEY_USER_ID]" }, text: "Test message" },
});

```

You can get the Athom account ID at [https://tools.developer.homey.app/me](https://tools.developer.homey.app/me), and you can get your Homey user ID at `Homey.users.getUserMe();` at [Homey Developer Tools](https://tools.developer.homey.app/tools/api-playground)

---

<div class="post-metadata">

### Author: ![iGiorgis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igiorgis/32/130594_2.png) [@iGiorgis](https://community.homey.app/u/iGiorgis)
#### Post date: [March 22, 2026, 2:04am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/3 "2026-03-22T02:04:14Z")

</div>

> [@smarthomesven](#):
>
> [https://tools.developer.homey.app/me](https://tools.developer.homey.app/me)

OK thanks. works now but how can I extend the notification text size?

---

<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: [March 22, 2026, 2:09am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/4 "2026-03-22T02:09:10Z")

</div>

> [@iGiorgis](#):
>
> works now but how can I extend the notification text size

What do you mean by extending the size?

---

<div class="post-metadata">

### Author: ![iGiorgis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igiorgis/32/130594_2.png) [@iGiorgis](https://community.homey.app/u/iGiorgis)
#### Post date: [March 22, 2026, 2:20am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/5 "2026-03-22T02:20:21Z")

</div>

I want the notification to include multiple sections (e.g. Lights and Shutters) with line breaks between them. How can I do that?

To include more text in the notification message (like scroll). Is it possible?

---

<div class="post-metadata">

### Author: ![iGiorgis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igiorgis/32/130594_2.png) [@iGiorgis](https://community.homey.app/u/iGiorgis)
#### Post date: [March 22, 2026, 2:21am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/6 "2026-03-22T02:21:28Z")

</div>

What’s the best way to structure or format longer notification messages in HomeyScript (e.g. multiple lines, spacing, readability)?

---

<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: [March 22, 2026, 2:28am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/7 "2026-03-22T02:28:53Z")

</div>

No, that’s not possible in push notifications. You can’t add multiple lines

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [March 22, 2026, 5:12am UTC](https://community.homey.app/t/homeyscript-cannot-send-notification-create-notification-silent-fail-no-result-tag-in-flow/152794/8 "2026-03-22T05:12:07Z")

</div>

This sort-of works:

```auto
await Homey.flow.runFlowCardAction({
  uri: "homey:flowcardaction:homey:manager:mobile:push_text",
  id: "homey:manager:mobile:push_text",
  args: { user: { athomId: ATHOM_ID, id: USER_ID }, text: `
Test line 1
Test line 2

Test line 3
Test line 4
`},
});

```

The result:

 ![5E37B361-2D24-46CF-8644-B1DC84BFF5E8_4_5005_c](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e23168aaa518281179592685b02d4fa0e54ce4ef.jpeg)
