# (Christmas) Light switch

**URL:** https://community.homey.app/t/christmas-light-switch/21338
**Category:** Flows
**Created:** [November 26, 2019, 10:59am UTC](https://community.homey.app/t/christmas-light-switch/21338 "2019-11-26T10:59:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Absalon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/absalon/32/3962_2.png) [@Absalon](https://community.homey.app/u/Absalon)
#### Post date: [November 26, 2019, 10:59am UTC](https://community.homey.app/t/christmas-light-switch/21338/1 "2019-11-26T10:59:07Z")

</div>

Hi,

I created a flow to control my Christmas lights and wanted to share it with you.

It basically triggers every minute and checks if the conditions to switch on are met.

[https://homey.app/f/DRNICW](https://homey.app/f/DRNICW)

---

<div class="post-metadata">

### Author: ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)
#### Post date: [November 26, 2019, 11:55am UTC](https://community.homey.app/t/christmas-light-switch/21338/2 "2019-11-26T11:55:09Z")

</div>

Why are you checking every minute??

---

<div class="post-metadata">

### Author: ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)
#### Post date: [November 26, 2019, 12:19pm UTC](https://community.homey.app/t/christmas-light-switch/21338/3 "2019-11-26T12:19:13Z")

</div>

I myself like to switch the lights on when it is getting dark in the living room. Therefore i use the lux measurements of a sensor. Also i have a 1 hour timer. This timer is activated by my indoor sensors. That way the lights only burn when someone is at home

---

<div class="post-metadata">

### Author: ![Absalon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/absalon/32/3962_2.png) [@Absalon](https://community.homey.app/u/Absalon)
#### Post date: [November 26, 2019, 12:57pm UTC](https://community.homey.app/t/christmas-light-switch/21338/4 "2019-11-26T12:57:08Z")

</div>

The interval is not limited to 1 minute

However Homey flow triggers are very limited and that was the trigger that suited the solution.  
That way I only need one flow.

---

<div class="post-metadata">

### Author: ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)
#### Post date: [November 26, 2019, 1:06pm UTC](https://community.homey.app/t/christmas-light-switch/21338/5 "2019-11-26T13:06:35Z")

</div>

In my opinion it would be better to create 6 flows (max, if you separate them all, you can combine the first 2) that run 6x a day, instead of 1 flow that will run 1440x a day!

---

<div class="post-metadata">

### Author: ![Picsou621](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/picsou621/32/15357_2.png) [@Picsou621](https://community.homey.app/u/Picsou621)
#### Post date: [November 26, 2019, 2:25pm UTC](https://community.homey.app/t/christmas-light-switch/21338/6 "2019-11-26T14:25:00Z")

</div>

Exactly, this flow is not “clean”, there is a problem with the “WHEN”. [Absalon](https://community.homey.app/u/Absalon) should create at least 3 flows, for example with the “Sun Events” app in the “WHEN”.
