# Advanced flow for controlling hallway lights

**URL:** https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291
**Category:** Flows
**Tags:** advancedflow
**Created:** [September 22, 2025, 12:39pm UTC](https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291 "2025-09-22T12:39:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Oyvind\_Lilleberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oyvind_lilleberg/32/140892_2.png) [@Oyvind\_Lilleberg](https://community.homey.app/u/Oyvind_Lilleberg)
#### Post date: [September 22, 2025, 12:39pm UTC](https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291/1 "2025-09-22T12:39:08Z")

</div>

Hi, I’m having a bit of trouble getting my advanced flow to control the hallway lighting as I want. In principle, I want the light to be controlled by a motion sensor during the day, while at night (00:00 - 06:30), the light should be constant at 10%. During the day, it turns on when there is movement, and off after 15 minutes without movement. After 21:00, it should turn on at 50% strength, while after 19:00 without activity it should dim to 50%.

My flow looks like this, but it doesnt seem to work for setting the lights to 10% at night.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/497b5c2755b1b19b4804ed736923338497090691.png)

---

<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: [September 22, 2025, 1:22pm UTC](https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291/2 "2025-09-22T13:22:31Z")

</div>

The only issue I found right away is that I assume that you’re using the wrong “Then…” flow cards.  
Instead of this flow card:

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

…you need to use this flow card:

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

However, it would be important to know what exactly doesn’t work after midnight! Is the light too bright? Too dark? Turned off?

---

<div class="post-metadata">

### Author: ![Oyvind\_Lilleberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oyvind_lilleberg/32/140892_2.png) [@Oyvind\_Lilleberg](https://community.homey.app/u/Oyvind_Lilleberg)
#### Post date: [September 22, 2025, 4:32pm UTC](https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291/3 "2025-09-22T16:32:57Z")

</div>

It looks like that worked the charm. Did some testing now and it looks like its working.  
It was mainly that the light didn’t change according to the plan when the clock hit midnight.

---

<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: [September 23, 2025, 9:07am UTC](https://community.homey.app/t/advanced-flow-for-controlling-hallway-lights/143291/4 "2025-09-23T09:07:12Z")

</div>

Yes, because you used the wrong flow card. The light was not dimmed to an absolute 10%, but only by 10% of the previous brightness value.

I’m glad it’s working now… 👍
