Hallo,
eine kurze Frage: Ich habe das unten im Listing gezeigte userReading, dass einen gleitenden Mittelwert erzeugt.
Leider habe ich beobachtet, dass wenn die vielen Werte des Listings erzeugt werden, das userReading bei jeder einzelnen Wertänderung aktualisiert wird und damit praktisch immer das Gleiche anzeigt.
Welche Einstellung muss ich tätigen, damit das userReading nur bei Änderung des Bezugs-Reading neu ermittelt wird und nicht bei Aktualisierung aller anderen auch?
Gruß und Dank,
Heiko
Internals:
FUUID xxxxx
NAME Myenergi
NR 384
STATE <div style='color:red'>Netz: 276 W <br/> <div style='color:green'> Solar:0 W
TYPE dummy
Helper:
DBLOG:
status_harvi_ectp1.av:
logdb:
TIME 1614879442.03549
VALUE 0.000
status_zappi_grd.av:
logdb:
TIME 1614879442.03549
VALUE 276.000
READINGS:
2021-03-04 18:37:20 status_asn s8.myenergi.net
2021-03-04 18:37:19 status_harvi_dat 04-03-2021
2021-03-04 18:37:20 status_harvi_ect1p 1
2021-03-04 18:37:20 status_harvi_ect2p 1
2021-03-04 18:37:20 status_harvi_ect3p 1
x 2021-03-04 18:37:19 status_harvi_ectp1 0
x 2021-03-04 18:37:22 status_harvi_ectp1.av 0.000
2021-03-04 18:37:19 status_harvi_ectp2 -120
2021-03-04 18:37:19 status_harvi_ectp3 0
2021-03-04 18:37:19 status_harvi_ectt1 Generation
2021-03-04 18:37:19 status_harvi_ectt2 None
2021-03-04 18:37:20 status_harvi_ectt3 None
2021-03-04 18:37:20 status_harvi_fwv empty
2021-03-04 18:37:19 status_harvi_sno xxxx
2021-03-04 18:37:19 status_harvi_tim 17:37:14
2021-03-04 18:37:18 status_zappi_che 27.17
2021-03-04 18:37:17 status_zappi_cmt 254
2021-03-04 18:37:16 status_zappi_dat 04-03-2021
2021-03-04 18:37:19 status_zappi_dst 1
2021-03-04 18:37:18 status_zappi_ectp4 130
2021-03-04 18:37:18 status_zappi_ectp5 130
2021-03-04 18:37:19 status_zappi_ectp6 14
2021-03-04 18:37:16 status_zappi_ectt1 Internal_Load
2021-03-04 18:37:16 status_zappi_ectt2 Internal_Load
2021-03-04 18:37:17 status_zappi_ectt3 Internal_Load
2021-03-04 18:37:18 status_zappi_ectt4 Grid
2021-03-04 18:37:18 status_zappi_ectt5 Grid
2021-03-04 18:37:19 status_zappi_ectt6 Grid
2021-03-04 18:37:17 status_zappi_frq 50.1
2021-03-04 18:37:19 status_zappi_fwv 3560S3.103
2021-03-04 18:37:17 status_zappi_gen 0
2021-03-04 18:37:17 status_zappi_gep 0
x 2021-03-04 18:37:17 status_zappi_grd 276
x 2021-03-04 18:37:22 status_zappi_grd.av 276.000
2021-03-04 18:37:19 status_zappi_lck 31
2021-03-04 18:37:18 status_zappi_mgl 1
2021-03-04 18:37:17 status_zappi_pha 1
2021-03-04 18:37:17 status_zappi_pri 1
2021-03-04 18:37:18 status_zappi_pst A
2021-03-04 18:37:18 status_zappi_sbh 17
2021-03-04 18:37:18 status_zappi_sbk 10
2021-03-04 18:37:18 status_zappi_sbm 0
2021-03-04 18:37:17 status_zappi_sno xxx
2021-03-04 18:37:17 status_zappi_sta 1
2021-03-04 18:37:17 status_zappi_tbh 0
2021-03-04 18:37:18 status_zappi_tbk 5
2021-03-04 18:37:17 status_zappi_tbm 0
2021-03-04 18:37:16 status_zappi_tim 17:37:17
2021-03-04 18:37:19 status_zappi_tz 3
2021-03-04 18:37:17 status_zappi_vol 2311
2021-03-04 18:37:18 status_zappi_zmo 1
2021-03-04 18:37:20 zappi_hour_exp 0.000683333333333
2021-03-04 18:37:20 zappi_hour_gen 0
2021-03-04 18:37:20 zappi_hour_gep 0
2021-03-04 18:37:20 zappi_hour_h1d 0
2021-03-04 18:37:20 zappi_hour_h2d 0
2021-03-04 18:37:20 zappi_hour_h3d 0
2021-03-04 18:37:20 zappi_hour_imp 0.465816666667
2021-03-04 18:37:21 zappi_min_exp 0
2021-03-04 18:37:21 zappi_min_frq 50.01
2021-03-04 18:37:21 zappi_min_gen 0
2021-03-04 18:37:21 zappi_min_gep 0
2021-03-04 18:37:21 zappi_min_h1d 0
2021-03-04 18:37:21 zappi_min_h2d 0
2021-03-04 18:37:21 zappi_min_h3d 0
2021-03-04 18:37:21 zappi_min_imp 1.8867004
2021-03-04 18:37:21 zappi_min_nect1 0
2021-03-04 18:37:21 zappi_min_nect2 0
2021-03-04 18:37:22 zappi_min_nect3 0.041598
2021-03-04 18:37:21 zappi_min_pect1 0.120172
2021-03-04 18:37:21 zappi_min_pect2 1.770226
2021-03-04 18:37:21 zappi_min_pect3 0.0073952
2021-03-04 18:37:21 zappi_min_v1 231.1
Attributes:
group Myenergi
icon file_json-ld2
room IT,Keller
stateFormat {"<div style='color:red'>" . "Netz: " . sprintf("%.0f W", ReadingsVal("Myenergi","status_zappi_grd",0)). " <br/> <div style='color:green'> Solar:" . sprintf("%.0f W", ReadingsVal("Myenergi","status_harvi_ectp1",0))}
userReadings status_zappi_grd.av {movingAverage("Myenergi","status_zappi_grd",600)},
status_harvi_ectp1.av {movingAverage("Myenergi","status_harvi_ectp1",600)}
Das Reading einfach mit angeben:
userReadings status_zappi_grd.av:status_zappi_grd.* {movingAverage("Myenergi","status_zappi_grd",600)}
Gruß
Dan
Zack, das war's.
Ich sage Dankeschön!