Hello everyone,
I use a probe (temperature for example) that varies without stopping.
Which means that if I put an "interval" at 5s, a new value changes every 5 seconds.
My question is the following :
If I put 60s, the interval function gives:
* The value of the probe every 60s
or
* The average of the values recorded on 60s?
In the hypothesis that it is not the average, how to have the mean?
Thank you.
Interval function in the Devices tab
Moderators: grovkillen, Stuntteam, TD-er
Interval function in the Devices tab
Sigalou
Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog
Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog
- Site perso dédié domotique : Sigalou-domotique
- Support : Alexa-API WatchDog
- Documentation, Changelog et Todo-List : Alexa-API WatchDog
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Interval function in the Devices tab
The unit will poll the CURRENT VALUE once per interval. If you need to have a average or mean you would need to do that using rules. And change the interval to 1 second or something.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Interval function in the Devices tab
OK, with this ?grovkillen wrote: ↑23 Jul 2019, 22:26 The unit will poll the CURRENT VALUE once per interval. If you need to have a average or mean you would need to do that using rules. And change the interval to 1 second or something.
Code: Select all
On Temp#Value Do
Let,10,[VAR#9]
Let,9,[VAR#8]
Let,8,[VAR#7]
Let,7,[VAR#6]
Let,6,[VAR#5]
Let,5,[VAR#4]
Let,4,[VAR#3]
Let,3,[VAR#2]
Let,2,[VAR#1]
Let,1,[Temp#Value]
TaskValueSet,12,1,([VAR#1]+[VAR#2]+[VAR#3]+[VAR#4]+[VAR#5]+[VAR#6]+[VAR#7]+[VAR#8]+[VAR#9]+[VAR#10])/10
EndOn
Sigalou
Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog
Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog
- Site perso dédié domotique : Sigalou-domotique
- Support : Alexa-API WatchDog
- Documentation, Changelog et Todo-List : Alexa-API WatchDog
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Interval function in the Devices tab
Yep!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Ahrefs [Bot] and 41 guests