# Flow: Roller Shutter down if expected temperature is above

**URL:** <https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950>\
**Category:** Questions & Help\
**Created:** [July 23, 2019, 6:01pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950 "2019-07-23T18:01:44Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 23, 2019, 6:01pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/1 "2019-07-23T18:01:44Z")

</div>

I would like to make a flow for closing my RTS Roller Shutters if the expected outside temperature (not the actual temperature) will be above 23 degrees . How do I make that flow?

---

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 23, 2019, 6:09pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/3 "2019-07-23T18:09:55Z")

</div>

Yes, but then the roller shutter will close not earlier than when the actual temperature is above 23 degrees. What I want is that they close if the expected temperature of that day will be higher than 23 degrees.

---

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 23, 2019, 6:50pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/5 "2019-07-23T18:50:29Z")

</div>

![Current%20weather](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3ab75a38d9ac7be867f0c13c8148b2595c2788b2.jpeg)  
I found this app. I think ‘verwachte hoogste dagtemperatuur’ is useful. But what do I have to use with ‘When’?  
 ![Flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2abf948f3290cbe1cdcc64e3cb1b25e9eb13bd41.jpeg)  
Or do I have to make another type of flow?

---

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 23, 2019, 7:09pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/6 "2019-07-23T19:09:59Z")

</div>

![Flow2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/55931e43f09161aa7699a351755112d2d9575ea7.jpeg)  
I made this flow, but when I test it, it says there is an error. Don’t know why.

---

<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:** [July 23, 2019, 8:01pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/8 "2019-07-23T20:01:59Z")

</div>

Get a key [here.](http://weerlive.nl/delen.php) Make a flow with [Better logic](https://apps.athom.com/app/net.i-dev.betterlogic). Make a better logic variable and call it whatever u like. Make a trigger at any time of the day. For the THEN part we pick the HTTP flow card: GetJSONpath Better Logic. Top txt will be:  
`http://weerlive.nl/api/json-data-10min.php?key=demo&locatie=Amsterdam`  
Plz change “demo” with ur own key and change the location.

2nd txt will be:  
`$.liveweer[0].d0tmax`

At the end u find the variable u just created.  
There u have the expected temp for today in a flow.

If u want the max temp for tomorrow pick d1tmax 😉

Now u can create a flow with a time trigger AND logic tag\>23 THEN…

---

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 23, 2019, 8:33pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/9 "2019-07-23T20:33:56Z")

</div>

I don’t have experience with Better logic yet. I downloaded the app, but don’t know how to make the flow. Don’t know how the app works. I do have the api key from weerlive.

---

<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:** [July 24, 2019, 4:10am UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/10 "2019-07-24T04:10:23Z")

</div>

[Here](https://community.homey.app/t/get-a-notification-when-the-washingmachine-is-ready/9372) is a little explanation of how to create a variable with the better logic app.

---

<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 24, 2019, 10:31am UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/11 "2019-07-24T10:31:12Z")

</div>

I tried this but at choosing the better logic card I can’t find getJson card. Any ideas?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4968cb21f8d9d1451d434e36ca0340af8506473c.png)

---

<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:** [July 24, 2019, 10:37am UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/12 "2019-07-24T10:37:27Z")

</div>

My mistake. The card is from the HTTP request flow cards app.

---

<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 24, 2019, 11:09am UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/13 "2019-07-24T11:09:13Z")

</div>

> [@Rocodamelshekima](#):
>
> mistake

Three days down the drain😈

Just kidding🤗

Thx this looks very promising. Nice for my gardening flows and maybe my roller shutters.

👍Does work, very nice​:ok\_hand:

---

<div class="post-metadata">

**Author:** ![Hadreth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hadreth/32/12452_2.png) [@Hadreth](https://community.homey.app/u/Hadreth)\
**Post date:** [July 24, 2019, 11:55am UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/14 "2019-07-24T11:55:33Z")

</div>

I went a different route in closing my roller shutters. I have no success either. I tried it like it  
If: the time is 10:00 (standard date and time app)  
And: the highest day temp is \>28°c (darksky)  
Then: set dim lvl to 5% (fibaro)

The strange part is, when I test it, the temperature passes but the time doesn’t. Not even when I set my if card to the current time. Any tips?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 24, 2019, 12:06pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/15 "2019-07-24T12:06:23Z")

</div>

> [@Hadreth](#):
>
> highest day temp

Is this the highest measured- or the highest expected temperature?.

---

<div class="post-metadata">

**Author:** ![Hadreth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hadreth/32/12452_2.png) [@Hadreth](https://community.homey.app/u/Hadreth)\
**Post date:** [July 24, 2019, 12:27pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/16 "2019-07-24T12:27:13Z")

</div>

Expected highest temperature. Looks like my time is off In homey. Can I check it somewhere?

---

<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 24, 2019, 12:29pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/17 "2019-07-24T12:29:17Z")

</div>

Do you press the test button? In that case It skips the IF part, it tests the AND and THEN part.

---

<div class="post-metadata">

**Author:** ![Hadreth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hadreth/32/12452_2.png) [@Hadreth](https://community.homey.app/u/Hadreth)\
**Post date:** [July 24, 2019, 12:45pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/18 "2019-07-24T12:45:41Z")

</div>

Need a moment. It seems that my roller shutter is stuck… xD

---

<div class="post-metadata">

**Author:** ![Martijn\_Heitink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_heitink/32/12430_2.png) [@Martijn\_Heitink](https://community.homey.app/u/Martijn_Heitink)\
**Post date:** [July 24, 2019, 9:38pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/19 "2019-07-24T21:38:40Z")

</div>

Oke, I tried to make the flow as mentioned above. What is the following step?

 ![Flow3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/32cba2651ef9fb392def9dd345221bb5030bc511.jpeg)

---

<div class="post-metadata">

**Author:** ![ArnoP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnop/32/13709_2.png) [@ArnoP](https://community.homey.app/u/ArnoP)\
**Post date:** [July 24, 2019, 10:01pm UTC](https://community.homey.app/t/flow-roller-shutter-down-if-expected-temperature-is-above/15950/20 "2019-07-24T22:01:01Z")

</div>

This is the English part of the forum so you should ask your questions in English.  
What you did in the screenshot is to have the temperature put into the Better Logic variable. In the When field you could input a card like (at 6:00) or (every 60 minutes) or something like that so the variable gets updates at least once every day (at the beginning of the day).  
Then you’ll need a second flow where you compare the temperature in the variable and based on that close your roller shutter.
