Open henrikeri opened 1 year ago
If you continuously get No highest per day
there may be something wrong with your context store. The highest per day is saved in the nodes context, and is then read from there when data is received from the other node. If it cannot find it in the context, then this message is displayed.
Check like this:
Select the Calculate values
node.
Then select `Context data´ in the right panel (next to the debug window).
Click the refresh button for Node.
Then you should see the highestPerDay array with one entry per day, sorted from highest to lowest value.
If that is missing, there is something wrong with your context store.
Hi,
The "Calculate Values" node returns No highest per day error even though the message is being passed (see debug below of inputs to function node). This typically happens after a restart of Home Assistant and started after the last two updates (prior OK to this). I have only managed to get it away by deleting the flow and setting the nodes back up. There is no output from the "Calculate Values" node when this occurs, hence no debug.
From "Find Highest Per Day"
{"highestPerDay":[{"from":"2022-11-26T03:00:00.000+01:00","consumption":10.767},{"from":"2022-11-23T19:00:00.000+01:00","consumption":9.484},{"from":"2022-11-24T02:00:00.000+01:00","consumption":7.569},{"from":"2022-11-19T20:00:00.000+01:00","consumption":7.155},{"from":"2022-11-27T14:00:00.000+01:00","consumption":6.955},{"from":"2022-11-16T20:00:00.000+01:00","consumption":5.913},{"from":"2022-11-22T16:00:00.000+01:00","consumption":5.885},{"from":"2022-11-21T17:00:00.000+01:00","consumption":5.518},{"from":"2022-11-18T18:00:00.000+01:00","consumption":5.452},{"from":"2022-11-20T04:00:00.000+01:00","consumption":5.244},{"from":"2022-11-17T05:00:00.000+01:00","consumption":4.962},{"from":"2022-11-02T22:00:00.000+01:00","consumption":4.896},{"from":"2022-11-25T16:00:00.000+01:00","consumption":4.854},{"from":"2022-11-10T19:00:00.000+01:00","consumption":4.647},{"from":"2022-11-05T22:00:00.000+01:00","consumption":4.574},{"from":"2022-11-03T01:00:00.000+01:00","consumption":4.542},{"from":"2022-11-28T19:00:00.000+01:00","consumption":4.531},{"from":"2022-11-06T02:00:00.000+01:00","consumption":4.346},{"from":"2022-11-29T20:00:00.000+01:00","consumption":3.698},{"from":"2022-11-30T02:00:00.000+01:00","consumption":3.51},{"from":"2022-11-04T13:00:00.000+01:00","consumption":3.4},{"from":"2022-11-11T22:00:00.000+01:00","consumption":3.106},{"from":"2022-11-15T23:00:00.000+01:00","consumption":3.103},{"from":"2022-11-08T21:00:00.000+01:00","consumption":3.091},{"from":"2022-11-13T20:00:00.000+01:00","consumption":2.992},{"from":"2022-11-12T22:00:00.000+01:00","consumption":2.431},{"from":"2022-11-07T21:00:00.000+01:00","consumption":2.387},{"from":"2022-11-01T23:00:00.000+01:00","consumption":2.304},{"from":"2022-11-14T22:00:00.000+01:00","consumption":2.262},{"from":"2022-11-09T16:00:00.000+01:00","consumption":2.23}],"highestCounting":[{"from":"2022-11-26T03:00:00.000+01:00","consumption":10.767},{"from":"2022-11-23T19:00:00.000+01:00","consumption":9.484},{"from":"2022-11-24T02:00:00.000+01:00","consumption":7.569}],"highestToday":{"from":"2022-11-30T02:00:00.000+01:00","consumption":3.51},"currentMonthlyMaxAverage":9.273333333333332}
From "Collect Estimate for Hour":
{"accumulatedConsumption":16.628361,"accumulatedConsumptionLastHour":0.748361,"periodMs":60000,"consumptionInPeriod":0.01696200000000303,"averageConsumptionNow":1.0177200000001818,"timeLeftMs":1782500,"consumptionLeft":0.5039127500000901,"hourEstimate":1.2522737500000902,"currentHour":"2022-11-30T07:00:00.500Z"}