Hi ,
I want to save the max and min temperatures.
The period should not be considered in the first step.
I store the max and min values in a dummy device and compare them to the current temperature.
// max values
If [MaxMin#Max]<[Unterstand_oben#Temperature]
TaskValueSet 3,1,[Unterstand_oben#Temperature]
Endif
//min values
If [MaxMin#Min]>[Unterstand_oben#Temperature]
TaskValueSet 3,2,[Unterstand_oben#Temperature]
Endif
At Max values it works but with the min value is 0.
And the value is not overwritten with the current value.
I am currently resolving this at boot time
on System#Boot do
timerSet,1,10
TaskValueSet 3,2,100 // min values unrealistic
TaskValueSet 3,4,100 // min values unrealistic
endon
Who knows a much better solution?
save max min values dummy device
Moderators: grovkillen, Stuntteam, TD-er
Re: save max min values dummy device
Maybe simple:
if [MaxMin#Min]>[Unterstand_oben#Temperature] or [MaxMin#Min]=0
if [MaxMin#Min]>[Unterstand_oben#Temperature] or [MaxMin#Min]=0
-
- Normal user
- Posts: 37
- Joined: 27 Aug 2019, 23:57
Re: save max min values dummy device
You may perhaps get sometimes a zero value, that stays as minimum (unless you get lower values, like negative ones)?
Re: save max min values dummy device
yes, I want to try it outFlying Domotic wrote: ↑18 Nov 2019, 10:05 You may perhaps get sometimes a zero value, that stays as minimum (unless you get lower values, like negative ones)?
Who is online
Users browsing this forum: No registered users and 0 guests