FLOW If temperatur outside > temperature inside, then

Good day,

I want to create a flow
The basic is quite simpel

If the temperature outside passed the temperature inside
while outside is bigger than inside
then action

If the temperature outside passed the temperature inside
while outside is smaller than inside
then action

Right now I can make a flow using KNMI app
But then I have to use when temperature changes
This means that the action will start again and again at every change of .1 or 1. degrees

But I only want an action at the moment at the moment outside becomes bigger or outside becomes smaller. While temp is passed the setpoint, the action should simply stop.

Do anybody have an idea how to put this proper in a flow?

Thanks in advance

Steven

WHEN outside temperature has changed
AND outside temperature < inside temperature
AND heater is not on
THEN start heater

Thanks Rmb,

But does this mean, the heater is started 1 time? Or will the heater receive a start command every time the outside temperature change and is < inside?

I think it is the last, and that is exactly not what I want.

Thanks in advance for your reply

The heater is started once.
As the first time te outside temp gets below the heater is switched on. The next time the outside temp changes, the heater is already on and won’t be switched on again.

understand, but I want 1 single command, and no second!!!

So this is not working for what I wanna do

I really need only once an output command, despite the fact that the temp still change

As I said, the heater will be started once.
How do you think the heater is started every time?
Both AND cards shall be true to execute the command.

I do not want this for a heater, but for an push notification, and I want only 1 notification and not a bunch

Then you have to introduce a variable initially set to 0.
You only send a message when the variable is 0, and after sending you make the variable 1.

I am still fighting
Making variable no problem
Changing variable no problem

But now I do want to write #temperature (value) to created variable. But I can not find this in Logic or Better Logic Library.

What I want to do, is to write actual outside temperature to a variable. After that I can compare this values and set action after that comparisation.

Mhhhh I have not figured out yet

You seem to comletely miss this condition in the example of Rmb

This means, the heater is only turned on once,
no matter how many times the outside temperature changes AND inside temp is smaller.

_

I guess you look for something like this:

(The second tag [temperature] belongs to the indoor thermostat)

But, that is impossible:
unfortunately, few (or no) triggercards can handle tags as comparison value.

_

But why? The temperature is already present in the tag of the device.

Here’s a short and clear howto for logic, variables and tags:
https://community.homey.app/t/slow-flow/79623/24

Right, I did missed it indeed. But now that is clear to me!

Your flow look like my idea. But I want to use the outside temperature from for example KNMI, because there is no outside sensor yet. While using KNMI there is no basic option becomes less than.

I think the most easy solution is place soon an outside temp sensor…

But I am still open for any logic solution with using KNMI or an other accurate outside value.

THANKS for thinking and sending examples!

1 Like

True, i don’t know why, but not all apps provide for triggers with “becomes less/more than”.
In that case you’d use the first @Rmb example.
The KNMI temperature tag is always available, for use in a logic condition.

Visual example with Buienradar trigger:

Right, but temperature valuve change at every input change. So it is not possible to compare old temperature (before the change) with the new temperature.

IMO this result in a number of action with every change of temperature.

What I mean and like to create is

Outside temp = 23
Inside temp = 24
Outside temp increase to 24 → close all doors and windows
Outside temp increase to 25 no action
Outside temp increase to 26 no action
and so on…
outside temp decrease to 23 → open all doors and windows
outside temp decrease to 22 no action
outside temp decrease to 21 no action
and so on

I do asked KNMI to add 2 charts, this will make life much easier

Thanks again!

YW!
I agree some cards which make more sense are missing, but Homey seems not to be bothered driving flows with “when temperature changed” trigger cards.

Some think it can have a negative impact on overall performance.
I believe it doesn’t, (why would those cards be available?) but I did no lab tests.

So, you might not want a flow to be triggered at every temperature change by 0.1, but I don’t bother about that all. It’s just how Homey works.

Because temperature changes are being received lets say every 10 seconds, should be handled anyway for displaying and storing in Insights. So adding a few instructions to compare it with a value and doing nothing most of the time might not be a big problem.

If an app is using a numeric capability (Standard or custom), Homey autogenerates the get higher/lower trigger. For subcapabilities this is not done. So it’s possible, that apps are using subcapabilities in this case.

1 Like

I think you worry too much about unnecessary things. Have you ever checked in Insights how often a temperature change is reported by the KNMI app, which is a cloud service?

This is a screenshot of the current temperature, which I get via @RonnyW’s OpenWeather app:

This means that the temperature has only been reported 9 times in the last 60 minutes. And if the temperature doesn’t change (see marked area), no data will be transmitted at all. That’s right @RonnyW, isn’t it?

Of course, such trigger cards “X becomes more than Y” and “X becomes less than Y” makes definitely sense and, in my opinion, should be used whenever possible. But it’s not always possible, for whatever reason.

Just a little extra info. These trigger flow cards “X becomes more than Y” and “X becomes less than Y” exist not so that long ago, maybe for about 2-3 years.
Before that, you always had to use these “X has changed” trigger flow cards followed by a logic flow card, and that didn’t cause any problems that I know of, even with the old Homey models from 2016.

I thnk I do find a solution with the app Weather Forecoast. No unneeded messages, just usefull in summertime to open or close the house to keep it inside as cool and comfortable as possible

Right, the “capability changed” flow trigger are only started if the capability value changes.
If an app request data every 5min, the trigger will start every 5min (if the value changes) or with one of the next intervals.
If the temperature is stable, no trigger is started.

1 Like

Suppose #temperature = 20. When outside temp goes from 19 to 21, the first flow will trigger. But as 21 is less than 22, the flow stops.