# Opening a Somfy screen on time AND daylight

**URL:** <https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070>\
**Category:** Flows\
**Created:** [May 4, 2023, 8:34pm UTC](https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070 "2023-05-04T20:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans111](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans111/32/63534_2.png) [@Hans111](https://community.homey.app/u/Hans111)\
**Post date:** [May 4, 2023, 8:34pm UTC](https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070/1 "2023-05-04T20:34:33Z")

</div>

Need some help in building a flow:  
I want to open my Somfy screen every morning as soon as my light sensor is reaching 20 lux.  
If my light sensor is reaching 20 lux before 07:00, the Somfy screens must open at 07:00

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [May 4, 2023, 8:43pm UTC](https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070/2 "2023-05-04T20:43:34Z")

</div>

You will need two Flows, one for the lux and one for the time. Each will have the other condition.  
So, when lux \> 20 and time is after 7, then the other one is the time is 7 and lux \> 20.

---

<div class="post-metadata">

**Author:** ![Articate](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/articate/32/57311_2.png) [@Articate](https://community.homey.app/u/Articate)\
**Post date:** [May 7, 2023, 9:59am UTC](https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070/3 "2023-05-07T09:59:05Z")

</div>

My understanding is that the earliest you want the screen to open is at 7 in the morning. But after 7, you want it to open when lux is more than 20.

For exactly 7:00:00, you can have a flow that says  
“When the time is 7:00 am and lux is greater than 20 then open the screen”. But other than that, you need a triggering action.

Personally, I’d set this up as an advanced flow:  
`WHEN time is 7:00am -> AND lux > 20 -> - - - - - - - - - - - - - v`  
`WHEN lux changes -> AND lux > 20 -> AND time between 7 and 10 -> open screen `

---

<div class="post-metadata">

**Author:** ![Hans111](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans111/32/63534_2.png) [@Hans111](https://community.homey.app/u/Hans111)\
**Post date:** [May 7, 2023, 6:15pm UTC](https://community.homey.app/t/opening-a-somfy-screen-on-time-and-daylight/80070/4 "2023-05-07T18:15:43Z")

</div>

Thanks. This works for me!
