# Calendar light

**URL:** <https://community.homey.app/t/calendar-light/121497>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [November 24, 2024, 4:21pm UTC](https://community.homey.app/t/calendar-light/121497 "2024-11-24T16:21:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emil\_Munksgaard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emil_munksgaard/32/79109_2.png) [@Emil\_Munksgaard](https://community.homey.app/u/Emil_Munksgaard)\
**Post date:** [November 24, 2024, 4:21pm UTC](https://community.homey.app/t/calendar-light/121497/1 "2024-11-24T16:21:00Z")

</div>

Hi all  
I have bought a led calendar light (IR remote), where I have the option of on, off, day up and day down. I would like the date during christmas to match on the calendar light. I’ve got the calendar light commands into homey via switchbot and I was planning to use the app “loop” to repeat the up/down function to match the corresponding day. But how do I retrieve a value that matches the day? If someone sits with a better idea, I’m of course all ears 🙂

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [November 25, 2024, 5:52pm UTC](https://community.homey.app/t/calendar-light/121497/2 "2024-11-25T17:52:05Z")

</div>

The easiest way is with the better logic library app. See the card at the bottom.  
Another way is the flow at the top:  
The third card checks if the current daynumber is between 1 and variable ‘daynumber’. If not then 1 is added to ‘daynumber’ and the flow starts itself again and again untill the daynumber is equal to the variable ‘daynumber’

 ![Scherm­afbeelding 2024-11-25 om 18.33.40](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/d/ed1f430e457776a90b9e257e920840d51ad2784a.jpeg)

---

<div class="post-metadata">

**Author:** ![Emil\_Munksgaard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emil_munksgaard/32/79109_2.png) [@Emil\_Munksgaard](https://community.homey.app/u/Emil_Munksgaard)\
**Post date:** [November 25, 2024, 6:03pm UTC](https://community.homey.app/t/calendar-light/121497/3 "2024-11-25T18:03:44Z")

</div>

Thank you so much!
