# \[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:** 12\
**Page:** 6

<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:** [February 15, 2025, 8:45pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/101 "2025-02-15T20:45:42Z")

</div>

Test version release. Please test out and let me knwo 🙂

> **[IcalCalendar](https://homey.app/no-no/app/no.runely.calendar/IcalCalendar/test/)**
>
> Ha full kontroll på planleggingen med Homey

---

<div class="post-metadata">

**Author:** ![Mattijs\_Brunink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattijs_brunink/32/120753_2.png) [@Mattijs\_Brunink](https://community.homey.app/u/Mattijs_Brunink)\
**Post date:** [February 15, 2025, 11:26pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/102 "2025-02-15T23:26:04Z")

</div>

Thanks a lot, it working at my side as well. Am I pushing my luck if I say it would be nice if you can use formulas in the Card as well, Like {{Var1+20}} 🙂

---

<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:** [February 16, 2025, 9:28am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/103 "2025-02-16T09:28:33Z")

</div>

You can’t use formulas directly because the cards argument is a number type and accepts only numbers and variables of type number, in its input.

You can however have some other flow or logic to update the variable used in the flow card.

---

<div class="post-metadata">

**Author:** ![Mattijs\_Brunink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattijs_brunink/32/120753_2.png) [@Mattijs\_Brunink](https://community.homey.app/u/Mattijs_Brunink)\
**Post date:** [February 16, 2025, 9:54am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/104 "2025-02-16T09:54:15Z")

</div>

That’s what I’m doing currently 😃 thanks any way

---

<div class="post-metadata">

**Author:** ![Anoia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoia/32/125594_2.png) [@Anoia](https://community.homey.app/u/Anoia)\
**Post date:** [January 8, 2026, 8:51pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/105 "2026-01-08T20:51:03Z")

</div>

Newbie here. I am trying to build a trashcan reminder of my own. What I have: an ical with four types of trashcans and a tuya LED strip. I want the LED strip to change its color the day before one of the trashcans are in the calendar and stay that way (ideally, the light would change back once a NFC is toggled, but that is the next project). I can’t get it to work, and I do not understand why.

Homey Pro is brand new, as is the App iCal. The App seems to import the events correctly (I can see them all via the new flow-test that was suggested in the tutorial).

Trashcans are all day- events. So the trigger I use is “Date and Time: Time is 12:00 (or 15:00) on Sun/Mon/Tue/Wed/Thurs/Fri/Sat” AND “iCal: Event that contains Paper in calendar Trash starts within the next 12 hours”, THEN “MegaLight set color to Blue”. Doesn’t work. Nothing happens. Nada.

I tried IF “iCal: Event starts within 12 hours” AND “iCal: Paper begins within 12 hours”, to no avail. I don’t get the hang of the tags in this trigger and I certainly can’t find out where to change them at all. If I try to test run the flow, I am shown all of the tags with their defaults.

What should I try next?

---

<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:** [January 9, 2026, 6:36am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/106 "2026-01-09T06:36:47Z")

</div>

I cant reproduce your problems.

The AND card **Event containing … in calendar … starts within … …** works as expected.

Have you tried to test your flow to see where it stops, if it stops?

 ![Screenshot_20260109_071548_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bcbd06700d72b703919149e28663b3f1c3b9bd29.png)

---

<div class="post-metadata">

**Author:** ![Anoia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoia/32/125594_2.png) [@Anoia](https://community.homey.app/u/Anoia)\
**Post date:** [January 9, 2026, 8:41am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/107 "2026-01-09T08:41:24Z")

</div>

Rune, could you elaborate on the Trigger you used? I want the flow to run automatically and the way I understand the “This Flow is started” trigger you need to start it manually? Which trigger would you recommend I use?

---

<div class="post-metadata">

**Author:** ![Anoia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoia/32/125594_2.png) [@Anoia](https://community.homey.app/u/Anoia)\
**Post date:** [January 9, 2026, 9:52am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/108 "2026-01-09T09:52:53Z")

</div>

When I test this configuration, I get shown the available tags and then a potential problem is flagged. Problem: I can’t find out any details regarding the exclamation mark, whenever I hover over it, it just goes away. Clicking on it is impossible. I’m doing something wrong here, I just can’t find out what it is.

 ![Bildschirmfoto 2026-01-09 um 10.48.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ce611a2771f2c47ffdc374681f41c4da82965d51.jpeg)

 ![Bildschirmfoto 2026-01-09 um 10.48.32](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/9692f6beac0ea34550e637cd3d213ef8bc5a9fe4.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:** [January 9, 2026, 10:03am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/109 "2026-01-09T10:03:52Z")

</div>

I used that trigger only to manually test the flow that the AND card is working as expected

---

<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:** [January 9, 2026, 10:15am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/110 "2026-01-09T10:15:19Z")

</div>

You are mixing apples and organes in your flow. IcalCalendar’s triggers and conditions are not always the best way to use together.

The trigger you have chosen will trigger when any event starts within 12 hours, and the tags the card provides shows which event that is triggering!

So your flow triggers because an event will start within 12 hours, and the tags on the trigger card has the metadata you want to check.

With the condition card you are asking IcalCalendar if there is ANY event that will start within 12 hours.

You are double checking here, and in fact when the trigger triggers because the event will start within 12 hours, there’s not necessarally correct that the same event will start within 12 hours when you ask the condition card, because some milliseconds has passed.

Use the same trigger card as you are using now.

As the condition card, instead use a logic card which checks the Title tag from the trigger if the tag is equal to **Bioabfallbehaelter**

---

<div class="post-metadata">

**Author:** ![Anoia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoia/32/125594_2.png) [@Anoia](https://community.homey.app/u/Anoia)\
**Post date:** [January 9, 2026, 11:14am UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/111 "2026-01-09T11:14:34Z")

</div>

That was very helpful, thank you! These are my first flows and I’m not familiar with everything yet, but your solution works. Off to new adventures and empty trashcans!

Now the LED strip is not available, but that’s a problem for another forum…

---

<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:** [January 25, 2026, 7:47pm UTC](https://community.homey.app/t/tutorial-trigger-a-flow-using-calendar-events/34017/112 "2026-01-25T19:47:15Z")

</div>

## New test version

See original post here: [[APP][Pro] IcalCalendar - #305 by runely](https://community.homey.app/t/app-pro-icalcalendar/80708/305)

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