# Flow to Measure the coldest temperature daily

**URL:** <https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345>\
**Category:** Questions & Help\
**Created:** [November 11, 2020, 8:30pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345 "2020-11-11T20:30:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![HuisCHovens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huischovens/32/16973_2.png) [@HuisCHovens](https://community.homey.app/u/HuisCHovens)\
**Post date:** [November 11, 2020, 8:30pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/1 "2020-11-11T20:30:33Z")

</div>

> Moderation: Moved from Aqara topic as this is a understanding Flow Logic Issue.  
> If you have an issue with that Contact any Moderator or me in PM. ^ @Dijker

i have the temperature sensor from aqara. he’s doing well. only I have a flow with the first column temperature has changed, but this sensor does not respond to that, how is this possible ?

And how strong is the vibarition sensor  
then I stick it on my apartment hal phone for the bells to open the door outside.

---

<div class="post-metadata">

**Author:** ![HuisCHovens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huischovens/32/16973_2.png) [@HuisCHovens](https://community.homey.app/u/HuisCHovens)\
**Post date:** [November 11, 2020, 9:00pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/3 "2020-11-11T21:00:10Z")

</div>

[https://homey.app/f/zDv5Vm](https://homey.app/f/zDv5Vm)  
I want to measure the coldest temperature from the outside here, I also want to measure the hot

the reset for the next Day  
[https://homey.app/f/U6h6Vm](https://homey.app/f/U6h6Vm)

I have this flows from a other forum topic.

The other sensor has been ordered, so hopefully testing next month

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 12, 2020, 9:39am UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/4 "2020-11-12T09:39:58Z")

</div>

@HuisCHovens, what exactly does not work with the first flow “Koudste temp buiten”?

Maybe the selected time period could cause the problem.  
Instead of  
– The time is between 20:00 and 18:00  
try  
– The time is **not** between 18:00 and 20:00

Btw, you can also manage this with the Homey Build-In Logic and you don’t necessarily need the Better Logic app.

---

<div class="post-metadata">

**Author:** ![HuisCHovens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huischovens/32/16973_2.png) [@HuisCHovens](https://community.homey.app/u/HuisCHovens)\
**Post date:** [November 12, 2020, 6:04pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/5 "2020-11-12T18:04:05Z")

</div>

problem is he does not write temperature in the table

This where the Idea is coming

> [@Highest and lowest outdoors temperature during day](https://community.homey.app/t/highest-and-lowest-outdoors-temperature-during-day/20027/7):
>
> I have exactly this use case, but instead of triggering a flow on each temparature change, I have created a HomeyScript. This HomeyScript calculates the min and max temperature based on the log from Insights. My script: let MinVarName="MinTemp"; let MaxVarName="MaxTemp"; //uri = tuinsensor(Philips Hue) //id = temperatuur let entries = await Homey.insights.getLogEntries({uri: "homey:device:3245df43-c818-2289-98c6-ec033472dbf3", id: "measure\_tempera…

it has to record the temperature all day long and make a report of the highest and the lowest outside temperature around 7 pm.  
i have a lot of running on better logic,  
I will try it on the logic of homey.  
I also adjusted the time to that it is not allowed between 19.00 and 19.30 because then he writes the log and resets it for the next day.

---

<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:** [November 12, 2020, 6:37pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/6 "2020-11-12T18:37:02Z")

</div>

In ur flow u check a variable “Koudste dag temp” against the actual outside temp (balkon temp).  
This flow does: When variable is less then the outside temp then set variable.  
Think u need the other way around.  
When outside temp is less then variable temp then wright variable.  
So maybe invert (omkeren) the card in the AND colom.  
This has nothing to do with Better Logic vs build-in Logic.  
As this has also nothing to do with this topic anymore i would suggest u search the forum for similar topics or open a new topic for it.

---

<div class="post-metadata">

**Author:** ![Tycho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tycho/32/16864_2.png) [@Tycho](https://community.homey.app/u/Tycho)\
**Post date:** [November 12, 2020, 7:16pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/7 "2020-11-12T19:16:10Z")

</div>

I see you quoted my script, but I’m not sure if you got it working. You need to use the script in a flow like this one:  
[https://homey.app/f/ctOTZm](https://homey.app/f/ctOTZm)

In this flow you do not need better logic and you also do not need to trigger on each temperature change. All you need to do, is to create 2 variables in which you store the output of the script. For your case, just trigger it at 7PM and you are good to go.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 12, 2020, 7:21pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/8 "2020-11-12T19:21:11Z")

</div>

I’ve tested the flow and it works when the time period is reversed.

And of course it has nothing to do with Better Logic App, I didn’t write that either. I just wrote that using the Better Logic App is not necessary.  
But, with the build-in logic it looks much more understandable.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/0/507072a75320dfb013b54ba9fc19208701c1f1fb.jpeg)

---

<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:** [November 12, 2020, 7:24pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/9 "2020-11-12T19:24:59Z")

</div>

Looks way more understandable !  
And is exactly the opposite!

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [November 12, 2020, 7:55pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/10 "2020-11-12T19:55:35Z")

</div>

> [@Rocodamelshekima](#):
>
> And is exactly the opposite!

Ähmmm, no! There is no other way to create this logic part.  
Or you can explain me?

---

<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:** [November 12, 2020, 8:00pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/11 "2020-11-12T20:00:58Z")

</div>

Sure. But not in this topic because this goes way off-topic like stated before.

---

<div class="post-metadata">

**Author:** ![HuisCHovens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/huischovens/32/16973_2.png) [@HuisCHovens](https://community.homey.app/u/HuisCHovens)\
**Post date:** [November 12, 2020, 9:30pm UTC](https://community.homey.app/t/flow-to-measure-the-coldest-temperature-daily/37345/12 "2020-11-12T21:30:23Z")

</div>

Thanks for your tip It strange for me to invert the tag but it works now.  
In better logic app.

Aqara sensor only sends when the temperature has changed the Philips sensor sends every second it seems like.
