ioBroker.sourceanalytix icon indicating copy to clipboard operation
ioBroker.sourceanalytix copied to clipboard

At night (00.00) doesn´t do null

Open blaumsass opened this issue 3 years ago • 11 comments

meine Werte werden nicht um 0:00 Uhr genullt sondern erst wenn der nächste Wert geschrieben wird.

Leider kann das zb. bei einem Regenmesser erst in 1 Wocher oder so sein.

und so lange bleibt der Tageswert auf dem alten Wert.

V. 0.4.12 Node.js: v14.18.1 NPM 6.14.15 js 3.3.20 iobroker v5.1.25

blaumsass avatar Dec 12 '21 16:12 blaumsass

Same here. As the object sourceanalytix.0.smartmeter__0__1-0:2_8_0__255__value.currentYear.earnings.01_currentDay is for the delivery of energy from solar, the object is changing to 0 when the first delivery happend. (same with sourceanalytix.0.smartmeter__0__1-0:2_8_0__255__value.currentYear.delivered.01_currentDay)

image

image

Should be 0 at the beginning of the day.

bastian1607 avatar Jan 24 '22 08:01 bastian1607

@DutchmanNL

Ich vermute mal, dass mein Thema denselben Hintergrund hat: "Regenmessung" wird zum Wochen- / Monats-Ende für "current month" nicht automatisch genullt, aber in den "previous month" eingetragen und steht dann in beiden Monaten. Ein einfacher [Neustart] des Adapters führt zu keiner Änderung, nach [Stop] und [Start] passt wieder alles.

Vielleicht helfen ja die Daten und Log's weiter:

Die laufenden Regen-Werte summiere ich mit Blockly in einem Datenpunkt fortlaufend auf. Es kann also sein, dass sich der an SA übergebene Wert über mehrere Tage/Wochen nicht ändert:

grafik

Situation am 01.03.2022 ohne Neustart und ohne neue Regen-Werte: grafik

