# Start flow if %cloudyness is more than 80% after checking 3 times with 5 min in between each time

**URL:** https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529
**Category:** Flows
**Created:** [July 13, 2019, 2:34pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529 "2019-07-13T14:34:12Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![michielvzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michielvzz/32/8928_2.png) [@michielvzz](https://community.homey.app/u/michielvzz)
#### Post date: [July 13, 2019, 2:34pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/1 "2019-07-13T14:34:12Z")

</div>

I want my Somfy sunscreen to close if the cloudyness is more than 80% during a timeframe. Is it possible to let Homey check this % multiple times, for example:

If  
cloudyness more than 80%  
After 5 minutes  
cloudyness more than 80%  
After 5 minutes  
cloudyness more than 80%

Then  
Close Sunscreen

---

<div class="post-metadata">

### Author: ![Dennis\_H74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_h74/32/11177_2.png) [@Dennis\_H74](https://community.homey.app/u/Dennis_H74)
#### Post date: [July 13, 2019, 2:56pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/2 "2019-07-13T14:56:13Z")

</div>

Why not use the countdown timer app for 15 mins ?

If lower then 80% : turn hourglass 900 secconds

If hourglass is empty close sunscreen .

The hourglass wil be empty at 80% + because it will not be turned around.

Is there an app that updates cloud % accuratelly every 5 mins anyway ?

---

<div class="post-metadata">

### Author: ![michielvzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michielvzz/32/8928_2.png) [@michielvzz](https://community.homey.app/u/michielvzz)
#### Post date: [July 14, 2019, 9:39am UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/3 "2019-07-14T09:39:37Z")

</div>

Thanks, I made an hourglass which starts a countdown from 600 seconds to 0 when cloudyness is 80%+. Then I made a second flow which closes the sunscreen when the hourglass reaches 0 AND cloudyness is still 80%+.

I use openweathermap to check for clouds.

---

<div class="post-metadata">

### Author: ![Dennis\_H74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_h74/32/11177_2.png) [@Dennis\_H74](https://community.homey.app/u/Dennis_H74)
#### Post date: [July 14, 2019, 9:53am UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/4 "2019-07-14T09:53:32Z")

</div>

Openweather is never accurate for me ( various locations near amsterdam)

Also its not updated in short timeframes. Meaning it can show 70% clouds … but raining with your sunscreen out.

I think you can better buy and use a light sensor.

---

<div class="post-metadata">

### Author: ![michielvzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michielvzz/32/8928_2.png) [@michielvzz](https://community.homey.app/u/michielvzz)
#### Post date: [July 14, 2019, 11:37am UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/5 "2019-07-14T11:37:32Z")

</div>

I think a light sensor won’t fit the job. Determining the weather just can’t be done with a single light variable. For now, openweathermap, seems to predict the weather accurately enough for Zoetermeer. I also use data from buienradar and buienalarm for rain data and I installed the Somfy Eolis 3d for unpredicted windyness. I am thinking about adding a rainsensor for more accurate rain data. If needed I can add my garden doorsensor and garden movement sensor to the sunscreen flow so that the sunscreen won’t go out when no-one is in the garden. Do you know how many times per hour openweathermap updates it’s values? And did you try darkskyweather?

---

<div class="post-metadata">

### Author: ![Dennis\_H74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_h74/32/11177_2.png) [@Dennis\_H74](https://community.homey.app/u/Dennis_H74)
#### Post date: [July 14, 2019, 12:18pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/6 "2019-07-14T12:18:44Z")

</div>

Sounds good 🙂

Not sure how often … but actual in hillegom is now 7 mins old … lots can happen in 7 mins 🙂

Never tried darksky … but openweather is highly inaccurate in predictions also. Temperature is always 3 to 6 degrees off in the 12 hour prediction for example. The warmer it actaually will become for real … the larger the difference… when it actually will be 30 degrees at schiphol predicted … OWM predicts it will be 23 degrees. Meaning a totally different result using it for my blinds for example.

---

<div class="post-metadata">

### Author: ![michielvzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michielvzz/32/8928_2.png) [@michielvzz](https://community.homey.app/u/michielvzz)
#### Post date: [July 14, 2019, 5:04pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/7 "2019-07-14T17:04:20Z")

</div>

That’s a big difference indeed. For a sunscreen to work correctly, a prediction of the following ten minutes will be enough. I will check the following days how accurate the predictions are but my experience so far is positive.

---

<div class="post-metadata">

### Author: ![Dennis\_H74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_h74/32/11177_2.png) [@Dennis\_H74](https://community.homey.app/u/Dennis_H74)
#### Post date: [July 14, 2019, 5:21pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/8 "2019-07-14T17:21:52Z")

</div>

Well now is a nice example 🙂

Completely overcast but “actual” open weather is saying 40% clouds. Thats overcast … not a few scatered big clouds but here its completely packed and one closed sky. Also wheather pro is saying “zwaar bewolkt”

But you are correct and you should check how it works for you

---

<div class="post-metadata">

### Author: ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)
#### Post date: [July 15, 2019, 2:52pm UTC](https://community.homey.app/t/start-flow-if-cloudyness-is-more-than-80-after-checking-3-times-with-5-min-in-between-each-time/15529/9 "2019-07-15T14:52:15Z")

</div>

> [@michielvzz](#):
>
> . I am thinking about adding a rainsensor for more accurate rain data

I have a Netatmo rain gauge. This does not the job you want. It takes time to get a signal it is raining. It is accurate but to slow reporting it’s raining. At the point you get a notification, your screens are slightly wet. Not very, but for me that does not match my commands.
