So, I have now improved logging. And it feels completely wrong. Not that I am in France (+1 tz). On the 25/02, at 14:16:06,502 : - array is: [ 9.2, 9.9, 17.799999999999997, 11, 10, 15.7, 25.000000000000004, 33.8] - dayValueReadAt: 2025-02-25T13:13:57.206Z THIS IS CORRECT! I drop the first element of the array as I don't care about "today". Consumption on vicare of the 24/02 is of 10kWh, and previous day are fine also (albeit, roundings) On the 25/02 at 23:57:53,351: - array is: [19.6, 19, 9.9, 17.799999999999997, 11, 10, 15.7, 25.000000000000004] - dayValueReadAt: 2025-02-25T13:13:57.206Z THIS IS WRONG! (my final consumption for the 25/02 on vicare is 19.5Kwh. So we have 2 glitches: wrong dayValueReadAt, wrong number of elements) On the 25/02 at 23:59:54,196: - array is: [0, 19, 9.9, 17.799999999999997, 11, 10, 15.7, 25.000000000000004] - dayValueReadAt: 2025-02-25T13:13:57.206Z THIS IS WRONG ! (Same as before, with a 0 in front...) From this time the front value will improve according to the new day. This logic seems fine. But the dayValueReadAt stays as 2025-02-25T13:13:57.206Z ! On the 26/02 at 00:15:01: - array is: [0.2, 19.6, 9.9, 17.799999999999997, 11, 10, 15.7, 25.000000000000004] - dayValueReadAt: 2025-02-25T13:13:57.206Z THIS IS WRONG! (values look fine, but as the date is the wrong one, we will think it is the 24th which has a power of 19.6 while it is in fact the 9.9...) From this time the front value will improve according to the new day. This logic seems fine. But the dayValueReadAt stays as 2025-02-25T13:13:57.206Z ! [Story twist incoming, waiting for the data to come in. But actually the API is working perfectly fine between 14h30 and 23h50....]
... Mehr anzeigen