Calculate with variables and values

Hello,
having some issue of understanding and need some help.
Here I want to describe what I want to do:
Get value from device a, get another value from device b.
Compare values and if difference is more than 5 do any action in the flow.

Any idea how to do that?

Kind Regards
Kai

Look for logic cards. See Switch floorheating pump on Evohome trigger

Only with build-in logic flow cards:


A numeric variable is needed. Here BeispielVariable.


If you need the result only for this flow, then you can use the app Temporary Variables and build-in logic flow cards:


No numeric variable is needed.

I guess there will be also a more professional calculation way, but it works. :wink:

On HP2023 also with normal flow:
(Picture below has changed after some comments below)

This is not the way how it works. Or I misunderstand what @kai.wagner.83 needs.

Example
The current value/temperature of Ingestelde temperatuur is 20 °C.
The current value/temperature of Temperatuur is 24 °C.
By adding 5 °C to Ingestelde temperatuur (= 25 °C), the temperature is greater than of Temperatuur (24 °C), but the difference are just 4 °C.

And this is what Kai wrote:

Hope it’s understandable what I mean. But maybe Kai will explain in more detail what exactly he needs.

I think both solutions give a jump start for Kai to experiment and to find out what he wants :grin: and how to make the formula:

a-b > 5
a > b+5
a-5>b
Etcetera….

Pls, don’t calculate every hour /minute / second… there is no need to it is the worst trigger they implemented…

Homey is build to:

  1. trigger if something changes (Temperature1 or Temperature2)
  2. something else that makes you need it. (Any other trigger, in an advanced flow when you need the result)

but why calculate something 1440 times a day while you probably only need it a couple of times, in my opinion that’s just a bad habit…

I agree.
The short answer to the guestion asked by Kai is “use logic card number 7”. But as I don’t know Kai’s knowledge, I give a complete simple flow, to add some context.
In this specific case I better had the flow starting with “when this flow has started”.
In the case where this example comes from, you finally need two triggers, change of actual temp and change of set temperature. You can do it in two normal flows or by one advanced flow. What ever the requester wants and is used to. But that is beyond the question being asked here. But I think I leave some points to find out by the requester, so he/she will learn. And not just copying ready to run solutions.

1 Like

Let me explain my intention:

I have got some tado radiator thermostats and some partly netatmo and some switchbot Meter Plus temperature sensors.
So I want to do the following:
If temperature on netatmo sensor is changing and the temperature shown of the netatmo sensor is more than 0,5 degree higher the tado thermostat should decrese its temperature.
So I want to keep the temperature near the temperature I decided to have in a room.
Same if it is getting more than 0,5 degree colder than set on the tado.

Maybe you can help me better now or understand what I need here :slight_smile:

Thanks for your help so far

Maybe you can share your flow so we can advise?

In the mean time I tried to build that on my own with help of some screenshot from @DirkG

Looking like that:

What is your opinion about that?

Wow, that is much more than I expected.
I think you’re on the right road, and I am not so good in reading flows. However you might add another trigger. Because the flow below shall be triggered as well as the actual temperature has changed as well as when the set temperature has changed.

I guess it will work. The only thing I would change is to use a timer app like Chronograph instead of the build-in delays. Because:
– It’s not possible to stop or adjust the build-in delays (maybe not needed in this flow)
– The Chronograph timers will continue after a restart (for what reason ever) of Homey, the build-in delays not

I use the build-in delays just for short periods, max. 1-2 minutes. But it depends also on the background of the flow, e.g. watering of the plants.
Example in your flow, if Homey “dies” after Ausschalten, the heating will be turned off until one of the other flows set the heating again to Intelligenten Zeitplan fortsetzen, because the 60 min. build-in delay will be interrupted: