# Flow coming home in the dark won't work as expected

**URL:** <https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411>\
**Category:** Questions & Help\
**Created:** [January 31, 2019, 8:53pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411 "2019-01-31T20:53:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn/32/12430_2.png) [@Martijn](https://community.homey.app/u/Martijn)\
**Post date:** [January 31, 2019, 8:53pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/1 "2019-01-31T20:53:34Z")

</div>

Pre 2.0 I used a flow to switch the lights when entering home and it was dark. Using hue and a Fibaro motion sensor.

It looked like;

- When the motion alarm is triggerd  
AND
- LUX = less then 4
- Hue GU10 2 = off (extra to be sure it won’t happen in a choosen low light scene)  
THEN
- Turn on the lights (hue and some wall sockets)

But in 2.0 I come to this;

WHEN

- The luminance changed  
AND
- Luminance is less than 5
- GU10 2 is turned off  
THEN
- Turn on the lights

But in someway the flow isn’t triggert when arriving at dark and triggers a few times in the night when there’s no movement.

So what could it be. I have some difficulties in re-creating flows in the new interface.  
Thanks,

Martijn

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [January 31, 2019, 8:55pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/2 "2019-01-31T20:55:27Z")

</div>

> [@Martijn](#):
>
> When the motion alarm is triggerd

becomes:

> [@Martijn](#):
>
> The luminance changed

??

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [January 31, 2019, 8:55pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/3 "2019-01-31T20:55:45Z")

</div>

Why not the same flow as in 1.5.x? Your second flow will always run, regardless if your home or not… Even at night…

---

<div class="post-metadata">

**Author:** ![Martijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn/32/12430_2.png) [@Martijn](https://community.homey.app/u/Martijn)\
**Post date:** [January 31, 2019, 9:09pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/4 "2019-01-31T21:09:28Z")

</div>

True but when I start with;

When the motion alarm is on, there is in the AND selection just the motion alarm is on and the tamper alarm is on available. I don’t see any options for luminance then.

---

<div class="post-metadata">

**Author:** ![Martijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn/32/12430_2.png) [@Martijn](https://community.homey.app/u/Martijn)\
**Post date:** [January 31, 2019, 9:10pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/5 "2019-01-31T21:10:22Z")

</div>

I lost all my flows migrating 2.0 @bvdbos

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [January 31, 2019, 9:13pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/6 "2019-01-31T21:13:31Z")

</div>

You can still use the sensor-values, there’s just no local tags for the trigger “motion alarm”:  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/de211839c807b2234468f0b5c0a2cd575f4065c1.png)

---

<div class="post-metadata">

**Author:** ![Martijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn/32/12430_2.png) [@Martijn](https://community.homey.app/u/Martijn)\
**Post date:** [January 31, 2019, 9:25pm UTC](https://community.homey.app/t/flow-coming-home-in-the-dark-wont-work-as-expected/8411/7 "2019-01-31T21:25:36Z")

</div>

@bvdbos I see now, it’s by adding the logic labels then.

New flow;

WHEN

- the motion alarm turned on  
AND
- Luminance is less than 2
- GU10 2 is off  
THEN  
Turn on everything in a most fancy way
