# Comfort (behaaglijk) = humidity and temperature: how to efficiently calculate this?

**URL:** <https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391>\
**Category:** Flows\
**Created:** [June 18, 2020, 8:12am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391 "2020-06-18T08:12:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 18, 2020, 8:12am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/1 "2020-06-18T08:12:57Z")

</div>

I wanted to make Flows to set a variable to 3 levels of comfort (bad, okay and good) according to humidity and temperature. But that seems quite complicated. Maybe impossible even.

So, when it’s 19 degrees, comfort is reached if the humidity is between 45 and 80. For 20 degrees it’s 30 and 80. Bad comfort is below 20 and above 80.  
But when I make a Flow when the humidity has changed on my Netatmo weather station, I can’t select an AND from it where temperature is something.

Is this just impossible to easily do or am I looking in the work direction?

---

<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:** [June 18, 2020, 8:44am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/2 "2020-06-18T08:44:13Z")

</div>

> [@anon61197305](#):
>
> But when I make a Flow when the humidity has changed on my Netatmo weather station, I can’t select an AND from it where temperature is something.

Of course, with the logic card in the “And…” section.

 ![Bildschirmfoto 2020-06-18 um 10.43.04](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/3/e33f8a685cde279d64c7cce6cb60e5918396cf8f.jpeg)

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 18, 2020, 8:59am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/3 "2020-06-18T08:59:29Z")

</div>

Will try! Seems logic 😉

Is there also a way to display the outcome (good) of the variable (Comfort) in a (virtual) device? I’d like to use 3 emoji’s for the comfort, and like to display it in a tile on the devices screen.

---

<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:** [June 18, 2020, 9:31am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/4 "2020-06-18T09:31:22Z")

</div>

I haven’t tried it yet, but I guess not. At least not with the Standard Homey App.  
There are other ways to create a dashboard. These are mostly more flexible and the displays can be designed as required. This could also be used to answer your other question about temperature.

But because I don’t have a dashboard in use myself, I can’t help you.

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 18, 2020, 10:03am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/5 "2020-06-18T10:03:06Z")

</div>

I also assume you have multiple flows for different temperatures?  
And for bad comfort? En medium comfort?

To accomplish this:

 ![behaaglijkheid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/88c6c7fb348dad3821c29a4ff09b1c35e2a8084b.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 18, 2020, 10:08am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/6 "2020-06-18T10:08:47Z")

</div>

> **[Dew point | Relationship to human comfort](https://en.wikipedia.org/wiki/Dew_point#Relationship_to_human_comfort)**
>
> When the air temperature is high, the human body uses the evaporation of sweat to cool down, with the cooling effect directly related to how fast the perspiration evaporates. The rate at which perspiration can evaporate depends on how much moisture is in the air and how much moisture the air can hold. If the air is already saturated with moisture, perspiration will not evaporate. The body's thermoregulation will produce perspiration in an effort to keep the body at its normal temperature even whe...

---

<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:** [June 18, 2020, 10:13am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/7 "2020-06-18T10:13:50Z")

</div>

I have no flows that indicate the comfort climate. I had created the flow exemplary for you.

You’re right, a lot of flows have to be written for that. However, some climate areas can also be combined. Maybe it is possible to reduce the number of flows via variables and logic boards.

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 18, 2020, 10:51am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/8 "2020-06-18T10:51:02Z")

</div>

Ah, I thought it was yours 🙂 Thanks.  
I have for 4 temperatures now 4 flows for good.  
When going for good or bad, the flows for bad are two each.

Your other suggestion, I thought about it, but somehow I couldn’t bend my mind around it (hence the question on the forum 😉)

---

<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:** [June 18, 2020, 1:19pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/9 "2020-06-18T13:19:40Z")

</div>

Spontaneously I did not find anything to reduce the flows with variables and logic cards.  
But by combining several areas you can also reduce the number of flows. Ok, the flow for the “Nice-Comfort” was also the easiest.  
However, you do not have to create a flow for each individual field.

 ![behaaglijkheid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/e/3effa0d678f0db6407330ca31375048980ce3b54.png)

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [June 18, 2020, 2:03pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/10 "2020-06-18T14:03:17Z")

