# \[TUTORIAL\] Trigger a flow using calendar events

**URL:** <https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017>\
**Category:** Tutorials\
**Created:** [August 26, 2020, 11:37am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017 "2020-08-26T11:37:14Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [July 27, 2023, 7:46am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/61 "2023-07-27T07:46:34Z")

</div>

You can use `Todays events, title and time` for that purpose

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [July 27, 2023, 7:47am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/62 "2023-07-27T07:47:21Z")

</div>

Or `Tomorrows events, title and time` for tomorrows events

---

<div class="post-metadata">

**Author:** ![Zafar\_Iqbal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zafar_iqbal/32/65202_2.png) [@Zafar\_Iqbal](https://community.homey.app/u/Zafar_Iqbal)\
**Post date:** [July 27, 2023, 8:29am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/63 "2023-07-27T08:29:00Z")

</div>

but it is only working if there is one appointment. If there is several it only reads time?

 ![Skjermbilde 2023-07-27 102748](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6658b5d01f7e4f0ad1a2f2adb007dcf9dac2ed4.png)

 ![Skjermbilde 2023-07-27 103828](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e2f77401681af9b2311c379a8b64aa5a37ec74aa.png)

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [July 27, 2023, 10:16am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/64 "2023-07-27T10:16:16Z")

</div>

The `Todays events, title and time` is filled with all events happening today. The `Tomorrows events, title and time` is likewise filled with all events happening tomorrow.

Each event is constructed like this:

If the event is only today: Summary; start(HH:mm) to stop(HH:mm)

If the event is multiple days: Summary; start(DD.MM HH:mm) to end(DD.MM HH:mm)

---

<div class="post-metadata">

**Author:** ![Zafar\_Iqbal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zafar_iqbal/32/65202_2.png) [@Zafar\_Iqbal](https://community.homey.app/u/Zafar_Iqbal)\
**Post date:** [July 27, 2023, 11:48am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/65 "2023-07-27T11:48:37Z")

</div>

thank you for taking the time, my competence here is probably a bit limited as a beginner, so not able to get it to work. Should i use logic in flow Whats wrong?

[image]

---

<div class="post-metadata">

**Author:** ![LRvdLinden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lrvdlinden/32/80786_2.png) [@LRvdLinden](https://community.homey.app/u/LRvdLinden)\
**Post date:** [July 27, 2023, 11:52am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/66 "2023-07-27T11:52:51Z")

</div>

Is there also a way that google tts only lists event name instead of event name and start end time?

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [July 27, 2023, 12:13pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/67 "2023-07-27T12:13:47Z")

</div>

> [@Zafar\_Iqbal](#):
>
> Should i use logic in flow Whats wrong?

There’s no image here. So i’m not sure how to answer this. But to use the flow tokens you should use logic cards in your flows, yes

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [July 27, 2023, 12:15pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/68 "2023-07-27T12:15:42Z")

</div>

> [@LRvdLinden](#):
>
> Is there also a way that google tts only lists event name instead of event name and start end time?

Google TTS just reads out what is given to it as text. You would have to parse the flow token content yourselves some how if you only wanted the event names.

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 11, 2023, 9:47am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/69 "2023-09-11T09:47:58Z")

</div>

Hi,

I have a question regarding ongoing events that started in the past. I have an ongoing event that repeats and are several days long. I’m using this “and” statement: “Event containing bla in calendar bla is ongoing”. If the ongoing event start this day (full day event), the “and” statement works. From the next day on it doesn’t work anymore. I see this event not in “Bla is ongoing”, I see just the future events, but not the current one. In the settings I see this comment: Events with start date inside given time frame will be synced in". Not sure what I do wrong

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [September 11, 2023, 5:37pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/70 "2023-09-11T17:37:24Z")

</div>

Can you please provide an example of an ongoing recurring event you have in your calendar? The event you are referring to, is it actually ongoing for several days or is the start/stop timestamps inside same day but is repeated several days?

I created a new ongoing recurring event in my own calendar to see if this works as it should. This event started yesterday and is ongoing until tomorrow evening, and will repeat itself every sunday.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1d5c8b9048be87afdcb9c3c7e4a7b017c04744c3.png)

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 11, 2023, 6:23pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/71 "2023-09-11T18:23:25Z")

</div>

Hi, Thank you so much for your answer. Here you see the flow.

 ![Screenshot 2023-09-11 at 20.17.21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2a7f33b8d4ae078563c9a94a4fb1e81b9dcd07ed.jpeg)

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 11, 2023, 6:24pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/72 "2023-09-11T18:24:02Z")

</div>

And my calendar

 ![Screenshot 2023-09-11 at 20.20.32](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/7707c733ecfd17e2bd57bcfc3860e3c37f0076d7.png)

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 11, 2023, 6:24pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/73 "2023-09-11T18:24:39Z")

</div>

And the details of the calendar entry  
 ![Screenshot 2023-09-11 at 20.21.50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/6/b673504a10ef444da3cd8b2fcef68329bee99af0.png)

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [September 11, 2023, 8:03pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/74 "2023-09-11T20:03:32Z")

</div>

I created an event just like that in my own calendar, and it works as it should at my end.

BTW, you do know that using a Start button like this in an advanced flow will never automatically trigger your flow. The Start button only allows you to trigger this advanced flow from another flow.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b11bd44c16e5e7138a618a078d461260d53a555c.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/ae7038689631f7d4f1ad235724337cf54dd9d9e3.png)

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 12, 2023, 7:06am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/75 "2023-09-12T07:06:43Z")

</div>

Thanks, yes I know about the start button, but thank you 🙂 . When I run this flow the variable doesn’t set correctly, so it seems like it doesn’t find the correct/current event in the calender.

And the current ongoing event is not visible. Just the future ones

 ![Screenshot 2023-09-11 at 20.25.05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40091447557e085ea5d97f2f62306a5971f171e3.jpeg)

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [September 12, 2023, 9:43am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/76 "2023-09-12T09:43:51Z")

</div>

Well, since none of the events you are showing in the list has started yet, the variable should be set to **No** 😉

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 12, 2023, 10:32am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/77 "2023-09-12T10:32:44Z")

</div>

Hehe. Exactly that is the problem. Why does the current event not show up?

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [September 12, 2023, 1:58pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/78 "2023-09-12T13:58:46Z")

</div>

Since the event isn’t showing up in the list, its not imported!

Can you follow the steps in this [trouble shooting](https://community.homey.app/t/app-pro-icalcalendar/80708#troubleshooting-13) guide and paste the diagnostics report here please, and i’ll have a look at whats happening

---

<div class="post-metadata">

**Author:** ![Kathrin\_Pilka](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kathrin_pilka/32/79601_2.png) [@Kathrin\_Pilka](https://community.homey.app/u/Kathrin_Pilka)\
**Post date:** [September 12, 2023, 4:40pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/79 "2023-09-12T16:40:45Z")

</div>

Thank you. Here is the report id: feff10ab-2bed-425c-b14a-7c2166dbc9c0

---

<div class="post-metadata">

**Author:** ![runely](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/runely/32/28153_2.png) [@runely](https://community.homey.app/u/runely)\
**Post date:** [September 12, 2023, 5:34pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/80 "2023-09-12T17:34:30Z")

</div>

I’m not getting the full log since Homey is truncating large logs… Can you please lower the import timeframe to 1 week and do the same troubleshooting guide again?

[Previous page](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017.md?page=3)

[Next page](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017.md?page=5)
