magtimmermans / smartgateways

0 stars 0 forks source link

Watermeter reset daytotal at 1 o'clock #3

Closed RSlegers closed 2 years ago

RSlegers commented 2 years ago

The watermeter is resetting it's day-total at 1 o'clock instead of midnight.

The Homey timezone is set to Europe/Amsterdam.

Version Homey Pro Early 2019; 7.4.1 Version Smart Gateways; 2.1.3

magtimmermans commented 2 years ago

That's weird. I tested this he and it is almost exact on 00:00:00 houra

RSlegers commented 2 years ago

That is definilty strange, what is your timezone of Homey ?

I have set Homey to send me every day at 23:59 AND 00:59 a message with the daily waterusage and they are both the same (or 00:59 is higher if there was waterusage in that hour (dishwasser, washingmachine).

I have included a Homey insight of the watermeter, and saw it resets even later than 1:00. watermeter . And another one watermeter 2 :

magtimmermans commented 2 years ago

Mmh, that's wierd indeed. I gave the same timezone. What is your homey version?

RSlegers commented 2 years ago

still 7.4.1 (as in the first post)

magtimmermans commented 2 years ago

Sorry, missed that. I will try to upgrade as I am using an older version. Maybe then I can reproduce it.

RSlegers commented 2 years ago

What is the status now ? I can create a diagnostic report for you, if you like.

magtimmermans commented 2 years ago

Didnt find the time yet to debug.

magtimmermans commented 2 years ago

https://homey.app/a/com.cyclone-software.smartgateways/test/ New Test version. It seems that the date object was changed in the latest version

RSlegers commented 2 years ago

I have installed the test-version now for 2 days, but no change, reset is still at 2 o'clock

magtimmermans commented 2 years ago

So, even 1 hour later?

RSlegers commented 2 years ago

No, i thought it was 1 o'clock, but as you can see in the earlier posted graphs it is 2 o'clock al along.

So with the updatecthere is no change

RSlegers commented 2 years ago

If you want i can make a report for you from the app.

magtimmermans commented 2 years ago

Yes please, maybe that will help. The issues has to do with timezone (local) and Calc to midnight.

RSlegers commented 2 years ago

This is the repoet code : c447d51c-ad20-4916-8f0c-d1e3d3abbd14

magtimmermans commented 2 years ago

Found it

RSlegers commented 2 years ago

My report. The bug, or both ?

magtimmermans commented 2 years ago

Both actually. Unfortunately the report does not give me enough information. I will try to log more and make an update for the test version.

magtimmermans commented 2 years ago

I think I made a calculation error so the routine was not updated. Please try the new test version: https://homey.app/a/com.cyclone-software.smartgateways/test/

RSlegers commented 2 years ago

Seems solved now, will watch fot a few days, but think it is ok now

magtimmermans commented 2 years ago

Ok, Let me know.

RSlegers commented 2 years ago

Watermeter is ok now, this can be closed.