What makes up the 'current day' ? #314
-
|
I'm overthinking this I'm sure but what is the "current_day_average_rate" actually calculating ? The value changes every 30 mins or so , so it can't just be the average rate for todays date as that would only change once every 24 hrs. So is it the average rate for the last 24 hrs or for as much of the next 24 ( at least where those prices are known ). Is the concept of what constitutes the 'current_day' the same across all 'current_day' sensors ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Hi there. The |
Beta Was this translation helpful? Give feedback.
-
|
I am on agile , but I only get new prices once a day about 1600, though I only get rates up to tomorrow 22:30 so its a bit weird. Any I'll keep an eye on it. The current price tracks OK , which to be honest is the only rate I really rely on. The average rate is really only for interest only. |
Beta Was this translation helpful? Give feedback.
-
|
OK , so I'm misreading this. I had created an Entity card to display the 'Current day average rate' attribute and had assumed that the graph automatically created by that card and visible when selecting the icon in the top right hard corner would be of the value the card was displaying. Sadly not. A fact I only realised after you confirmed the average rate was based on the date which forced me to look again at the card and past my own assumptions about it. The value does indeed seem to change a couple of times a day , at midnight and again at 1600 , approx., when the rest of todays prices come in. |
Beta Was this translation helpful? Give feedback.
-
Apex charts card, it takes the current_rate entity as an array of datetimes and values and displays a graph. I also added conditional colouring, the average and the Now lines. mini-graph-card is easier to setup, but also produces simpler graph features |
Beta Was this translation helpful? Give feedback.

Hi there. The
current_day_average_ratelocated oncurrent_rateis indeed the average price for today (midnight to midnight) and should only change once a day. If you're on agile it could change multiple times during the day as new rates come in. What sort of changes are you seeing? what tariff are you on?