# Write to Timeline from Homey Script

**URL:** <https://community.homey.app/t/write-to-timeline-from-homey-script/23894>\
**Category:** Developers\
**Created:** [January 5, 2020, 11:32pm UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894 "2020-01-05T23:32:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moustache](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moustache/32/18123_2.png) [@Moustache](https://community.homey.app/u/Moustache)\
**Post date:** [January 5, 2020, 11:32pm UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/1 "2020-01-05T23:32:35Z")

</div>

Hi,  
How can I write to the timeline from within a script?

---

<div class="post-metadata">

**Author:** ![AndreasKarlsson175](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreaskarlsson175/32/33896_2.png) [@AndreasKarlsson175](https://community.homey.app/u/AndreasKarlsson175)\
**Post date:** [October 29, 2021, 11:41am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/2 "2021-10-29T11:41:48Z")

</div>

I have the same question. Have you found a resolution?

---

<div class="post-metadata">

**Author:** ![AndreasKarlsson175](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreaskarlsson175/32/33896_2.png) [@AndreasKarlsson175](https://community.homey.app/u/AndreasKarlsson175)\
**Post date:** [October 29, 2021, 11:50am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/3 "2021-10-29T11:50:29Z")

</div>

I found this, which worked for me.

await Homey.flow.runFlowCardAction({  
uri: ‘homey:manager:notifications’,  
id: ‘create\_notification’,  
args: {  
text: ‘some text ’ + someVariable + ’ some more text’  
},  
});

---

<div class="post-metadata">

**Author:** ![Jan\_J\_Haak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_j_haak/32/56438_2.png) [@Jan\_J\_Haak](https://community.homey.app/u/Jan_J_Haak)\
**Post date:** [August 20, 2022, 2:51pm UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/4 "2022-08-20T14:51:44Z")

</div>

This worked for me:

await Homey.flow.runFlowCardAction({  
uri: “homey:manager:notifications”,  
id: “create\_notification”,  
args: {  
text: “some text” },  
});

dont use quotes (’ ') but (" ")

---

<div class="post-metadata">

**Author:** ![Edwin\_Valstar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_valstar/32/79511_2.png) [@Edwin\_Valstar](https://community.homey.app/u/Edwin_Valstar)\
**Post date:** [May 12, 2024, 9:10am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/5 "2024-05-12T09:10:55Z")

</div>

To make it work for me (too debug), I neede it to change to:

await Homey.flow.runFlowCardAction({  
uri: ‘homey:flowcardaction:homey:manager:notifications:create\_notification’,  
id: ‘homey:manager:notifications:create\_notification’,  
args: {text: 'Step 2a '},  
});

---

<div class="post-metadata">

**Author:** ![Eko\_taas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eko_taas/32/74256_2.png) [@Eko\_taas](https://community.homey.app/u/Eko_taas)\
**Post date:** [September 10, 2024, 4:49pm UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/6 "2024-09-10T16:49:07Z")

</div>

> [@Edwin\_Valstar](#):
>
> await Homey.flow.runFlowCardAction({  
> uri: ‘homey:flowcardaction:homey:manager:notifications:create\_notification’,  
> id: ‘homey:manager:notifications:create\_notification’,  
> args: {text: 'Step 2a '},  
> });

For some reason, needed to change url to be with " and not with ’ - then works as a charm

> // My timeline test  
> result = await Homey.flow.runFlowCardAction({  
> uri: “homey:flowcardaction:homey:manager:notifications:create\_notification”,  
> id: “homey:manager:notifications:create\_notification”,  
> args: {text: ‘HomeyScript write test’},  
> });  
> console.log(result)  
> return

---

<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:** [September 10, 2024, 10:37pm UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/7 "2024-09-10T22:37:21Z")

</div>

> [@Eko\_taas](#):
>
> needed to change url to be with " and not with ’

This is because (all) the posted code parts in this topic aren’t formatted as code, like this: first and last line start with 3 backticks:  
`````  
Your code here  
`````

Fancy quotes and fancy double quotes are invalid.

Code formatted as code should look like this:

```auto
await Homey.flow.runFlowCardAction(
  {
    uri: 'homey:flowcardaction:homey:manager:notifications:create_notification',
    id: 'homey:manager:notifications:create_notification',
    args: {text: 'Step 2a'},
  }
);

```

(Note the ‘copy’ icon at the top-right, for easy and error-free copying)

---

<div class="post-metadata">

**Author:** ![Baboon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baboon/32/18107_2.png) [@Baboon](https://community.homey.app/u/Baboon)\
**Post date:** [January 27, 2025, 7:09am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/8 "2025-01-27T07:09:29Z")

</div>

> [@Eko\_taas](#):
>
> uri: “homey:flowcardaction:homey:manager:notifications:create\_notification”,  
> id: “homey:manager:notifications:create\_notification”,

hmm. I don’t know why, but it does not work for me(

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [January 27, 2025, 10:52am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/9 "2025-01-27T10:52:53Z")

</div>

Fancy quotes?

---

<div class="post-metadata">

**Author:** ![Ben\_van\_der\_Beek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ben_van_der_beek/32/146747_2.png) [@Ben\_van\_der\_Beek](https://community.homey.app/u/Ben_van_der_Beek)\
**Post date:** [January 21, 2026, 10:28am UTC](https://community.homey.app/t/write-to-timeline-from-homey-script/23894/10 "2026-01-21T10:28:01Z")

</div>

I needed the same functionality. After checking the available actions in Homey.flow.getFlowCardActions() I found this solution that worked for me on my Homey Pro 2023.

```auto
await Homey.flow.runFlowCardAction({
  uri: 'homey:manager:notifications',
  id: 'homey:manager:notifications:create_notification',
  args: {
    text: 'Hello from HomeyScript'
  }
});

```
