# In between time

**URL:** <https://community.homey.app/t/in-between-time/3698>\
**Category:** Questions & Help\
**Created:** [November 5, 2018, 9:24am UTC](https://community.homey.app/t/in-between-time/3698 "2018-11-05T09:24:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvilUnicorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/evilunicorn/32/8750_2.png) [@EvilUnicorn](https://community.homey.app/u/EvilUnicorn)\
**Post date:** [November 5, 2018, 9:24am UTC](https://community.homey.app/t/in-between-time/3698/1 "2018-11-05T09:24:53Z")

</div>

I’m trying to create a flow that only runs between certain hours. I want a motion sensor to only turn on the lights between 01:00 and 7:00. Is that possible? I can set a trigger time, but can’t find a way to set this more advanced.

---

<div class="post-metadata">

**Author:** ![Maikel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikel/32/12410_2.png) [@Maikel](https://community.homey.app/u/Maikel)\
**Post date:** [November 5, 2018, 9:32am UTC](https://community.homey.app/t/in-between-time/3698/2 "2018-11-05T09:32:39Z")

</div>

You can add the time as a condition in the flow.  
**When** : motion detected  
**And** : time between 1:00 and 7:00  
**Then** : turn on the light

---

<div class="post-metadata">

**Author:** ![EvilUnicorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/evilunicorn/32/8750_2.png) [@EvilUnicorn](https://community.homey.app/u/EvilUnicorn)\
**Post date:** [November 5, 2018, 9:36am UTC](https://community.homey.app/t/in-between-time/3698/3 "2018-11-05T09:36:44Z")

</div>

Ah, the trigger differs between the ‘When’ and ‘And’ I should have seen that. I was doing it the wrong way. Thanks!
