# \[APP\]\[Pro\] IcalCalendar

**URL:** <https://community.homey.app/t/app-pro-icalcalendar/80708>\
**Category:** Apps\
**Tags:** app, tools, homey-pro\
**Created:** [May 18, 2023, 2:29pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708 "2023-05-18T14:29:43Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![Goran\_Wiberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/goran_wiberg/32/19926_2.png) [@Goran\_Wiberg](https://community.homey.app/u/Goran_Wiberg)\
**Post date:** [December 30, 2024, 10:37am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/185 "2024-12-30T10:37:55Z")

</div>

Hello Rune

Thanks for all support, i changed in the timezone-fil, i hade two posts with `Stockholm` so i left the one with the keyname `W. Europe Standard Time` and erased the other one. All thanks to you 🙂

Have a greate New Year

---

<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:** [December 30, 2024, 10:51am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/186 "2024-12-30T10:51:57Z")

</div>

👍

Happy new year 🎄🎆

---

<div class="post-metadata">

**Author:** ![KaiF](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaif/32/17746_2.png) [@KaiF](https://community.homey.app/u/KaiF)\
**Post date:** [January 2, 2025, 3:07pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/187 "2025-01-02T15:07:16Z")

</div>

Need to reopen the issue…  
I get the same error when trying to add a new calendar. This time i tried to refresh the URL a couple of times but it did not change the errot message. So any Idea what the error message means ?

> “Loading the ics file(s) has failed:  
> Uri errors  
> CALNAME: (name ||”‘’). toLowerCase is not a function"

---

<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 2, 2025, 3:23pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/188 "2025-01-02T15:23:36Z")

</div>

Please open an issue on GitHub by following these instructions: [Any other problems](https://community.homey.app/t/app-pro-icalcalendar/80708#p-384578-any-other-problems-17)

The error message you are receiving is not coming from **IcalCalendar** but from one of the dependencies it uses.

---

<div class="post-metadata">

**Author:** ![KaiF](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kaif/32/17746_2.png) [@KaiF](https://community.homey.app/u/KaiF)\
**Post date:** [January 3, 2025, 4:45pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/189 "2025-01-03T16:45:39Z")

</div>

Added a bug entry on Github; report ID is af63cb7a-3067-4fd1-a5c9-73943a0dedea

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [January 9, 2025, 7:56am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/190 "2025-01-09T07:56:13Z")

</div>

hello. I 'm trying to make a flow that modify a variable if there is no event in my calendar for at least the next 3 days. The purpose is to reduce the minimum thermostat temperature when there is noone present for 3 days, which the lack of events in my calendar indicates). I’ve scratched my head but i don’t see how to do that with icalCalendar. Could someone help me, please?

---

<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 10, 2025, 6:46pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/191 "2025-01-10T18:46:44Z")

</div>

You can use the following HomeyScript ([HomeyScript](https://community.homey.app/t/app-pro-icalcalendar/80708#p-384578-homeyscripts-13)) as a starting point in an Advanced Flow. This script retrieves your calendars, or a specified calendar based on its name, and returns true from the HomeyScript flow card if there are any appointments in your calendar(s).

Copy the script into a HomeyScript action card, do whatever changes you need/want to do.  
And if the HomeyScript flow card returns true, you can have an action to be done.

---

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [January 11, 2025, 10:17am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/192 "2025-01-11T10:17:15Z")

</div>

If it involved scripts it will be way out of my reach.😢

---

<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 11, 2025, 10:35am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/193 "2025-01-11T10:35:39Z")

</div>

The script is already written and can be taken into use as is. All you need to do is to set the correct calendar name in the script if you are importing more than the one calendar you want to check.

And since you want to check the calendar for events 3 days in the future, you have two options:

1. Limit the calendar import window to 3 days. **Just keep in mind that this setting is global for any other calendar you also might be importing**.
2. Add logic to the script to check if the start date of the first event is more than 3 days in the future. (The events returned from the `Get calendars metadata` card is sorted by starting date, so you only have to check the first event.)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 29, 2025, 3:29pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/194 "2025-01-29T15:29:57Z")

</div>

I guess the easiest way is to add an event in your calendar when no one is home.

But I think this flow should also work:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/9/79b78424c6a69dac96ea0488c1bc035650816e55.png)

The second IcalCalender flow card “_Any event starts within 1 day from calendar XYZ (Blue join = YES)_” is intended to “switch off” the variable again the day before someone comes home so that the heating temperature is raised again.  
Of course, you can also separate the flow and use two different times.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 29, 2025, 3:58pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/195 "2025-01-29T15:58:49Z")

</div>

I also have a question. And as I don’t know anything about HomeyScript either, I don’t know whether it would be possible to do it with it, or in another way.  
I would like to fetch the number of days until the next event in a calendar.  
Does anyone have any ideas?

