Dashboard sharing #94
Replies: 5 comments 19 replies
-
Thanks very much to Geoffrey Coan for the original chart..! I love this chart, can't help myself and been tweaking. I am off grid so battery percent is important as once I get beyond solar charging slows down and even stops so to make sense of the solar in I need to see that. I also found that my solar has a very high reporting rate ie 30 times a second... So I've slowed down the chart updates as it was constaintly busy. I also tweaked so that the solar and battery doesn't display past the now line. My use case is unusual so expect most people may not want so sharing in case there are others.
|
Beta Was this translation helpful? Give feedback.
-
I am getting an interesting time "shift" using @gcoan's example chart. To fix it, and smooth out the lumpy appearance I add two options to the area series. Today was a brilliantly sunny Winter day, and with the shift of the forecasted values they almost match for much of the day. I did notice that the interpolated "power now"/+30mins/+60mins were off by this same shift, so there might be a code improvement needed there (which I will look into).
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is a little OT because I can't really share it - none of this is really portable to HA, but I first started using Solcast back in the day when I thought python was a snake. I still store all my Powerwall data at six second resolution in an SQL Server database, and, up until recently (because I've changed to a tariff where I no longer need to forecast consumption or insolation), was using historical load data, Solcast forecasts, and my own logic to forecast how much to charge, and when. When I first started forecasting, I discovered that I'd get it wrong, and in trying to work out why, I discovered that forecasting too early was problematic, because (surprise surprise) forecasts change. Nonetheless, once the code is written and running, it keeps running, and as a result, I have a database going back years with the earliest forecast for each half hour, and the latest. Here's what it shows for today in Melbourne: As you can see, expected insolation has fallen off a cliff for today. And here's what the dashboard shows for yesterday, today, and the next four days. I eventually refined my algorithm to work out how late it could make its decision based on the remaining time window until peak, the rate that I could charge my battery sufficiently to ride through peak (and, ideally off peak until solar generation was going to exceed load the next day, but failing that, at least peak), and not start charging from the grid until as late as possible, with some margin for changing forecasts, especially if forecast insolation was dropping. It got to the point that I never paid for peak power, and never over-charged and spilled FIT either, and the algorithm was, in the end, incredibly simple - total load to breakeven point (insolation exceeds load) less remaining insolation = shortfall. That's how much I needed to charge. Charge rate was known, and with a few tweaks, the algorithm would push up the battery reserve level to try to make the shortfall = 0 by the beginning of peak. AI and machine learning be damned. Now my charge cost is $0.00 for two hours a day, which is enough to add 10kWh every day - should I need to. No need for forecasts until that tariff is no longer available. However, with the way the market is in Victoria, that's unlikely to go away any time soon. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi all, I thought it would be helpful to have a dedicated thread for sharing UI's.
I've got a simple table I really like showing worst (P10) and estimated forecast.
Use this code to create a template
Then you need to install Flex Table Card from HACS and here is the YAML
Matt
Beta Was this translation helpful? Give feedback.
All reactions