</div>

Hi @anon61197305

I made quite similar calculation just a couple of days ago, but I used the “feel like” calculation of the temperature which takes the humidity into account. This equation is used by the Finnish meteorogical institute.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b93fb154e00a932b26292f89985c0e88f72ccc3.png)

T=actual measured temperature  
RH=Relative humidity between 0-1. 1=100%  
RHref=0,5 (reference comfort humidity value)

With this I calculated the outdoor and indoor “feels like” temperatures and control the ventilation and AC based on that.

This is similar that Robert suggested with the due point calculation but I think this is more usable/understandable/compareable.

There is also a equation to take the sun heat into account and during wintertime the frostbite.

---

<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:** [June 18, 2020, 5:39pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/11 "2020-06-18T17:39:06Z")

</div>

Looks very interesting, I’ll try it.

But “Feels like” is something else Renzo wants. Or am I wrong?

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 19, 2020, 1:40pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/12 "2020-06-19T13:40:43Z")

</div>

Well, feels like could be something. But it slightly different.  
As you might notice that the image I provided has only even temperatures. I now have one with odd temperatures as well which makes it even more complicated.  
It’s unnessecary but fun, so I try to make some flows in the weekend.  
Also, I have no clue how to calculate that formula in Homey.

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [June 19, 2020, 8:59pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/13 "2020-06-19T20:59:24Z")

</div>

Here is an example how to calculate it

[https://homey.app/f/UV0oeb](https://homey.app/f/UV0oeb)

Ulkolämpötila=Outside temperature

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 22, 2020, 2:06pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/14 "2020-06-22T14:06:46Z")

</div>

I am curious how that in Finish sounds 😃  
Thanks. I am not sure about your whole Flow though. I do it like this:  
WHEN the humidity changes.  
THEN calculate the feels like and put it in a variable.

I am also using the normal logic (it didn’t calculate in Better Logic), so I have it in the app with my other logic variables. It does have a lot of decimals though. 😃

---

<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:** [June 22, 2020, 6:43pm UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/15 "2020-06-22T18:43:30Z")

</div>

This is the formula to round.

XXX = replace with variable  
.1 = rounded to one decimal place  
.2 = rounded to two decimal places  
and so on…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/de2e340cf2c1f59d6390111e15911a256026869a.jpeg)

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 23, 2020, 8:44am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/16 "2020-06-23T08:44:34Z")

</div>

Nice. Can I replace xxx with the whole formula? It saves me a variable and a flow.

Where is a manual/readme for this kind of add ons? How can I possible know what I can do with these kinds of things?

---

<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:** [June 23, 2020, 9:44am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/17 "2020-06-23T09:44:24Z")

</div>

> [@anon61197305](#):
>
> Can I replace xxx with the whole formula?

I think so, yes. But I haven’t tried it myself yet.

> [@anon61197305](#):
>
> Where is a manual/readme for this kind of add ons?

Some people here in the community always say “The search tool is your friend”. 😉  
I also found it only by chance here in the forum. But as far as I know, the calculation is based on .json. Maybe Google can help?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 23, 2020, 9:53am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/18 "2020-06-23T09:53:13Z")

</div>

> [@DirkG](#):
>
> But as far as I know, the calculation is based on .json. Maybe Google can help?

JSON is an encoding format 😉 I believe that the Logic cards use [`math.js`](https://mathjs.org/).

---

<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:** [June 23, 2020, 10:34am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/19 "2020-06-23T10:34:48Z")

</div>

@robertklep, yes, of course you’re right! 😂  
Thanks for the correction!

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [June 23, 2020, 11:06am UTC](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391/20 "2020-06-23T11:06:00Z")

</div>

The search tool is always the help, but good documentation is better. It’s quite weird that non of the apps really have a good readme, or have documented the options.

[Next page](https://community.homey.app/t/comfort-behaaglijk-humidity-and-temperature-how-to-efficiently-calculate-this/31391.md?page=2)