zugehöriger Log 01.03.2022 00:00 Uhr: 2022-03-01 00:00:00.014 - [34mdebug[39m: systeminfo.0 (31408) GPIO.1 received '' 2022-03-01 00:00:00.014 - [34mdebug[39m: systeminfo.0 (31408) GPIO.1 received '' 2022-03-01 00:00:00.018 - [34mdebug[39m: sourceanalytix.3 (1456) [resetStartValues] Dates current : {"day":"02_Tuesday","week":"09","month":"03_March","quarter":1,"year":2022} | beforeReset undefined 2022-03-01 00:00:00.018 - [34mdebug[39m: sourceanalytix.3 (1456) [resetStartValues] Dates current : {"day":"02_Tuesday","week":"09","month":"03_March","quarter":1,"year":2022} | beforeReset undefined 2022-03-01 00:00:00.058 - [32minfo[39m: sourceanalytix.3 (1456) Reset start values for : 0_userdata.0.Regen.Regen-fortlaufend_(für_Sourceanalytix) 2022-03-01 00:00:00.058 - [32minfo[39m: sourceanalytix.3 (1456) Memory values before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.059 - [34mdebug[39m: sourceanalytix.3 (1456) Memory values for 0_userdata.0.Regen.Regen-fortlaufend_(für_Sourceanalytix) before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.060 - [34mdebug[39m: sourceanalytix.3 (1456) Current known state values : {"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null} 2022-03-01 00:00:00.058 - [32minfo[39m: sourceanalytix.3 (1456) Reset start values for : 0_userdata.0.Regen.Regen-fortlaufend_(für_Sourceanalytix) 2022-03-01 00:00:00.058 - [32minfo[39m: sourceanalytix.3 (1456) Memory values before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.059 - [34mdebug[39m: sourceanalytix.3 (1456) Memory values for 0_userdata.0.Regen.Regen-fortlaufend_(für_Sourceanalytix) before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.060 - [34mdebug[39m: sourceanalytix.3 (1456) Current known state values : {"cumulativeValue":4.5,"start_day":4.5,"start_month":0,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceReset":0,"valueAtDeviceInit":null} 2022-03-01 00:00:00.022 - [32minfo[39m: sourceanalytix.0 (1438) Reset start values for : smartmeter.0.1-0:1_8_0__255.value 2022-03-01 00:00:00.022 - [32minfo[39m: sourceanalytix.0 (1438) Reset start values for : smartmeter.0.1-0:1_8_0__255.value 2022-03-01 00:00:00.114 - [32minfo[39m: sourceanalytix.0 (1438) Memory values before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"smartmeter__0__1-0:1_8_0__255__value","financialCategory":"costs","headCategory":"consumed","meter_values":true,"name":"1-0:1_8_0__255.value","stateType":"ElectricityDay","stateUnit":"kWh","useUnit":"kWh"},"calcValues":{"cumulativeValue":1552.0424,"start_day":1552.0424,"start_month":1334.2,"start_quarter":825,"start_week":1552.0424,"start_year":825,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"15","unitPrice":"0.29"}} 2022-03-01 00:00:00.114 - [32minfo[39m: sourceanalytix.0 (1438) Memory values before reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"smartmeter__0__1-0:1_8_0__255__value","financialCategory":"costs","headCategory":"consumed","meter_values":true,"name":"1-0:1_8_0__255.value","stateType":"ElectricityDay","stateUnit":"kWh","useUnit":"kWh"},"calcValues":{"cumulativeValue":1552.0424,"start_day":1552.0424,"start_month":1334.2,"start_quarter":825,"start_week":1552.0424,"start_year":825,"valueAtDeviceReset":0,"valueAtDeviceInit":null},"prices":{"basicPrice":"15","unitPrice":"0.29"}} 2022-03-01 00:00:00.153 - [32minfo[39m: host.ioBrokerHW instance system.adapter.tvspielfilm.0 started with pid 25730 2022-03-01 00:00:00.153 - [32minfo[39m: host.ioBrokerHW instance system.adapter.tvspielfilm.0 started with pid 25730 2022-03-01 00:00:00.245 - [32minfo[39m: sourceanalytix.3 (1456) Memory values after reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"start_day":4.5,"start_month":4.5,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceInit":null,"valueAtDeviceReset":0,"cumulativeValue":4.5},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.245 - [32minfo[39m: sourceanalytix.3 (1456) Memory values after reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"0_userdata__0__Regen__Regen-fortlaufend_(für_Sourceanalytix)","financialCategory":"earnings","headCategory":"delivered","meter_values":true,"name":"Regen-fortlaufend_(für Sourceanalytix)","stateType":"Regen","stateUnit":"l","useUnit":"l"},"calcValues":{"start_day":4.5,"start_month":4.5,"start_quarter":0,"start_week":4.5,"start_year":0,"valueAtDeviceInit":null,"valueAtDeviceReset":0,"cumulativeValue":4.5},"prices":{"basicPrice":"0","unitPrice":"0"}} 2022-03-01 00:00:00.268 - [32minfo[39m: sourceanalytix.0 (1438) Memory values after reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"smartmeter__0__1-0:1_8_0__255__value","financialCategory":"costs","headCategory":"consumed","meter_values":true,"name":"1-0:1_8_0__255.value","stateType":"ElectricityDay","stateUnit":"kWh","useUnit":"kWh"},"calcValues":{"start_day":1552.0424,"start_month":1552.0424,"start_quarter":825,"start_week":1552.0424,"start_year":825,"valueAtDeviceInit":null,"valueAtDeviceReset":0,"cumulativeValue":1552.0424},"prices":{"basicPrice":"15","unitPrice":"0.29"}} 2022-03-01 00:00:00.268 - [32minfo[39m: sourceanalytix.0 (1438) Memory values after reset : {"stateDetails":{"consumption":true,"costs":true,"deviceName":"smartmeter__0__1-0:1_8_0__255__value","financialCategory":"costs","headCategory":"consumed","meter_values":true,"name":"1-0:1_8_0__255.value","stateType":"ElectricityDay","stateUnit":"kWh","useUnit":"kWh"},"calcValues":{"start_day":1552.0424,"start_month":1552.0424,"start_quarter":825,"start_week":1552.0424,"start_year":825,"valueAtDeviceInit":null,"valueAtDeviceReset":0,"cumulativeValue":1552.0424},"prices":{"basicPrice":"15","unitPrice":"0.29"}} 2022-03-01 00:00:01.894 - [32minfo[39m: homee.0 (517) initialize 1 homeegrams

Situation am 01.03.2022 nach Stop und Start des SA-Adapters: grafik

SmartHomer0 avatar Mar 01 '22 14:03 SmartHomer0

Same here V0.4.14

guergen1 avatar Mar 17 '22 07:03 guergen1

Gleiches Problem mit 0.4.14 ...

tseroo avatar May 24 '22 10:05 tseroo

Same here V0.4.14

michipi85 avatar May 29 '22 06:05 michipi85

Same here (v0.4.14) Please fix.

cnitschkowski avatar Aug 18 '22 08:08 cnitschkowski

Kann ich auch nachvollziehen. Speziell bei "sporadischen" Werten führt das zu massiv falschen Werten. Wäre toll, wenn das behoben werden könnte.

Sineos avatar Sep 04 '22 15:09 Sineos

Same problem here.

heckradr avatar Sep 23 '22 08:09 heckradr

Same here...

Matzebhv avatar Sep 25 '22 08:09 Matzebhv

same here, value today does not change to "0" at ~ 0:00 AM but only after new value was written next morning

hytrek avatar Oct 11 '22 22:10 hytrek

same here... my workaround is a blockly which just updates every DP at 00:10am with the current data. At about 00:20am sourceanalytix is fine again. Still playing with the timing. Maybe anyone has a better workaround?

Screenshot 2022-10-15 104053 Like this:

<block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="gO{V7jTPmb@%XmF-iPDa" x="88" y="-387"> <field name="SCHEDULE">10 0 * * *</field> <statement name="STATEMENT"> <block type="update" id="]5oU,%uZbDtbNl%d1XkN"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHPLG-S#XXXXXX#1.Relay0.Energy</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="get_value" id="E.GApX}FHX6so6*gTE[L"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHPLG-S#XXXXXX#1.Relay0.Energy</field> </block> </value> </block> </statement> </block>

daloki83 avatar Oct 15 '22 08:10 daloki83