Btw, this is my actually workaround to check the next 9 days::

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39f4291a4d3d3fec40b5ee9b4c734efdb66f0615.jpeg)

Not really nice, but it works. However, a more clearly structured flow would be nice.

---

<div class="post-metadata">

**Author:** ![Patrick\_Spadrille](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_spadrille/32/120160_2.png) [@Patrick\_Spadrille](https://community.homey.app/u/Patrick_Spadrille)\
**Post date:** [January 30, 2025, 10:01am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/196 "2025-01-30T10:01:23Z")

</div>

Thanks for this reply. i made some test and i realised that the card “an event start in 2 days” doesn’t mean in exactly 2 days but WITHIN 2 days. The traduction in french (my language) is confusing. The behaviour “Within 2 days” is the solution i was looking for. Maybe the french translation needs to be modified to reflect the real behaviour of the card. It shouldn’t be “Tout événement commence dans X jours” mais “Tout événement commence dans les X jours”. Thank you for your help.

---

<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 30, 2025, 5:28pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/197 "2025-01-30T17:28:18Z")

</div>

I don’t speak or understand french, and the french translations has been done by a community user.

This card reflects the real purpose/behavior in norwegian, swedish, danish and english (the languages i understand). The other languages has been done by community members or ChatGPT.

Thanks for the headsup, I’ll update the card with your translation 👍

---

<div class="post-metadata">

**Author:** ![iBosvelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ibosvelt/32/47824_2.png) [@iBosvelt](https://community.homey.app/u/iBosvelt)\
**Post date:** [February 8, 2025, 8:12am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/198 "2025-02-08T08:12:18Z")

</div>

I don’t know if this has come up before, but I found out that I can’t use a ‘logic number’ as a value to start an event. Is this impossible?  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa1cf844a9bfc93a3ad94d19dd01dc1d568dc1d4.png)

---

<div class="post-metadata">

**Author:** ![Kam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kam/32/121058_2.png) [@Kam](https://community.homey.app/u/Kam)\
**Post date:** [February 8, 2025, 9:23pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/199 "2025-02-08T21:23:03Z")

</div>

Hello everyone, how are you? I apologize if I missed reading an already existing post, but I wanted to know if this calendar app can be used a log.

What I would like is the ability for a door open sensor, to add the time to my Google calendar, that it was opened. Ideally, numerous times per day.

Is that possible with this app? Thanks!

---

<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 9, 2025, 5:04pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/200 "2025-02-09T17:04:50Z")

</div>

I have now tested on both my Homey 2019 (Pro) and my Homey Pro (Early 2023) that triggering the flow card `Event starts in X X` using a number variable or just a number works as it should.

Both flows, one with variable and one with number, triggered simultaneously.

If you have problems with triggering flows with variables, reach out to Athom support. The app itself has nothing to do with you using a variable or a number. It’s Homey core that reads the input and pass along to the apps!

---

<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 9, 2025, 5:06pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/201 "2025-02-09T17:06:59Z")

</div>

**IcalCalendar** only reads your calendar. It can not create new events on your calendar!

---

<div class="post-metadata">

**Author:** ![Kam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kam/32/121058_2.png) [@Kam](https://community.homey.app/u/Kam)\
**Post date:** [February 9, 2025, 7:44pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/202 "2025-02-09T19:44:20Z")

</div>

Thank you very much for your swift reply 😀

---

<div class="post-metadata">

**Author:** ![iBosvelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ibosvelt/32/47824_2.png) [@iBosvelt](https://community.homey.app/u/iBosvelt)\
**Post date:** [February 10, 2025, 6:44am UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/203 "2025-02-10T06:44:40Z")

</div>

> [@runely](#):
>
> If

Thank you for testing and figuring it out. I find it strange that something like this works for you but not for me. I ran another test last night, and the card with a ‘logic number’ did not trigger. However, a manually entered number did trigger. I will contact Athom Support to see what might be causing this.

And if i re-install the app. Do i loose all the cards in the flows?

---

<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 10, 2025, 10:17pm UTC](https://community.homey.app/t/app-pro-icalcalendar/80708/204 "2025-02-10T22:17:18Z")

</div>

By uninstalling and reinstalling the app you do not loose your flows. However, you do loose your settings in the app (calendars, etc).

As I said, it’s not the apps that read the number or variable from the arguments on the flows. Homey core does this and passes along the number or the retrieved number from a variable as an argument to the listener in the app.

I assume that you are having trouble using variables in other flow cards from other apps as well.

Reach out to Athom support. They can see what’s happening from your diagnostics report

[Previous page](https://community.homey.app/t/app-pro-icalcalendar/80708.md?page=9)

[Next page](https://community.homey.app/t/app-pro-icalcalendar/80708.md?page=11)
