# Flow for dimmed landing light

**URL:** <https://community.homey.app/t/flow-for-dimmed-landing-light/35652>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [October 8, 2020, 6:25pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652 "2020-10-08T18:25:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [October 8, 2020, 6:25pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/1 "2020-10-08T18:25:33Z")

</div>

Hi guys!

I have a bunch of Philips Hue lights with the Hue Motion sensor. I use the Philips Hue Bridge and Homey 5.34rc.

I want to make a flow to switch on the landing light on motion when the luminance is below 3 lux. The light should be dimmed to 50%.

This should be the case before 23:45h.

After 23:45 it should be 25%.

So far I made this but I have doubts this will work.

What do you guys think? Any advise?

 ![Landing light](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f4ca71481caa3de600de238014a30d8459feb2e9.jpeg)

I managed to make the flow to wait while the timer is running and the flow to turn the light off. So that works. It is just the flow to turn the light on with the above mentions terms.  
Thanks in advance!  
Cheers,  
Wim

---

<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:** [October 8, 2020, 7:08pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/2 "2020-10-08T19:08:57Z")

</div>

Hey Wim,

It will not work like this. The way your flow is set up, the lamps are always dimmed to 50%.

If the requirements in the “And” section are met, in your case the one or the other, then the upper section of “Then” will be executed.  
If the requirements in the “And” area are not met, then the actions in the “Then - Else” area will be executed.

You must create 2 flows:

**Flow 1**  
When…  
_Motion Alarm is turned on_  
And…  
Lux \< 3  
~~_Time is **earlier** than 23:45 o’clock_~~  
Edit: _Time is between 15:00 - 23:45 o’clock_  
Then…  
_Dimm to 50 %_  
_Stop Countdown Timer „Landing light“_

**Flow 2**  
When…  
_Motion Alarm is turned on_  
And…  
Lux \< 3  
~~_Time is **later** than 23:45 o’clock_~~  
Edit: _Time is between 23:45 - 10:00 o’clock_  
Then…  
_Dimm to 25 %_  
_Stop Countdown Timer „Landing light“_

I took over the timer now, because I don’t know the CountDown app, don’t know how it works.

---

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [October 8, 2020, 7:12pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/3 "2020-10-08T19:12:16Z")

</div>

Hi Dirk,  
Thanks, indeed, it should be so simple!  
Thanks again!  
Cheers,  
Wim

---

<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:** [October 8, 2020, 8:20pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/4 "2020-10-08T20:20:49Z")

</div>

Hm, I’m actually not sure if „Time is later than 23:45 o’clock“ is a good choice. I actually don’t know how Homey handle „Time is later than“. 🤔  
I think a time period would be a better choice.  
Flow 1  
Time between 15:00 - 23:45 o’clock  
Flow 2  
Time between 23:45 - 10:00 o’clock

But just try it out and let me know which solution works.

Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![danone](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danone/32/115743_2.png) [@danone](https://community.homey.app/u/danone)\
**Post date:** [October 8, 2020, 8:54pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/5 "2020-10-08T20:54:45Z")

</div>

> [@DirkG](#):
>
> Hm, I’m actually not sure if „Time is later than 23:45 o’clock“ is a good choice.

Not the best choice, indeed. It will dim 25% until midnight 0:00 then after midnight (new day) Homey believes the time is earlier than 23:45 so will dim again at 50%.

> [@DirkG](#):
>
> Flow 2  
> Time between 23:45 - 10:00 o’clock

That will work.

---

<div class="post-metadata">

**Author:** ![Wim\_van\_Bezouw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_van_bezouw/32/76286_2.png) [@Wim\_van\_Bezouw](https://community.homey.app/u/Wim_van_Bezouw)\
**Post date:** [October 8, 2020, 9:46pm UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/6 "2020-10-08T21:46:15Z")

</div>

Yes indeed Danone and Dirk. I have changed that and the other one too. So between 10:00 and 23:45 at 50%. I see what it does tonight and tomorrow.  
Thanks again guys!  
Cheers,  
Wim

---

<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:** [October 9, 2020, 3:33am UTC](https://community.homey.app/t/flow-for-dimmed-landing-light/35652/7 "2020-10-09T03:33:49Z")

</div>

Thanks for pointing out, I have changed the flows.
